uk.ac.soton.itinnovation.grid.comms.wsdl
Class WSDLUtils

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.comms.wsdl.WSDLUtils

public class WSDLUtils
extends Object

Methods for dealing with WSDL in its various forms.


Constructor Summary
WSDLUtils()
           
 
Method Summary
static BindingEntry getBindingEntry(Parser parser, QName bindingName)
           
static BindingEntry getBindingEntry(WSDLCache wsdlCache, String filename, QName bindingName)
          Get a BindingEntry from a WSDL identified by a string
static BindingEntry getBindingEntry(WSDLCache wsdlCache, URL url, QName bindingName)
          Get a BindingEntry from a WSDL identified by its URL
static javax.wsdl.Definition getDefinition(Document doc, URL url)
          Get the WSDL as a Definition object.
static javax.wsdl.Definition getDefinition(Parser parser)
          Get the WSDL as a Definition object.
static javax.wsdl.Definition getDefinition(WSDLCache wsdlCache, String filename)
          Get the WSDL as a Definition object.
static javax.wsdl.Definition getDefinition(WSDLCache wsdlCache, URL url)
          Get the WSDL as a Definition object.
static Parser getParser(Document doc, String filename)
          Get the WSDL in a Parser object.
static Parser getParser(Document doc, URL url)
          Get the WSDL in a Parser object.
static Parser getParser(WSDLCache wsdlCache, String filename)
          Get the WSDL in a Parser object.
static Parser getParser(WSDLCache wsdlCache, URL url, X509Certificate expectedCertificate)
           
static QName getSoapBinding(javax.wsdl.Definition def)
           
static QName getSoapBinding(WSDLCache wsdlCache, String filename)
          Get a SOAP binding from a WSDL identified by a string
static QName getSoapBinding(WSDLCache wsdlCache, URL url)
          Get a SOAP binding from a WSDL identified by its URL
static boolean isOperationInWSDL(org.apache.axis.message.addressing.EndpointReferenceType target, String operation, WSDLCache cache)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDLUtils

public WSDLUtils()
Method Detail

isOperationInWSDL

public static boolean isOperationInWSDL(org.apache.axis.message.addressing.EndpointReferenceType target,
                                        String operation,
                                        WSDLCache cache)
                                 throws RemoteException
Throws:
RemoteException

getParser

public static Parser getParser(WSDLCache wsdlCache,
                               URL url,
                               X509Certificate expectedCertificate)
                        throws RemoteException
Throws:
RemoteException

getParser

public static Parser getParser(WSDLCache wsdlCache,
                               String filename)
Get the WSDL in a Parser object.

Parameters:
doc - the WSDL Document
url - the URL of the WSDL
Returns:
the WSDL in a Parser object

getParser

public static Parser getParser(Document doc,
                               URL url)
Get the WSDL in a Parser object.

Parameters:
doc - the WSDL document
url - the URL of the WSDL
Returns:
the WSDL in a Parser object

getParser

public static Parser getParser(Document doc,
                               String filename)
Get the WSDL in a Parser object.

Parameters:
doc - the WSDL document
filename - the identifier for the WSDL, such as its filename
Returns:
the WSDL in a Parser object

getDefinition

public static javax.wsdl.Definition getDefinition(WSDLCache wsdlCache,
                                                  URL url)
                                           throws RemoteException
Get the WSDL as a Definition object.

Parameters:
wsdlCache - the WSDLCache to get the WSDL from
url - the URL of the WSDL
Returns:
the WSDL in a Definition object
Throws:
RemoteException

getDefinition

public static javax.wsdl.Definition getDefinition(WSDLCache wsdlCache,
                                                  String filename)
Get the WSDL as a Definition object.

Parameters:
wsdlCache - the WSDLCache to get the WSDL from
filename - string identifying the WSDL such as its filename
Returns:
the WSDL in a Definition object
Throws:
RemoteException

getDefinition

public static javax.wsdl.Definition getDefinition(Document doc,
                                                  URL url)
Get the WSDL as a Definition object.

Parameters:
doc - the WSDL in a Document
url - the URL of the WSDL
Returns:
the WSDL in a Definition object

getDefinition

public static javax.wsdl.Definition getDefinition(Parser parser)
Get the WSDL as a Definition object.

Parameters:
parser - the Parser object holding the WSDL
Returns:
the WSDL in a Definition object

getBindingEntry

public static BindingEntry getBindingEntry(WSDLCache wsdlCache,
                                           URL url,
                                           QName bindingName)
                                    throws RemoteException
Get a BindingEntry from a WSDL identified by its URL

Parameters:
wsdlCache - the wsdlCache to get the WSDL from
url - the URL of the WSDL
bindingName - the QName of the bindingName to get
Returns:
a BindingEntry
Throws:
RemoteException

getBindingEntry

public static BindingEntry getBindingEntry(WSDLCache wsdlCache,
                                           String filename,
                                           QName bindingName)
Get a BindingEntry from a WSDL identified by a string

Parameters:
wsdlCache - the wsdlCache to get the WSDL from
url - the identifier for the WSDL, such as its filename
bindingName - the QName of the bindingName to get
Returns:
a BindingEntry
Throws:
RemoteException

getBindingEntry

public static BindingEntry getBindingEntry(Parser parser,
                                           QName bindingName)
                                    throws RemoteException
Throws:
RemoteException

getSoapBinding

public static QName getSoapBinding(WSDLCache wsdlCache,
                                   URL url)
                            throws RemoteException
Get a SOAP binding from a WSDL identified by its URL

Parameters:
wsdlCache - the WSDLCache to get the WSDL from
url - the URL of the WSDL
Returns:
the SOAP binding as a QName
Throws:
RemoteException

getSoapBinding

public static QName getSoapBinding(WSDLCache wsdlCache,
                                   String filename)
Get a SOAP binding from a WSDL identified by a string

Parameters:
wsdlCache - the WSDLCache to get the WSDL from
url - the identifier of the WSDL, such as a filename
Returns:
the SOAP binding as a QName
Throws:
RemoteException

getSoapBinding

public static QName getSoapBinding(javax.wsdl.Definition def)


Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.