org.osesb.test.datatypestoxml.java
Class DataTypesToXML
java.lang.Object
org.osesb.test.JavaWebService
org.osesb.test.datatypestoxml.java.DataTypesToXML
public class DataTypesToXML
- extends JavaWebService
DataTypesToXML is a test web service with two methods:
toXML() returns XML text with the values of the given java
primitives.
toXMLWithSecurity() assumes that a JAXRPCServerSecurityHandler
is configured in the handler chain and that the handler has set
the ThreadLocal variable, securityProfile, to an instance of
WSSSecurityProfile that is populated with security info. The service
appends the username in the securityProfile to the XML returned
by toXML();
Descendants of org.osesb.test.JavaWebService can be configured using a
properties file. JavaWebService provides for a set of Properties that can
be configured for a web service. This capability is analogous to the environment
of an ejb-backed web service.
The Properties are loaded from a properties file that is deployed into the
same classpath location as the service Class. The properties file is named
MyServiceClass.properties, where MyServiceClass is the name of the java,
web service class.
- Since:
- Version .9
- See Also:
JAXRPCDynamicClient,
JAXRPCClientSecurityHandler,
JAXRPCServerSecurityHandler,
WSSSecurityProfile
|
Method Summary |
java.lang.String |
toXML(int i,
long l,
float f,
double d,
boolean b)
Returns XML text with the values of the given java primitives. |
java.lang.String |
toXMLWithSecurity(int i,
long l,
float f,
double d,
boolean b)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataTypesToXML
public DataTypesToXML()
toXMLWithSecurity
public java.lang.String toXMLWithSecurity(int i,
long l,
float f,
double d,
boolean b)
throws java.lang.Exception
- Throws:
java.lang.Exception
toXML
public java.lang.String toXML(int i,
long l,
float f,
double d,
boolean b)
throws java.lang.Exception
- Returns XML text with the values of the given java primitives.
Requires jdom in the classpath.
- Throws:
java.lang.Exception