|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MethodMarshaller
This class marshals and unmarshals method invocations.
Here is the high-level view of marshalling: SIGNATURE_ARGS ---> Type Enabled Object -----> Element Enabled Object ---> MESSAGE (XML) The Signature objects are the objects from the SEI method signature. They may be values or holders of values. The values are "type enabled objects" (i.e. String), which means that they cannot be marshalled or unmarshalled.
for details on Type Enabled and Element
Enabled objects.
The values are enhanced (if necessary) into Element Enabled Objects. These can be
marshalled or unmarshalled using JAXB.
,
The element enabled objects are put onto the message.
The high-level view of unmarshalling is the reverse. SIGNATURE_ARGS <---- Type Enabled
Object <----- Element Enabled Object <---- MESSAGE (XML)
See the specific MethodMarshaller implementations to see how doc/lit wrapped, doc/lit bare
and rpc/lit affect the process of going from SIGNATURE_ARGS to the element enabled objects.
If there are any problems, a WebServiceException is thrown. (Each of the methods is
guranteed to catch any unchecked exception and wrap it in a WebServiceException).
Method Summary | |
---|---|
java.lang.Throwable |
demarshalFaultResponse(Message message,
OperationDescription opDesc)
This method converts a Message (containing a fault) into a JAX-WS Service or WebServiceException. |
java.lang.Object[] |
demarshalRequest(Message message,
OperationDescription opDesc)
This method converts the Message into a SIGNATURE_ARGS It is used on the server |
java.lang.Object |
demarshalResponse(Message message,
java.lang.Object[] signatureArgs,
OperationDescription opDesc)
This method gets the objects from the Message and sets them onto the SIGNATURE_ARGS It also returns the RETURN object. |
Message |
marshalFaultResponse(java.lang.Throwable throwable,
OperationDescription opDesc,
Protocol protocol)
This method creates a Message from a Throwable input parameter. |
Message |
marshalRequest(java.lang.Object[] signatureArgs,
OperationDescription opDesc)
This method converts SIGNATURE_ARGS into a Message. |
Message |
marshalResponse(java.lang.Object returnObject,
java.lang.Object[] signatureArgs,
OperationDescription opDesc,
Protocol protocol)
This method converts the SIGNATURE_ARGS and RETURN object into a Message. |
Method Detail |
---|
Message marshalRequest(java.lang.Object[] signatureArgs, OperationDescription opDesc) throws WebServiceException
signatureArgs
-
WebServiceException
Message marshalResponse(java.lang.Object returnObject, java.lang.Object[] signatureArgs, OperationDescription opDesc, Protocol protocol) throws WebServiceException
returnObject
- signatureArgs
- OperationDesc
- Protocol
- for response
WebServiceException
java.lang.Object[] demarshalRequest(Message message, OperationDescription opDesc) throws WebServiceException
message
-
WebServiceException
java.lang.Object demarshalResponse(Message message, java.lang.Object[] signatureArgs, OperationDescription opDesc) throws WebServiceException
message
- signatureAgs
- (same array of args that were used for marshalRequest. The out/inout
holders are populated with new values)OperationDesc
-
WebServiceException
java.lang.Throwable demarshalFaultResponse(Message message, OperationDescription opDesc) throws WebServiceException
message
- Message
-
WebServiceException
Message marshalFaultResponse(java.lang.Throwable throwable, OperationDescription opDesc, Protocol protocol) throws WebServiceException
Throwable
- OperationDesc
- Protocol
- for response
WebServiceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |