|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.soap.WebServiceProxy
The proxy class for the WebLogic web service client API. It is used to invoke remote web services.
Method Summary | |
SoapMethod |
addMethod(java.lang.String name,
SoapType returnType,
SoapType[] parameters)
creates and add a soap method to this proxy with the specified name, return type and parameters. |
static WebServiceProxy |
createService(java.lang.String name,
java.lang.String namespace,
java.net.URL location)
Creates a web service which can invoke soap methods on the specified location. |
static WebServiceProxy |
createService(java.net.URL location)
Creates a web service which can invoke soap methods on the specified location. |
CodecFactory |
getCodecFactory()
returns the encoding/decoding factory used by this web service |
java.net.URL |
getLocation()
returns the endpoint of this proxy. |
SoapMethod |
getMethod(java.lang.String name)
returns the method with the given name. |
java.util.Iterator |
getMethods()
returns all the methods available in this proxy. |
java.lang.String |
getName()
returns the name of this service |
java.lang.String |
getNamespace()
returns the namespace of the service |
static WebServiceProxy |
getServiceAt(java.net.URL wsdlLocation)
Creates a Web Service proxy based on the WSDL file available on the specified location. |
static WebServiceProxy |
getServiceAt(java.net.URL wsdlLocation,
CodecFactory factory,
boolean verbose)
Creates a Web Service proxy based on the WSDL file available on the specified location. |
static WebServiceProxy |
getServiceAt(java.net.URL wsdlLocation,
CodecFactory factory,
boolean verbose,
java.io.InputStream[] certs)
|
static WebServiceProxy |
getServiceAt(java.net.URL wsdlLocation,
CodecFactory factory,
boolean verbose,
java.lang.String userName,
java.lang.String password)
|
static WebServiceProxy |
getServiceAt(java.net.URL wsdlLocation,
CodecFactory factory,
boolean verbose,
java.lang.String userName,
java.lang.String password,
java.io.InputStream[] certs)
|
static WebServiceProxy |
getServiceFrom(java.lang.String wsdlDoc)
Creates a Web Service proxy based on the WSDL document specified as a string. |
static WebServiceProxy |
getServiceFrom(java.lang.String wsdlDoc,
CodecFactory factory,
boolean verbose)
Creates a Web Service proxy based on the WSDL document specified as a string. |
java.net.URL |
getWsdlLocation()
returns the location of the WSDL file. |
static java.lang.Object |
implementInterface(java.lang.Class interfaceType,
WebServiceProxy proxy)
|
void |
setCertificate(java.io.InputStream[] certs)
|
void |
setCodecFactory(CodecFactory codec)
sets the factory for encoding/decoding parameters and return type |
void |
setLocation(java.net.URL location)
sets the endpoint of this proxy. |
void |
setName(java.lang.String name)
sets the name of the service |
void |
setNamespace(java.lang.String namespace)
sets the namespace of the proxy. |
void |
setPassword(java.lang.String password)
sets the password for the user |
void |
setUserName(java.lang.String userName)
sets the user name |
void |
setVerbose(boolean flag)
sets the soap proxy verbose. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Method Detail |
public static WebServiceProxy createService(java.net.URL location)
location
- endpoint of the service.
(service/port/soap:address-location in WSDL)public static WebServiceProxy createService(java.lang.String name, java.lang.String namespace, java.net.URL location)
name
- name of the proxy. typically name of the service
class/interface.namespace
- namespace of the proxy. typically the package name of
the service class prefixed with "java:".
for eg: "java:weblogic.samples.ejb"location
- endpoint of the service.
(service/port/soap:address-location in WSDL)public static WebServiceProxy getServiceAt(java.net.URL wsdlLocation) throws java.io.IOException, org.xml.sax.SAXException
wsdlLocation
- location of the WSDL filepublic static WebServiceProxy getServiceAt(java.net.URL wsdlLocation, CodecFactory factory, boolean verbose) throws java.io.IOException, org.xml.sax.SAXException
wsdlLocation
- location of the WSDL filefactory
- CodecFactory to use. if null, default CodecFactory will
be use.verbose
- true to view xml messages passed between proxy and server.public static WebServiceProxy getServiceAt(java.net.URL wsdlLocation, CodecFactory factory, boolean verbose, java.lang.String userName, java.lang.String password) throws java.io.IOException, org.xml.sax.SAXException
public static WebServiceProxy getServiceAt(java.net.URL wsdlLocation, CodecFactory factory, boolean verbose, java.io.InputStream[] certs) throws java.io.IOException, org.xml.sax.SAXException
public static WebServiceProxy getServiceAt(java.net.URL wsdlLocation, CodecFactory factory, boolean verbose, java.lang.String userName, java.lang.String password, java.io.InputStream[] certs) throws java.io.IOException, org.xml.sax.SAXException
public static WebServiceProxy getServiceFrom(java.lang.String wsdlDoc) throws java.io.IOException, org.xml.sax.SAXException
wsdlDoc
- wsdl documentpublic static WebServiceProxy getServiceFrom(java.lang.String wsdlDoc, CodecFactory factory, boolean verbose) throws java.io.IOException, org.xml.sax.SAXException
wsdlDoc
- wsdl documentfactory
- a CodecFactory to be used by the proxyverbose
- Output verbose informationpublic SoapMethod addMethod(java.lang.String name, SoapType returnType, SoapType[] parameters)
name
- name of the methodreturnType
- return type of the method.parameters
- parameters parameters of the methodpublic SoapMethod getMethod(java.lang.String name) throws java.lang.NoSuchMethodException
name
- name of the method to be retrieved.public java.util.Iterator getMethods()
public java.net.URL getLocation()
public void setLocation(java.net.URL location)
location
- endpoint where the service is hostedpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- name to setpublic java.lang.String getNamespace()
public void setNamespace(java.lang.String namespace)
namespace
- namespace to setpublic CodecFactory getCodecFactory()
public void setCodecFactory(CodecFactory codec)
factory
- codec factorypublic void setVerbose(boolean flag)
flag
- true for verbosepublic java.net.URL getWsdlLocation()
public void setUserName(java.lang.String userName)
userName
- name of the userpublic void setPassword(java.lang.String password)
password
- password to setpublic void setCertificate(java.io.InputStream[] certs)
public java.lang.String toString()
public static java.lang.Object implementInterface(java.lang.Class interfaceType, WebServiceProxy proxy) throws java.io.IOException
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |