Class WSDLUtil


  • public class WSDLUtil
    extends Object
    Some utility methods for the WSDL users
    • Constructor Detail

      • WSDLUtil

        public WSDLUtil()
    • 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 given extensionRegistry instance.

        The method configures the following attributes of Input, Output and Fault WSDL elements to use AttributeExtensible.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 a WSDLFactory.newPopulatedExtensionRegistry() if it does not specify an extension registry. The method will register default extension attribute types in WSDLReader's extensionRegistry, see registerDefaultExtensionAttributeTypes(ExtensionRegistry).
        Returns:
        The newly created WSDLReader instance.
        Throws:
        javax.wsdl.WSDLException