uk.ac.soton.itinnovation.grid.client.proxy
Class ServiceFactory

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.client.proxy.ServiceFactory

public class ServiceFactory
extends Object

Creates service objects from WSDL.


Constructor Summary
ServiceFactory(WSDLCache wsdlCache, ProxyFactory proxyFactory)
           
 
Method Summary
 Object[] createServiceProxies(URL wsdlURL, X509Certificate expectedCertificate)
          Create a proxy for each port in then given WSDL.
 Object createServiceProxy(org.apache.axis.message.addressing.EndpointReferenceType EPR, URL wsdlURL, javax.wsdl.Port port)
           
 Object createServiceProxy(String wsdlURL)
          Make a proxy for the service port in the given WSDL.
 Object createServiceProxy(URL wsdlURL)
          Make a proxy for the service port in the given WSDL.
 Object createServiceProxy(URL wsdlURL, X509Certificate expectedCertificate)
          Make a proxy for the service port in the given WSDL.
 javax.wsdl.Port[] getPorts(URL wsdlURL, X509Certificate expectedCertificate)
           
 org.apache.axis.message.addressing.EndpointReferenceType[] getServiceEPRs(URL wsdlURL, X509Certificate expectedCertificate)
          Return an EPR for each port in the WSDL at url.
 URL getServiceURL(javax.wsdl.Port port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceFactory

public ServiceFactory(WSDLCache wsdlCache,
                      ProxyFactory proxyFactory)
Method Detail

getServiceEPRs

public org.apache.axis.message.addressing.EndpointReferenceType[] getServiceEPRs(URL wsdlURL,
                                                                                 X509Certificate expectedCertificate)
                                                                          throws RemoteException
Return an EPR for each port in the WSDL at url.

Parameters:
wsdlURL - the URL of the WSDL
Returns:
an array of EPRs, with their types filled from the WSDLs' port types
Throws:
RemoteException

getPorts

public javax.wsdl.Port[] getPorts(URL wsdlURL,
                                  X509Certificate expectedCertificate)
                           throws RemoteException
Throws:
RemoteException

createServiceProxies

public Object[] createServiceProxies(URL wsdlURL,
                                     X509Certificate expectedCertificate)
                              throws RemoteException
Create a proxy for each port in then given WSDL.

Throws:
RemoteException

createServiceProxy

public Object createServiceProxy(org.apache.axis.message.addressing.EndpointReferenceType EPR,
                                 URL wsdlURL,
                                 javax.wsdl.Port port)
                          throws RemoteException
Throws:
RemoteException

createServiceProxy

public Object createServiceProxy(String wsdlURL)
                          throws RemoteException,
                                 MalformedURLException
Make a proxy for the service port in the given WSDL.

Parameters:
wsdlURL - the URL of the WSDL
Returns:
a proxy for the service
Throws:
RemoteException - if there isn't exactly one port or if there is a problem getting the WSDL
MalformedURLException
See Also:
used to determine the type of proxy returned

createServiceProxy

public Object createServiceProxy(URL wsdlURL)
                          throws RemoteException
Make a proxy for the service port in the given WSDL.

Parameters:
wsdlURL - the URL of the WSDL
Returns:
a proxy for the service
Throws:
RemoteException - if there isn't exactly one port or if there is a problem getting the WSDL
See Also:
used to determine the type of proxy returned

createServiceProxy

public Object createServiceProxy(URL wsdlURL,
                                 X509Certificate expectedCertificate)
                          throws RemoteException
Make a proxy for the service port in the given WSDL.

Parameters:
wsdlURL - the URL of the WSDL
expectedCertificate - an extra SSL certificate to trust (optional)
Returns:
a proxy for the service
Throws:
RemoteException - if there isn't exactly one port or if there is a problem getting the WSDL
See Also:
used to determine the type of proxy returned

getServiceURL

public URL getServiceURL(javax.wsdl.Port port)


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