Package org.apache.axis2.description
Class WSDL11ToAxisServiceBuilder
java.lang.Object
org.apache.axis2.description.WSDLToAxisServiceBuilder
org.apache.axis2.description.WSDL11ToAxisServiceBuilder
- Direct Known Subclasses:
WSDL11ToAllAxisServicesBuilder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInner class declaration for the processing exceptions -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final intstatic final intstatic final intstatic final Stringstatic final Stringprotected static final org.apache.commons.logging.Logstatic final Stringstatic final Stringprotected Stringstatic final Stringstatic final Stringstatic final Stringprotected javax.wsdl.Definitionprotected Stringstatic final StringFields inherited from class org.apache.axis2.description.WSDLToAxisServiceBuilder
AXIS2WRAPPED, axisConfig, axisService, in, isCodegen, isServerSide, nsCount, registry, resolvedRpcWrappedElementMap, serviceName, style, TYPES, XML_SCHEMA_COMPLEX_TYPE_LOCAL_NAME, XML_SCHEMA_ELEMENT_LOCAL_NAME, XML_SCHEMA_IMPORT_LOCAL_NAME, XML_SCHEMA_LOCAL_NAME, XML_SCHEMA_SEQUENCE_LOCAL_NAME, XMLNS_AXIS2WRAPPED, XMLSCHEMA_NAMESPACE_PREFIX, XMLSCHEMA_NAMESPACE_URI, XSD_ELEMENT_FORM_DEFAULT, XSD_NAME, XSD_REF, XSD_TARGETNAMESPACE, XSD_TYPE, XSD_UNQUALIFIED -
Constructor Summary
ConstructorsConstructorDescriptionWSDL11ToAxisServiceBuilder(InputStream in, QName serviceName, String portName) constructor taking in the service name and the port nameWSDL11ToAxisServiceBuilder(InputStream in, AxisService service) WSDL11ToAxisServiceBuilder(javax.wsdl.Definition def, QName serviceName, String portName) WSDL11ToAxisServiceBuilder(javax.wsdl.Definition def, QName serviceName, String portName, boolean isAllPorts) -
Method Summary
Modifier and TypeMethodDescriptionGets the URI to the base document associated with the WSDL definition.static StringThis 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 nullstatic StringgetTypeName(String attributeValue) booleanPopulates a given service.voidsetAllPorts(boolean allPorts) voidsetCustomWSDLResolver(javax.wsdl.xml.WSDLLocator customResolver) sets a custom WSDL locatorvoidsetDocumentBaseUri(String baseUri) Sets the URI to the base document associated with the WSDL definition.protected voidsetup()contains all code which gathers non-service specific information from the wsdl.Methods inherited from class org.apache.axis2.description.WSDLToAxisServiceBuilder
createHttpLocationTable, findSchemaPrefix, getBaseUri, getDOMDocumentBuilder, getServiceName, getTemporaryNamespacePrefix, getXMLSchema, isCodegen, isServerSide, replace, setBaseUri, setCodegen, setCustomResolver, setPolicyRegistryFromService, setServerSide, setServiceName, stackToString, stackToString, useAxisConfiguration
-
Field Details
-
COMPONENT_PORT_TYPE
public static final int COMPONENT_PORT_TYPE- See Also:
-
COMPONENT_MESSAGE
public static final int COMPONENT_MESSAGE- See Also:
-
COMPONENT_BINDING
public static final int COMPONENT_BINDING- See Also:
-
log
protected static final org.apache.commons.logging.Log log -
portName
-
wsdl4jDefinition
protected javax.wsdl.Definition wsdl4jDefinition -
wsdlBaseDocumentURI
-
RPC_STYLE
- See Also:
-
DOCUMENT_STYLE
- See Also:
-
ENCODED_USE
- See Also:
-
WRAPPED_OUTPUTNAME_SUFFIX
- See Also:
-
XML_NAMESPACE_URI
- See Also:
-
NAMESPACE_DECLARATION_PREFIX
- See Also:
-
NAMESPACE_URI
- See Also:
-
TRAGET_NAMESPACE
- See Also:
-
BINDING_TYPE_SOAP
- See Also:
-
BINDING_TYPE_HTTP
- See Also:
-
-
Constructor Details
-
WSDL11ToAxisServiceBuilder
constructor taking in the service name and the port name- Parameters:
in- - InputStream for the WSDLserviceName- - The service NameportName- - The port name
-
WSDL11ToAxisServiceBuilder
- Parameters:
def- - The WSDL4J Definition objectserviceName- - The service NameportName- - The port name
-
WSDL11ToAxisServiceBuilder
public WSDL11ToAxisServiceBuilder(javax.wsdl.Definition def, QName serviceName, String portName, boolean isAllPorts) - Parameters:
def- - The WSDL4J Definition objectserviceName- - The service NameportName- - The port nameisAllPorts- - boolean representing whether to generate code for all ports or not
-
WSDL11ToAxisServiceBuilder
- Parameters:
in-service-
-
WSDL11ToAxisServiceBuilder
- Parameters:
in-
-
-
Method Details
-
setCustomWSDLResolver
public void setCustomWSDLResolver(javax.wsdl.xml.WSDLLocator customResolver) sets a custom WSDL locator- Parameters:
customResolver-
-
setDocumentBaseUri
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
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
Populates a given service.- Specified by:
populateServicein classWSDLToAxisServiceBuilder- Throws:
AxisFault
-
setup
protected void setup() throws javax.wsdl.WSDLExceptioncontains 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
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
-