Class WSDL11ToAxisServiceBuilder

java.lang.Object
org.apache.axis2.description.WSDLToAxisServiceBuilder
org.apache.axis2.description.WSDL11ToAxisServiceBuilder
Direct Known Subclasses:
WSDL11ToAllAxisServicesBuilder

public class WSDL11ToAxisServiceBuilder extends WSDLToAxisServiceBuilder
  • Field Details

  • Constructor Details

    • WSDL11ToAxisServiceBuilder

      public WSDL11ToAxisServiceBuilder(InputStream in, QName serviceName, String portName)
      constructor taking in the service name and the port name
      Parameters:
      in - - InputStream for the WSDL
      serviceName - - The service Name
      portName - - The port name
    • WSDL11ToAxisServiceBuilder

      public WSDL11ToAxisServiceBuilder(javax.wsdl.Definition def, QName serviceName, String portName)
      Parameters:
      def - - The WSDL4J Definition object
      serviceName - - The service Name
      portName - - The port name
    • WSDL11ToAxisServiceBuilder

      public WSDL11ToAxisServiceBuilder(javax.wsdl.Definition def, QName serviceName, String portName, boolean isAllPorts)
      Parameters:
      def - - The WSDL4J Definition object
      serviceName - - The service Name
      portName - - The port name
      isAllPorts - - boolean representing whether to generate code for all ports or not
    • WSDL11ToAxisServiceBuilder

      public WSDL11ToAxisServiceBuilder(InputStream in, AxisService service)
      Parameters:
      in -
      service -
    • WSDL11ToAxisServiceBuilder

      public WSDL11ToAxisServiceBuilder(InputStream in)
      Parameters:
      in -
  • Method Details

    • setCustomWSDLResolver

      public void setCustomWSDLResolver(javax.wsdl.xml.WSDLLocator customResolver)
      sets a custom WSDL locator
      Parameters:
      customResolver -
    • setDocumentBaseUri

      public void setDocumentBaseUri(String baseUri)
      Sets the URI to the base document associated with the WSDL definition. This identifies the origin of the Definition and allows the Definition to be reloaded. Note that this is the URI of the base document, not the imports.
      Parameters:
      baseUri -
    • getDocumentBaseUri

      public String getDocumentBaseUri()
      Gets the URI to the base document associated with the WSDL definition. This identifies the origin of the Definition and allows the Definition to be reloaded. Note that this is the URI of the base document, not the imports.
    • populateService

      public AxisService populateService() throws AxisFault
      Populates a given service.
      Specified by:
      populateService in class WSDLToAxisServiceBuilder
      Throws:
      AxisFault
    • setup

      protected void setup() throws javax.wsdl.WSDLException
      contains all code which gathers non-service specific information from the wsdl.

      After all the setup completes successfully, the setupComplete field is set so that any subsequent calls to setup() will result in a no-op. Note that subclass WSDL11ToAllAxisServicesBuilder will call populateService for each port in the WSDL. Separating the non-service specific information here allows WSDL11ToAllAxisServicesBuilder to only do this work 1 time per WSDL, instead of for each port on each service.

      Throws:
      javax.wsdl.WSDLException - if readInTheWSDLFile fails
    • isAllPorts

      public boolean isAllPorts()
    • setAllPorts

      public void setAllPorts(boolean allPorts)
    • getPrefix

      public static String getPrefix(String attributeValue)
      This method is to split attribute like abc:cde and get the prefix part of it so the method will retuen abc if the ":" is present in the the string else it will return null
      Parameters:
      attributeValue - : String
      Returns:
      String
    • getTypeName

      public static String getTypeName(String attributeValue)