Package org.apache.axis2.wsdl
Class WSDLUtil
- java.lang.Object
-
- org.apache.axis2.wsdl.WSDLUtil
-
public class WSDLUtil extends Object
Some utility methods for the WSDL users
-
-
Constructor Summary
Constructors Constructor Description WSDLUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getConstantFromHTTPLocation(String httpLocation, String httpMethod)
static String
getEndpointName(String serviceName, String protocol)
This method will return the EndPointName for a service with give transport protocol ex : StudentServiceHttpEndpointstatic QName
getPartQName(String opName, String suffix, String partName)
part names are not unique across messages.static boolean
isInputPresentForMEP(String mep)
returns whether the given mep uri is one of the input mepsstatic boolean
isOutputPresentForMEP(String MEP)
returns whether the given mep URI is one of the output mepsstatic javax.wsdl.xml.WSDLReader
newWSDLReaderWithPopulatedExtensionRegistry()
Creates a new WSDLReader and configures it with aWSDLFactory.newPopulatedExtensionRegistry()
if it does not specify an extension registry.static void
registerDefaultExtensionAttributeTypes(javax.wsdl.extensions.ExtensionRegistry extensionRegistry)
Registers default extension attributes types to givenextensionRegistry
instance.
-
-
-
Method Detail
-
isInputPresentForMEP
public static boolean isInputPresentForMEP(String mep)
returns whether the given mep uri is one of the input meps- Parameters:
mep
-
-
isOutputPresentForMEP
public static boolean isOutputPresentForMEP(String MEP)
returns whether the given mep URI is one of the output meps- Parameters:
MEP
-
-
getPartQName
public static QName getPartQName(String opName, String suffix, String partName)
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
public static String getConstantFromHTTPLocation(String httpLocation, String httpMethod)
-
getEndpointName
public static String getEndpointName(String serviceName, String protocol)
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 givenextensionRegistry
instance.The method configures the following attributes of
Input
,Output
andFault
WSDL 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.WSDLException
Creates 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
-
-