Class AxisService2WSDL20

    • Field Detail

      • serviceName

        protected String serviceName
    • Constructor Detail

      • AxisService2WSDL20

        public AxisService2WSDL20()
      • AxisService2WSDL20

        public AxisService2WSDL20​(AxisService service)
      • AxisService2WSDL20

        public AxisService2WSDL20​(AxisService service,
                                  String serviceName)
    • Method Detail

      • setCheckIfEndPointActive

        public void setCheckIfEndPointActive​(boolean flag)
        Sets whether to make a check if endpoint is active before adding the endpoint to the WSDL. By default an endpoint is not added if a transport for the endpoint is not found.
        Parameters:
        flag - true=check if endpoint is active before adding endpoint. false=add endpoint independent of whether endpoint is active.
      • generateOM

        public org.apache.axiom.om.OMElement generateOM()
                                                 throws Exception
        Generates a WSDL 2.0 document for this web service
        Returns:
        The WSDL2 document element
        Throws:
        Exception - - Thrown in case an exception occurs
      • generateInterfaceOperationElement

        public org.apache.axiom.om.OMElement generateInterfaceOperationElement​(AxisOperation axisOperation,
                                                                               org.apache.axiom.om.OMNamespace wsdl,
                                                                               org.apache.axiom.om.OMNamespace tns,
                                                                               org.apache.axiom.om.OMNamespace wsdlx,
                                                                               org.apache.axiom.om.OMNamespace wrpc)
                                                                        throws URISyntaxException,
                                                                               AxisFault,
                                                                               XMLStreamException,
                                                                               FactoryConfigurationError
        Generates the interface Operation element. As with the binding operations we dont need to ask AxisMessage to serialize its message cause AxisMessage does not have specific properties as bindings.
        Parameters:
        axisOperation - the operation to write
        wsdl - the WSDL namespace
        tns - the target namespace
        wsdlx - the WSDL extentions namespace (WSDL 2.0)
        Returns:
        the generated <operation> element
        Throws:
        FactoryConfigurationError
        XMLStreamException
        URISyntaxException
        AxisFault
      • setEPRs

        public void setEPRs​(String[] eprs)
      • generateDescription

        protected org.apache.axiom.om.OMElement generateDescription​(org.apache.axiom.om.OMFactory omFactory)
      • generateDocumentation

        protected org.apache.axiom.om.OMElement generateDocumentation​(org.apache.axiom.om.OMFactory omFactory)
      • generateTypes

        protected org.apache.axiom.om.OMElement generateTypes​(org.apache.axiom.om.OMFactory omFactory)
                                                       throws AxisFault
        Throws:
        AxisFault
      • generateService

        protected org.apache.axiom.om.OMElement generateService​(org.apache.axiom.om.OMFactory omFactory,
                                                                org.apache.axiom.om.OMElement descriptionElement,
                                                                boolean disableREST,
                                                                boolean disableSOAP12,
                                                                boolean disableSOAP11)
                                                         throws AxisFault
        Throws:
        AxisFault
      • isDisableREST

        protected boolean isDisableREST()
      • isDisableSOAP11

        protected boolean isDisableSOAP11()
      • isDisableSOAP12

        protected boolean isDisableSOAP12()
      • getPoliciesInDefinitions

        protected List getPoliciesInDefinitions()
      • modifyEndpoint

        protected org.apache.axiom.om.OMElement modifyEndpoint​(org.apache.axiom.om.OMElement endpoint)
      • modifyBinding

        protected org.apache.axiom.om.OMElement modifyBinding​(org.apache.axiom.om.OMElement binding)
      • generateServiceElement

        public org.apache.axiom.om.OMElement generateServiceElement​(org.apache.axiom.om.OMFactory omFactory,
                                                                    org.apache.axiom.om.OMNamespace wsdl,
                                                                    org.apache.axiom.om.OMNamespace tns,
                                                                    AxisService axisService,
                                                                    boolean disableREST,
                                                                    boolean disableSOAP12,
                                                                    boolean disableSOAP11,
                                                                    String serviceName)
                                                             throws AxisFault
        Generates a default service element
        Parameters:
        omFactory - - The OMFactory
        wsdl - the WSDL namespace
        tns - - The targetnamespace
        axisService - - The AxisService
        disableREST - only generate REST endpoint if this is false
        disableSOAP12 - only generate SOAP 1.2 endpoint if this is false
        Returns:
        - The generated service element
        Throws:
        AxisFault - - Thrown in case an exception occurs
      • generateServiceElement

        public org.apache.axiom.om.OMElement generateServiceElement​(org.apache.axiom.om.OMFactory omFactory,
                                                                    org.apache.axiom.om.OMNamespace wsdl,
                                                                    org.apache.axiom.om.OMNamespace tns,
                                                                    AxisService axisService,
                                                                    boolean disableREST,
                                                                    boolean disableSOAP12,
                                                                    boolean disableSOAP11,
                                                                    String[] eprs,
                                                                    String serviceName)
                                                             throws AxisFault
        Generates a default service element
        Parameters:
        omFactory - - The OMFactory
        wsdl - the WSDL namespace
        tns - - The targetnamespace
        axisService - - The AxisService
        disableREST - only generate REST endpoint if this is false
        disableSOAP12 - only generate SOAP 1.2 endpoint if this is false
        Returns:
        - The generated service element
        Throws:
        AxisFault - - Thrown in case an exception occurs