Class WSDLSerializationUtil


  • public class WSDLSerializationUtil
    extends Object
    Helps the AxisService to WSDL process
    • Constructor Detail

      • WSDLSerializationUtil

        public WSDLSerializationUtil()
    • Method Detail

      • getPrefix

        public static String getPrefix​(String namespace,
                                       Map<String,​String> nameSpaceMap)
        Given a namespace it returns the prefix for that namespace
        Parameters:
        namespace - - The namespace that the prefix is needed for
        nameSpaceMap - - The namespaceMap
        Returns:
        - The prefix of the namespace
      • getElementName

        public static String getElementName​(AxisMessage axisMessage,
                                            Map nameSpaceMap)
        Gets the correct element name for a given message
        Parameters:
        axisMessage - - The axisMessage
        nameSpaceMap - - The namespaceMap
        Returns:
        - The element name
      • addSOAPHeaderElements

        public static void addSOAPHeaderElements​(OMFactory omFactory,
                                                 ArrayList list,
                                                 OMNamespace wsoap,
                                                 OMElement element,
                                                 Map nameSpaceMap)
        Adds a soap header element to a given OMElement
        Parameters:
        omFactory - - An OMFactory
        list - - The arraylist of soapHeaderMessages
        wsoap - - The WSDL 2.0 SOAP namespace
        element - - The element that the header should be added to
        nameSpaceMap - - The namespaceMap
      • addSOAPModuleElements

        public static void addSOAPModuleElements​(OMFactory omFactory,
                                                 ArrayList list,
                                                 OMNamespace wsoap,
                                                 OMElement element)
        Adds a soap module element to a given OMElement
        Parameters:
        omFactory - - An OMFactory
        list - - The arraylist of soapModuleMessages
        wsoap - - The WSDL 2.0 SOAP namespace
        element - - The element that the header should be added to
      • addHTTPHeaderElements

        public static void addHTTPHeaderElements​(OMFactory omFactory,
                                                 ArrayList list,
                                                 OMNamespace whttp,
                                                 OMElement element,
                                                 Map nameSpaceMap)
        Adds a HTTP header element to a given OMElement
        Parameters:
        omFactory - - An OMFactory
        list - - The arraylist of HTTPHeaderMessages
        whttp - - The WSDL 2.0 HTTP namespace
        element - - The element that the header should be added to
        nameSpaceMap - - The namespaceMap
      • generateSOAP11Binding

        public static OMElement generateSOAP11Binding​(OMFactory fac,
                                                      AxisService axisService,
                                                      OMNamespace wsdl,
                                                      OMNamespace wsoap,
                                                      OMNamespace tns,
                                                      String serviceName)
        Generates a default SOAP 11 Binding for a given AxisService
        Parameters:
        fac - - The OMFactory
        axisService - - The AxisService
        wsdl - the WSDL namespace
        wsoap - - The WSDL 2.0 SOAP namespace
        tns - - The target namespace
        Returns:
        - The generated SOAP11Binding element
      • generateSOAP12Binding

        public static OMElement generateSOAP12Binding​(OMFactory fac,
                                                      AxisService axisService,
                                                      OMNamespace wsdl,
                                                      OMNamespace wsoap,
                                                      OMNamespace tns,
                                                      String serviceName)
        Generates a default SOAP 12 Binding for a given AxisService
        Parameters:
        fac - - The OMFactory
        axisService - - The AxisService
        wsdl - the WSDL namespace
        wsoap - - The WSDL 2.0 SOAP namespace
        tns - - The target namespace
        Returns:
        - The generated SOAP12Binding element
      • generateHTTPBinding

        public static OMElement generateHTTPBinding​(OMFactory fac,
                                                    AxisService axisService,
                                                    OMNamespace wsdl,
                                                    OMNamespace whttp,
                                                    OMNamespace tns,
                                                    String serviceName)
        Generates a default HTTP Binding for a given AxisService
        Parameters:
        fac - - The OMFactory
        axisService - - The AxisService
        wsdl - the WSDL namespace
        whttp - - The WSDL 2.0 HTTP namespace
        tns - - The target namespace
        Returns:
        - The generated HTTPBinding element
      • populateNamespaces

        public static void populateNamespaces​(OMElement descriptionElement,
                                              Map nameSpaceMap)
        Adds the namespaces to the given OMElement
        Parameters:
        descriptionElement - - The OMElement that the namespaces should be added to
        nameSpaceMap - - The namespaceMap
      • addPoliciesAsExtensibleElement

        public static void addPoliciesAsExtensibleElement​(AxisDescription description,
                                                          OMElement descriptionElement)
      • extractHostIP

        public static String extractHostIP​(String serviceURL)