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_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)
          Get the Service Endpoint based on the endpoint's short name.
static java.lang.String getWsdlLocation(org.jboss.wsf.spi.deployment.Endpoint endpoint)
          Get the internal File system location of the WSDL for a given endpoint.
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_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)
Get the Service Endpoint based on the endpoint's short name.

Parameters:
endpointName - Service Endpoint 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.

getWsdlLocation

public static java.lang.String getWsdlLocation(org.jboss.wsf.spi.deployment.Endpoint endpoint)
Get the internal File system location of the WSDL for a given endpoint.

Parameters:
endpoint - Service Endpoint.
Returns:
If found, the File URI else null.

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