|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageHandler
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 | |
---|---|
Object[] |
fromXML(Element xml)
Deserializes the given DOM Element into a set of POJOs that can be used when invoking a Java method. |
String |
getAction()
|
Method |
getMethod()
|
QName |
getRequestName()
|
QName |
getResponseName()
|
void |
setMethod(Method method)
|
Element |
toXML(Object result)
Serializes the given object into a DOM Element. |
Method Detail |
---|
Object[] fromXML(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)
String getAction()
Method getMethod()
QName getRequestName()
QName getResponseName()
void setMethod(Method method)
method
- The Java method that should be used to execute the operation.Element toXML(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 |