Class Axis2FlexibleMEPClient


  • public class Axis2FlexibleMEPClient
    extends Object
    This is a simple client that handles both in only and in out
    • Constructor Detail

      • Axis2FlexibleMEPClient

        public Axis2FlexibleMEPClient()
    • Method Detail

      • send

        public static void send​(EndpointDefinition endpoint,
                                MessageContext synapseOutMessageContext)
                         throws org.apache.axis2.AxisFault
        Based on the Axis2 client code. Sends the Axis2 Message context out and returns the Axis2 message context for the response.

        Here Synapse works as a Client to the service. It would expect 200 ok, 202 ok and 500 internal server error as possible responses.

        Parameters:
        endpoint - the endpoint being sent to, maybe null
        synapseOutMessageContext - the outgoing synapse message
        Throws:
        org.apache.axis2.AxisFault - on errors
      • clearSecurtityProperties

        public static void clearSecurtityProperties​(org.apache.axis2.client.Options options)
      • isMultipartContent

        public static boolean isMultipartContent​(String contentType)
        Check whether the content type is multipart or not
        Parameters:
        contentType -
        Returns:
        true for multipart content types