Package org.apache.axis2.description
Class WSDLToAxisServiceBuilder
- java.lang.Object
-
- org.apache.axis2.description.WSDLToAxisServiceBuilder
-
- Direct Known Subclasses:
WSDL11ToAxisServiceBuilder
,WSDL20ToAxisServiceBuilder
public abstract class WSDLToAxisServiceBuilder extends Object
-
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
WSDLToAxisServiceBuilder()
WSDLToAxisServiceBuilder(InputStream in, QName serviceName)
WSDLToAxisServiceBuilder(InputStream in, AxisService axisService)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Map<String,AxisOperation>
createHttpLocationTable()
protected String
findSchemaPrefix()
Find the XML schema prefixString
getBaseUri()
Gets the URI associated with the base document for the WSDL definition.protected DocumentBuilder
getDOMDocumentBuilder()
Utility method that returns a DOM BuilderQName
getServiceName()
protected String
getTemporaryNamespacePrefix()
Get a temporary namespace prefix.protected org.apache.ws.commons.schema.XmlSchema
getXMLSchema(Element element, String baseUri)
boolean
isCodegen()
boolean
isServerSide()
abstract AxisService
populateService()
protected static String
replace(String name, String oldT, String newT)
replace: Like String.replace except that the old new items are strings.void
setBaseUri(String baseUri)
Sets the URI associated with the base document for the WSDL definition.void
setCodegen(boolean codegen)
void
setCustomResolver(org.apache.ws.commons.schema.resolver.URIResolver customResolver)
Sets a custom xmlschema URI resolverprotected void
setPolicyRegistryFromService(AxisService axisService)
void
setServerSide(boolean serverSide)
void
setServiceName(QName serviceName)
protected static String
stackToString()
Get a string containing the stack of the current locationprotected static String
stackToString(Throwable e)
Get a string containing the stack of the specified exceptionvoid
useAxisConfiguration(AxisConfiguration axisConfig)
-
-
-
Field Detail
-
XMLSCHEMA_NAMESPACE_URI
protected static final String XMLSCHEMA_NAMESPACE_URI
- See Also:
- Constant Field Values
-
XMLSCHEMA_NAMESPACE_PREFIX
protected static final String XMLSCHEMA_NAMESPACE_PREFIX
- See Also:
- Constant Field Values
-
XML_SCHEMA_LOCAL_NAME
protected static final String XML_SCHEMA_LOCAL_NAME
- See Also:
- Constant Field Values
-
XML_SCHEMA_SEQUENCE_LOCAL_NAME
protected static final String XML_SCHEMA_SEQUENCE_LOCAL_NAME
- See Also:
- Constant Field Values
-
XML_SCHEMA_COMPLEX_TYPE_LOCAL_NAME
protected static final String XML_SCHEMA_COMPLEX_TYPE_LOCAL_NAME
- See Also:
- Constant Field Values
-
XML_SCHEMA_ELEMENT_LOCAL_NAME
protected static final String XML_SCHEMA_ELEMENT_LOCAL_NAME
- See Also:
- Constant Field Values
-
XML_SCHEMA_IMPORT_LOCAL_NAME
protected static final String XML_SCHEMA_IMPORT_LOCAL_NAME
- See Also:
- Constant Field Values
-
XSD_NAME
protected static final String XSD_NAME
- See Also:
- Constant Field Values
-
XSD_TARGETNAMESPACE
protected static final String XSD_TARGETNAMESPACE
- See Also:
- Constant Field Values
-
XMLNS_AXIS2WRAPPED
protected static final String XMLNS_AXIS2WRAPPED
- See Also:
- Constant Field Values
-
AXIS2WRAPPED
protected static final String AXIS2WRAPPED
- See Also:
- Constant Field Values
-
XSD_TYPE
protected static final String XSD_TYPE
- See Also:
- Constant Field Values
-
XSD_REF
protected static final String XSD_REF
- See Also:
- Constant Field Values
-
nsCount
protected static int nsCount
-
resolvedRpcWrappedElementMap
protected Map resolvedRpcWrappedElementMap
-
XSD_ELEMENT_FORM_DEFAULT
protected static final String XSD_ELEMENT_FORM_DEFAULT
- See Also:
- Constant Field Values
-
XSD_UNQUALIFIED
protected static final String XSD_UNQUALIFIED
- See Also:
- Constant Field Values
-
in
protected InputStream in
-
axisService
protected AxisService axisService
-
registry
protected org.apache.neethi.PolicyRegistry registry
-
axisConfig
protected AxisConfiguration axisConfig
-
serviceName
protected QName serviceName
-
isServerSide
protected boolean isServerSide
-
style
protected String style
-
TYPES
protected static final String TYPES
- See Also:
- Constant Field Values
-
isCodegen
protected boolean isCodegen
-
-
Constructor Detail
-
WSDLToAxisServiceBuilder
protected WSDLToAxisServiceBuilder()
-
WSDLToAxisServiceBuilder
public WSDLToAxisServiceBuilder(InputStream in, QName serviceName)
-
WSDLToAxisServiceBuilder
public WSDLToAxisServiceBuilder(InputStream in, AxisService axisService)
-
-
Method Detail
-
setCustomResolver
public void setCustomResolver(org.apache.ws.commons.schema.resolver.URIResolver customResolver)
Sets a custom xmlschema URI resolver- Parameters:
customResolver
- a URIResolver to use when working with schemas
-
isServerSide
public boolean isServerSide()
-
setServerSide
public void setServerSide(boolean serverSide)
-
setPolicyRegistryFromService
protected void setPolicyRegistryFromService(AxisService axisService)
-
getXMLSchema
protected org.apache.ws.commons.schema.XmlSchema getXMLSchema(Element element, String baseUri)
-
findSchemaPrefix
protected String findSchemaPrefix()
Find the XML schema prefix- Returns:
- the active schema prefix, or the default schema prefix if not declared
-
populateService
public abstract AxisService populateService() throws AxisFault
- Throws:
AxisFault
-
getDOMDocumentBuilder
protected DocumentBuilder getDOMDocumentBuilder()
Utility method that returns a DOM Builder- Returns:
- a namespace-aware DOM DocumentBuilder
-
getTemporaryNamespacePrefix
protected String getTemporaryNamespacePrefix()
Get a temporary namespace prefix. NOT threadsafe.- Returns:
- a new namespace prefix of the form "nsX"
-
getBaseUri
public String getBaseUri()
Gets the URI associated with the base document for the WSDL definition. Note that this URI is for the base document, not the imports.- Returns:
- The URI as a String
-
setBaseUri
public void setBaseUri(String baseUri)
Sets the URI associated with the base document for the WSDL definition. Note that this URI is for the base document, not the imports.- Parameters:
baseUri
- The URI as a String
-
isCodegen
public boolean isCodegen()
-
setCodegen
public void setCodegen(boolean codegen)
-
getServiceName
public QName getServiceName()
-
setServiceName
public void setServiceName(QName serviceName)
-
stackToString
protected static String stackToString()
Get a string containing the stack of the current location- Returns:
- String
-
stackToString
protected static String stackToString(Throwable e)
Get a string containing the stack of the specified exception- Parameters:
e
-- Returns:
-
replace
protected static final String replace(String name, String oldT, String newT)
replace: Like String.replace except that the old new items are strings.- Parameters:
name
- stringoldT
- old text to replacenewT
- new text to use- Returns:
- replacement string
-
useAxisConfiguration
public void useAxisConfiguration(AxisConfiguration axisConfig)
-
createHttpLocationTable
protected Map<String,AxisOperation> createHttpLocationTable()
-
-