Interface MethodMarshaller

All Known Implementing Classes:
DocLitBareMethodMarshaller, DocLitBareMinimalMethodMarshaller, DocLitWrappedMethodMarshaller, DocLitWrappedMinimalMethodMarshaller, DocLitWrappedPlusMethodMarshaller, RPCLitMethodMarshaller

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.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    demarshalFaultResponse(Message message, org.apache.axis2.jaxws.description.OperationDescription opDesc)
    This method converts a Message (containing a fault) into a JAX-WS Service or WebServiceException.
    demarshalRequest(Message message, org.apache.axis2.jaxws.description.OperationDescription opDesc)
    This method converts the Message into a SIGNATURE_ARGS It is used on the server
    demarshalResponse(Message message, Object[] signatureArgs, org.apache.axis2.jaxws.description.OperationDescription opDesc)
    This method gets the objects from the Message and sets them onto the SIGNATURE_ARGS It also returns the RETURN object.
    marshalFaultResponse(Throwable throwable, org.apache.axis2.jaxws.description.OperationDescription opDesc, Protocol protocol)
    This method creates a Message from a Throwable input parameter.
    marshalRequest(Object[] signatureArgs, org.apache.axis2.jaxws.description.OperationDescription opDesc, Map<String,Object> requestContext)
    This method converts SIGNATURE_ARGS into a Message.
    marshalResponse(Object returnObject, Object[] signatureArgs, org.apache.axis2.jaxws.description.OperationDescription opDesc, Protocol protocol)
    This method converts the SIGNATURE_ARGS and RETURN object into a Message.
  • Method Details

    • marshalRequest

      Message marshalRequest(Object[] signatureArgs, org.apache.axis2.jaxws.description.OperationDescription opDesc, Map<String,Object> requestContext) throws jakarta.xml.ws.WebServiceException
      This method converts SIGNATURE_ARGS into a Message. It is used on the client
      Parameters:
      signatureArgs -
      opDesc -
      requestContext -
      Returns:
      Message
      Throws:
      jakarta.xml.ws.WebServiceException
    • marshalResponse

      Message marshalResponse(Object returnObject, Object[] signatureArgs, org.apache.axis2.jaxws.description.OperationDescription opDesc, Protocol protocol) throws jakarta.xml.ws.WebServiceException
      This method converts the SIGNATURE_ARGS and RETURN object into a Message. It is used on the server
      Parameters:
      returnObject -
      signatureArgs -
      OperationDesc -
      Protocol - for response
      Returns:
      Message
      Throws:
      jakarta.xml.ws.WebServiceException
    • demarshalRequest

      Object[] demarshalRequest(Message message, org.apache.axis2.jaxws.description.OperationDescription opDesc) throws jakarta.xml.ws.WebServiceException
      This method converts the Message into a SIGNATURE_ARGS It is used on the server
      Parameters:
      message -
      Returns:
      signature args
      Throws:
      jakarta.xml.ws.WebServiceException
    • demarshalResponse

      Object demarshalResponse(Message message, Object[] signatureArgs, org.apache.axis2.jaxws.description.OperationDescription opDesc) throws jakarta.xml.ws.WebServiceException
      This method gets the objects from the Message and sets them onto the SIGNATURE_ARGS It also returns the RETURN object. Called on client
      Parameters:
      message -
      signatureAgs - (same array of args that were used for marshalRequest. The out/inout holders are populated with new values)
      OperationDesc -
      Returns:
      returnObject
      Throws:
      jakarta.xml.ws.WebServiceException
    • demarshalFaultResponse

      Throwable demarshalFaultResponse(Message message, org.apache.axis2.jaxws.description.OperationDescription opDesc) throws jakarta.xml.ws.WebServiceException
      This method converts a Message (containing a fault) into a JAX-WS Service or WebServiceException. Used on the client.
      Parameters:
      message -
      Message -
      Returns:
      Throwable
      Throws:
      jakarta.xml.ws.WebServiceException
    • marshalFaultResponse

      Message marshalFaultResponse(Throwable throwable, org.apache.axis2.jaxws.description.OperationDescription opDesc, Protocol protocol) throws jakarta.xml.ws.WebServiceException
      This method creates a Message from a Throwable input parameter. Used on the server.
      Parameters:
      Throwable -
      OperationDesc -
      Protocol - for response
      Returns:
      Throws:
      jakarta.xml.ws.WebServiceException