Package org.apache.axis2.wsdl
Class WSDLUtil
java.lang.Object
org.apache.axis2.wsdl.WSDLUtil
Some utility methods for the WSDL users
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetConstantFromHTTPLocation(String httpLocation, String httpMethod) static StringgetEndpointName(String serviceName, String protocol) This method will return the EndPointName for a service with give transport protocol ex : StudentServiceHttpEndpointstatic QNamegetPartQName(String opName, String suffix, String partName) part names are not unique across messages.static booleanreturns whether the given mep uri is one of the input mepsstatic booleanreturns whether the given mep URI is one of the output mepsstatic javax.wsdl.xml.WSDLReaderCreates a new WSDLReader and configures it with aWSDLFactory.newPopulatedExtensionRegistry()if it does not specify an extension registry.static voidregisterDefaultExtensionAttributeTypes(javax.wsdl.extensions.ExtensionRegistry extensionRegistry) Registers default extension attributes types to givenextensionRegistryinstance.
-
Constructor Details
-
WSDLUtil
public WSDLUtil()
-
-
Method Details
-
isInputPresentForMEP
returns whether the given mep uri is one of the input meps- Parameters:
mep-
-
isOutputPresentForMEP
returns whether the given mep URI is one of the output meps- Parameters:
MEP-
-
getPartQName
part names are not unique across messages. Hence we need some way of making the part name a unique one (due to the fact that the type mapper is a global list of types). The seemingly best way to do that is to specify a namespace for the part QName reference which is stored in the list. This part qname is temporary and should not be used with it's namespace URI (which happened to be the operation name) with _input (or a similar suffix) attached to it- Parameters:
opName-suffix-partName-
-
getConstantFromHTTPLocation
-
getEndpointName
This method will return the EndPointName for a service with give transport protocol ex : StudentServiceHttpEndpoint- Parameters:
serviceName-protocol- transport protocol- Returns:
-
registerDefaultExtensionAttributeTypes
public static void registerDefaultExtensionAttributeTypes(javax.wsdl.extensions.ExtensionRegistry extensionRegistry) Registers default extension attributes types to givenextensionRegistryinstance.The method configures the following attributes of
Input,OutputandFaultWSDL elements to useAttributeExtensible.STRING_TYPE:- {http://www.w3.org/2005/08/addressing}Action
- {http://www.w3.org/2006/05/addressing/wsdl}Action
- {http://www.w3.org/2007/05/addressing/metadata}Action
- {http://schemas.xmlsoap.org/ws/2004/08/addressing}Action
- Parameters:
extensionRegistry- The extension registry to add default extension attribute types to. Must not be null.
-
newWSDLReaderWithPopulatedExtensionRegistry
public static javax.wsdl.xml.WSDLReader newWSDLReaderWithPopulatedExtensionRegistry() throws javax.wsdl.WSDLExceptionCreates a new WSDLReader and configures it with aWSDLFactory.newPopulatedExtensionRegistry()if it does not specify an extension registry. The method will register default extension attribute types in WSDLReader'sextensionRegistry, seeregisterDefaultExtensionAttributeTypes(ExtensionRegistry).- Returns:
- The newly created WSDLReader instance.
- Throws:
javax.wsdl.WSDLException
-