|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
MessageHandler defines the methods needed to serialize and deserialize the
parameters and responses for a web service operation. It also references a
Java method that is used to invoke the operation.
This interface is used for receiving incoming messages on the
server-side, not the client-side. Sending web service requests is
handled by ProxyHandler.
Method Summary | |
---|---|
java.lang.Object[] |
fromXML(org.w3c.dom.Element xml)
Deserializes the given DOM Element into a set of POJOs that can be used when invoking a Java method. |
java.lang.String |
getAction()
|
java.lang.reflect.Method |
getMethod()
|
QName |
getRequestName()
|
QName |
getResponseName()
|
void |
setMethod(java.lang.reflect.Method method)
|
org.w3c.dom.Element |
toXML(java.lang.Object result)
Serializes the given object into a DOM Element. |
Method Detail |
public java.lang.Object[] fromXML(org.w3c.dom.Element xml) throws SoapFault
xml
- The contents of a SOAP Body, where the root element contains
all of the method parameters. For simple parameters, this
element may contain the actual parameter data.
SoapFault
- Serializer.fromXML(Element)
public java.lang.String getAction()
public java.lang.reflect.Method getMethod()
public QName getRequestName()
public QName getResponseName()
public void setMethod(java.lang.reflect.Method method)
method
- The Java method that should be used to execute the operation.public org.w3c.dom.Element toXML(java.lang.Object result) throws SoapFault
result
- The response value from the operation, which must be serialized
into XML.
SoapFault
- getResponseName()
,
Serializer.toXML(Object, QName)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |