Class AxisService2WSDL20

java.lang.Object
org.apache.axis2.description.AxisService2WSDL20
All Implemented Interfaces:
WSDL2Constants
Direct Known Subclasses:
WSDL20SupplierTemplate

public class AxisService2WSDL20 extends Object implements WSDL2Constants
  • Field Details

    • axisService

      protected AxisService axisService
    • serviceName

      protected String serviceName
  • Constructor Details

    • AxisService2WSDL20

      public AxisService2WSDL20()
    • AxisService2WSDL20

      public AxisService2WSDL20(AxisService service)
    • AxisService2WSDL20

      public AxisService2WSDL20(AxisService service, String serviceName)
  • Method Details

    • init

      protected void init() throws AxisFault
      Throws:
      AxisFault
    • 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)
    • addPoliciesToDescriptionElement

      protected void addPoliciesToDescriptionElement(List policies, org.apache.axiom.om.OMElement descriptionElement) throws XMLStreamException, FactoryConfigurationError
      Throws:
      XMLStreamException
      FactoryConfigurationError
    • 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
    • generateInterface

      protected org.apache.axiom.om.OMElement generateInterface(org.apache.axiom.om.OMFactory omFactory) throws AxisFault, URISyntaxException, XMLStreamException, FactoryConfigurationError
      Throws:
      AxisFault
      URISyntaxException
      XMLStreamException
      FactoryConfigurationError
    • 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