|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.muse.ws.wsdl.WsdlUtils
WsdlUtils is a collection of utility methods related to WSDL 1.1.
Field Summary | |
---|---|
static QName |
ADDRESS_QNAME
|
static QName |
BINDING_QNAME
|
static java.lang.String |
DEFAULT_SERVICE_NAME
|
static QName |
DEFINITIONS_QNAME
|
static QName |
IMPORT_QNAME
|
static QName |
INPUT_QNAME
|
static java.lang.String |
LOCATION
|
static QName |
MESSAGE_QNAME
|
static java.lang.String |
NAME
|
static java.lang.String |
NAMESPACE_URI
The WSDL 1.1 namespace URI. |
static QName |
OPERATION_QNAME
|
static QName |
OUTPUT_QNAME
|
static QName |
PORT_QNAME
|
static QName |
PORT_TYPE_QNAME
|
static java.lang.String |
PREFIX
|
static QName |
SERVICE_QNAME
|
static java.lang.String |
SERVICES
|
static java.lang.String |
SOAP_PREFIX
|
static java.lang.String |
SOAP_URI
The "WSDL-SOAP" namespace used for SOAP bindings. |
static QName |
TYPES_QNAME
|
static java.lang.String |
WSDL4J_VERBOSE_FLAG
|
Constructor Summary | |
---|---|
WsdlUtils()
|
Method Summary | |
---|---|
static org.w3c.dom.Document |
addSchemaImports(org.w3c.dom.Document wsdl,
java.lang.String wsdlPath,
Environment environment,
java.util.Set namespaces)
This is a convenience method that resolves all of the schema imports referenced in a WSDL. |
static org.w3c.dom.Document |
addSchemaIncludes(org.w3c.dom.Document wsdl,
java.lang.String wsdlPath,
Environment environment,
java.util.Set namespaces)
This is a convenience method that resolves all of the schema includes referenced in a WSDL. |
static Definition |
createDefinition(org.w3c.dom.Document wsdlDoc,
java.io.File wsdlDir)
|
static org.w3c.dom.Document |
createWSDL(Environment environment,
java.lang.String wsdlPath,
boolean resolveReferences)
Loads the WSDL at the given path, resolving any imports if desired. |
static java.lang.String |
getAction(Operation op)
|
static org.w3c.dom.Element |
getComplexTypeDeclaration(org.w3c.dom.Node wsdl,
QName qname)
Searches a WSDL document's types section for a complex type defined with the given name. |
static org.w3c.dom.Element |
getElementDeclaration(org.w3c.dom.Node wsdl,
QName qname)
Searches a WSDL document's types section for a type defined with the given name. |
static org.w3c.dom.Element |
getFirstPortType(org.w3c.dom.Node wsdl)
Returns the first portType (in document order) that's found in a given WSDL or null if the WSDL contains no portTypes. |
static QName |
getInputPartName(Operation op)
|
static QName |
getOutputPartName(Operation op,
org.w3c.dom.Document wsdlDoc)
This method is somewhat painful because of the lack of restrictions that WSDL 1.1 has for how you can specify input and output names and types. |
static org.w3c.dom.Element |
getPortType(org.w3c.dom.Node wsdl,
QName qname)
Searches a WSDL document for a portType defined with the given name. |
static java.util.Set |
getSchemaNamespaces(org.w3c.dom.Document wsdl)
Gathers the target namespaces for each schema in the WSDL's types section. |
static java.lang.String |
getServiceName(org.w3c.dom.Element wsdlDefinition)
Given a WSDL document try to get the address and parse out the name of the service. |
static java.util.Collection |
getWsdlImports(org.w3c.dom.Document wsdl,
java.lang.String wsdlPath,
Environment environment)
Creates the WSDLs that are imported in the given WSDL as independent Documents. |
static void |
mergeWSDL(org.w3c.dom.Document from,
org.w3c.dom.Document to,
java.util.Set namespaces)
Determines which schema content the first WSDL has that the second one doesn't and adds that content to the second WSDL. |
static org.w3c.dom.Element |
removeSchemaReferences(org.w3c.dom.Element wsdl)
|
static org.w3c.dom.Element |
removeWsdlReferences(org.w3c.dom.Element wsdl)
Iterates over a WSDL document and removes all WSDL imports and XSD imports. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String NAMESPACE_URI
public static final java.lang.String PREFIX
public static final java.lang.String SOAP_URI
public static final java.lang.String SOAP_PREFIX
public static final QName ADDRESS_QNAME
public static final QName BINDING_QNAME
public static final QName DEFINITIONS_QNAME
public static final QName IMPORT_QNAME
public static final QName INPUT_QNAME
public static final java.lang.String LOCATION
public static final QName MESSAGE_QNAME
public static final java.lang.String NAME
public static final QName OPERATION_QNAME
public static final QName OUTPUT_QNAME
public static final QName PORT_QNAME
public static final QName PORT_TYPE_QNAME
public static final QName SERVICE_QNAME
public static final QName TYPES_QNAME
public static final java.lang.String WSDL4J_VERBOSE_FLAG
public static final java.lang.String DEFAULT_SERVICE_NAME
public static final java.lang.String SERVICES
Constructor Detail |
public WsdlUtils()
Method Detail |
public static org.w3c.dom.Document addSchemaImports(org.w3c.dom.Document wsdl, java.lang.String wsdlPath, Environment environment, java.util.Set namespaces)
public static org.w3c.dom.Document addSchemaIncludes(org.w3c.dom.Document wsdl, java.lang.String wsdlPath, Environment environment, java.util.Set namespaces)
public static Definition createDefinition(org.w3c.dom.Document wsdlDoc, java.io.File wsdlDir)
public static org.w3c.dom.Document createWSDL(Environment environment, java.lang.String wsdlPath, boolean resolveReferences)
environment
- The Muse environment is used to load the WSDL file.wsdlPath
- The relative path of the WSDL file.resolveReferences
- True if you want the method to process and WSDL and XSD
imports that are in the WSDL document. The resulting Document
may be much larger depending on how many imports are
discovered while the method recurses through the other
WSDLs/XSDs.
public static java.lang.String getAction(Operation op)
public static org.w3c.dom.Element getComplexTypeDeclaration(org.w3c.dom.Node wsdl, QName qname)
wsdl
- The WDSL document to search.qname
- The name of the type definition to find.
public static org.w3c.dom.Element getElementDeclaration(org.w3c.dom.Node wsdl, QName qname)
wsdl
- The WDSL document to search.qname
- The name of the type definition to find.
public static org.w3c.dom.Element getFirstPortType(org.w3c.dom.Node wsdl)
wsdl
- The WSDL document to search
public static QName getInputPartName(Operation op)
public static QName getOutputPartName(Operation op, org.w3c.dom.Document wsdlDoc)
public static org.w3c.dom.Element getPortType(org.w3c.dom.Node wsdl, QName qname)
wsdl
- The WDSL document to search.qname
- The name of the portType definition to find.
public static java.util.Set getSchemaNamespaces(org.w3c.dom.Document wsdl)
wsdl
-
public static java.lang.String getServiceName(org.w3c.dom.Element wsdlDefinition)
wsdlDefinition
- The WSDL definition we're trying to parse
DEFAULT_SERVICE_NAME
public static java.util.Collection getWsdlImports(org.w3c.dom.Document wsdl, java.lang.String wsdlPath, Environment environment)
wsdl
- The original WSDL whose imports must be resolved.wsdlPath
- The relative path of the given WSDL. This is used to resolve
the paths of the imported WSDLs.environment
- The Muse environment is used to load the WSDL files.
public static void mergeWSDL(org.w3c.dom.Document from, org.w3c.dom.Document to, java.util.Set namespaces)
from
- The WSDL that may have unique schema content.to
- The WSDL that will receive the first WSDL's unique schema
content.namespaces
- The schema namespaces that have been processed by the second
WSDL.public static org.w3c.dom.Element removeSchemaReferences(org.w3c.dom.Element wsdl)
public static org.w3c.dom.Element removeWsdlReferences(org.w3c.dom.Element wsdl)
wsdl
- The WSDL Document whose import elements will be removed.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |