org.jboss.soa.esb.actions.soap
Class WebServiceUtils

java.lang.Object
  extended by org.jboss.soa.esb.actions.soap.WebServiceUtils

public class WebServiceUtils
extends java.lang.Object

Holds reusable utilities and constants needed by SOAP services.

Author:
Magesh Kumar B

Field Summary
static java.lang.String JBOSSWS_CONTEXT
           
static java.lang.String JBOSSWS_ENDPOINT
           
 
Constructor Summary
WebServiceUtils()
           
 
Method Summary
static org.jboss.wsf.spi.deployment.Endpoint getDeploymentEndpoint(java.lang.String endpointName)
          Get the Service Endpoint based on the endpoint's deployment name.
static org.jboss.wsf.spi.deployment.Endpoint getServiceEndpoint(java.lang.String endpointName, java.lang.String contextName)
          Get the Service Endpoint based on the endpoint's short name.
static javax.wsdl.Definition readWSDL(java.net.URL wsdlURL)
          Parse and create wsdl4j Definition from a given WSDL URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JBOSSWS_CONTEXT

public static final java.lang.String JBOSSWS_CONTEXT
See Also:
Constant Field Values

JBOSSWS_ENDPOINT

public static final java.lang.String JBOSSWS_ENDPOINT
See Also:
Constant Field Values
Constructor Detail

WebServiceUtils

public WebServiceUtils()
Method Detail

getServiceEndpoint

public static org.jboss.wsf.spi.deployment.Endpoint getServiceEndpoint(java.lang.String endpointName,
                                                                       java.lang.String contextName)
Get the Service Endpoint based on the endpoint's short name. An optional Deployment Context name can also be specified for uniqueness.

Parameters:
endpointName - Service Endpoint name.
contextName - Service's Deployment Context name.
Returns:
The service endpoint, or null if the endpoint is not found.

getDeploymentEndpoint

public static org.jboss.wsf.spi.deployment.Endpoint getDeploymentEndpoint(java.lang.String endpointName)
Get the Service Endpoint based on the endpoint's deployment name.

Parameters:
endpointName - The deployment name.
Returns:
The service endpoint, or null if the endpoint is not found.

readWSDL

public static javax.wsdl.Definition readWSDL(java.net.URL wsdlURL)
                                      throws javax.wsdl.WSDLException
Parse and create wsdl4j Definition from a given WSDL URL.

Parameters:
wsdlURL - The URL to WSDL.
Returns:
If found, the wsdl4j Definition.
Throws:
javax.wsdl.WSDLException