Oracle Application Server Web Services Proxy API Reference
10g (9.0.4)

B10395-01

oracle.j2ee.ws.client
Class WebServiceProxyFactory

java.lang.Object
  |
  +--oracle.j2ee.ws.client.WebServiceProxyFactory

public class WebServiceProxyFactory
extends java.lang.Object

Factory class used to create WebServiceProxy class given a WSDL.


Constructor Summary
WebServiceProxyFactory()
           

 

Method Summary
 WebServiceProxy createWebServiceProxy(java.io.InputStream wsdlis, java.net.URL baseUrl)
          Creates an instance of the WebServiceProxy for the supplied WSDL.
 WebServiceProxy createWebServiceProxy(java.net.URL wsdlUrl)
          Creates an instance of the WebServiceProxy for the supplied WSDL.
 WebServiceProxy createWebServiceProxyFromBinding(java.io.InputStream wsdlis, java.net.URL baseUrl, java.lang.String szBindingName, java.lang.String szSoapLocation)
          Creates an instance of the WebServiceProxy for the supplied WSDL.
 WebServiceProxy createWebServiceProxyFromBinding(java.net.URL wsdlUrl, java.lang.String szBindingName, java.lang.String szSoapLocation)
          Creates an instance of the WebServiceProxy for the supplied WSDL.
 WebServiceProxy createWebServiceProxyFromService(java.io.InputStream wsdlis, java.net.URL baseUrl, java.lang.String szServiceName, java.lang.String szServicePort)
          Creates an instance of the WebServiceProxy for the supplied WSDL.
 WebServiceProxy createWebServiceProxyFromService(java.net.URL wsdlUrl, java.lang.String szServiceName, java.lang.String szServicePort)
          Creates an instance of the WebServiceProxy for the supplied WSDL.
 void setProperties(java.util.Hashtable ht)
          Supplies additional optional initialization parameters to the WebServiceProxy.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

WebServiceProxyFactory

public WebServiceProxyFactory()
Method Detail

setProperties

public void setProperties(java.util.Hashtable ht)
Supplies additional optional initialization parameters to the WebServiceProxy. The supplied set of parameters will be set in each WebServiceProxy instance created by this factory. Allowed keys in the hashtable are:

createWebServiceProxy

public WebServiceProxy createWebServiceProxy(java.io.InputStream wsdlis,
                                             java.net.URL baseUrl)
                                      throws WebServiceProxyException
Creates an instance of the WebServiceProxy for the supplied WSDL. By using this factory method, the returned proxy will use the first service and its first port in the supplied WSDL document.
Parameters:
wsdlis - InputStream of the WSDL describing the WebService used by this proxy
baseUrl - based url used for resolving possible imports in WSDL
Returns:
WebServiceProxy new instance

createWebServiceProxyFromService

public WebServiceProxy createWebServiceProxyFromService(java.io.InputStream wsdlis,
                                                        java.net.URL baseUrl,
                                                        java.lang.String szServiceName,
                                                        java.lang.String szServicePort)
                                                 throws WebServiceProxyException
Creates an instance of the WebServiceProxy for the supplied WSDL.
Parameters:
wsdlis - InputStream of the WSDL describing the WebService used by this proxy
baseUrl - based url used for resolving possible imports in WSDL
szServiceName - name of one of the services defined in the WSDL, The proxy will use this service.
szServicePort - name of one of the port f the service identified by szServiceName. The proxy will use this service port.
Returns:
WebServiceProxy new instance

createWebServiceProxyFromBinding

public WebServiceProxy createWebServiceProxyFromBinding(java.io.InputStream wsdlis,
                                                        java.net.URL baseUrl,
                                                        java.lang.String szBindingName,
                                                        java.lang.String szSoapLocation)
                                                 throws WebServiceProxyException
Creates an instance of the WebServiceProxy for the supplied WSDL. This factory method is useful when building a proxy for a WSDL identified in UDDI registry. In fact in that case, the service binding to be used and the service soap location will be identified through separate UDDI queries.
Parameters:
wsdlis - InputStream of the WSDL describing the WebService used by this proxy
baseUrl - based url used for resolving possible imports in WSDL
szBindingName - name of one of the bindings defined in the WSDL. The proxy will use this binding.
szSoapLocation - location of the SOAP service to be used.
Returns:
WebServiceProxy new instance

createWebServiceProxy

public WebServiceProxy createWebServiceProxy(java.net.URL wsdlUrl)
                                      throws WebServiceProxyException
Creates an instance of the WebServiceProxy for the supplied WSDL. By using this factory method, the returned proxy will use the first service and its first port in the supplied WSDL document.
Parameters:
wsdlUrl - url of the WSDL describing the WebService used by this proxy
Returns:
WebServiceProxy new instance

createWebServiceProxyFromService

public WebServiceProxy createWebServiceProxyFromService(java.net.URL wsdlUrl,
                                                        java.lang.String szServiceName,
                                                        java.lang.String szServicePort)
                                                 throws WebServiceProxyException
Creates an instance of the WebServiceProxy for the supplied WSDL.
Parameters:
wsdlUrl - url of the WSDL describing the WebService used by this proxy
szServiceName - name of one of the services defined in the WSDL, The proxy will use this service.
szServicePort - name of one of the port f the service identified by szServiceName. The proxy will use this service port.
Returns:
WebServiceProxy new instance

createWebServiceProxyFromBinding

public WebServiceProxy createWebServiceProxyFromBinding(java.net.URL wsdlUrl,
                                                        java.lang.String szBindingName,
                                                        java.lang.String szSoapLocation)
                                                 throws WebServiceProxyException
Creates an instance of the WebServiceProxy for the supplied WSDL. This factory method is useful when building a proxy for a WSDL identified in UDDI registry. In fact in that case, the service binding to be used and the service soap location will be identified through separate UDDI queries.
Parameters:
wsdlUrl - url of the WSDL describing the WebService used by this proxy
szBindingName - name of one of the bindings defined in the WSDL. The proxy will use this binding.
szSoapLocation - location of the SOAP service to be used.
Returns:
WebServiceProxy new instance

Oracle Application Server Web Services Proxy API Reference
10g (9.0.4)

B10395-01

Copyright © 2002, 2003 Oracle Corporation. All Rights Reserved.