|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.xfire.AbstractContext
org.codehaus.xfire.handler.AbstractHandlerSupport
org.codehaus.xfire.client.Client
public class Client
A SOAP Client. This client can function in two modes.
The first is dynamic mode. In this mode the WSDL is retrieved for a service,
a Service
model is created from it, and
it is used as metadata for the service.
Field Summary | |
---|---|
static String |
CLIENT_MODE
This is a variable set on the MessageContext to let particular Handlers know that the invocation is a client invocation. |
Constructor Summary | |
---|---|
protected |
Client()
|
|
Client(Binding binding,
String url)
Create a client which uses a particular Binding with a specified URL. |
|
Client(Binding binding,
Transport transport,
Service service,
String url,
String endpointUri)
Create a Client on the specified Transport for a Service . |
|
Client(javax.wsdl.Definition definition,
Class serviceClass)
Creates a Client form a WSDL and a service class. |
|
Client(InputStream is,
Class serviceClass)
Creates a Client form a WSDL and a service class. |
|
Client(String binding,
javax.wsdl.Definition definition,
Class serviceClass)
Creates a Client form a WSDL, a service class and the specified binding id. |
|
Client(Transport t,
Binding binding,
String url)
Create a client which uses a particular Binding with a specified URL
and a specified Transport . |
|
Client(Transport t,
Endpoint endpoint)
Creates a client for a particular Endpoint on a specified Transport . |
|
Client(Transport transport,
Service service,
String url)
Create a Client on the specified Transport for a Service . |
|
Client(Transport transport,
Service service,
String url,
String endpointUri)
Create a Client on the specified Transport for a Service . |
|
Client(URL wsdlLocation)
|
|
Client(URL wsdlLocation,
Class serviceClass)
|
Method Summary | |
---|---|
void |
close()
|
Endpoint |
findEndpoint(String binding,
Collection services)
|
String |
getEndpointUri()
|
static Client |
getInstance(Object service)
Return the underlying Client instance for a client Proxy. |
Channel |
getOutChannel()
|
Service |
getService()
|
int |
getTimeout()
|
Transport |
getTransport()
|
String |
getUrl()
|
XFire |
getXFire()
|
protected void |
initFromDefinition(String binding,
javax.wsdl.Definition definition,
Class serviceClass)
|
Object[] |
invoke(OperationInfo op,
Object[] params)
|
Object[] |
invoke(String name,
Object[] params)
|
Object[] |
invoke(String name,
javax.xml.stream.XMLStreamReader reader)
|
void |
onReceive(MessageContext context,
InMessage msg)
|
void |
setEndpointUri(String endpointUri)
|
void |
setTimeout(int timeout)
|
void |
setTransport(Transport transport)
|
void |
setUrl(String url)
|
void |
setXFire(XFire xfire)
|
Methods inherited from class org.codehaus.xfire.handler.AbstractHandlerSupport |
---|
addFaultHandler, addInHandler, addOutHandler, getFaultHandlers, getInHandlers, getOutHandlers, setFaultHandlers, setInHandlers, setOutHandlers |
Methods inherited from class org.codehaus.xfire.AbstractContext |
---|
getProperty, removeProperty, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CLIENT_MODE
Constructor Detail |
---|
protected Client()
public Client(Transport t, Endpoint endpoint)
Endpoint
on a specified Transport
. The
client will create an anonymous Channel to talk to the service. The URI from the endpoint
will be used as the destination for messages.
t
- The Transport to use.endpoint
- The Endpoint to invoke.public Client(Binding binding, String url)
Binding
with a specified URL. The
Transport
is looked up via the TransportManager
from its URL.
binding
- url
- public Client(Transport t, Binding binding, String url)
Binding
with a specified URL
and a specified Transport
.
transport
- The Transport to use.binding
- url
- public Client(Transport transport, Service service, String url)
Transport
for a Service
.
The Client will look for an appropriate binding on the client bye attempting
to find the first Binding that is compatabile with the specified Transport.
transport
- service
- url
- The destination URL.public Client(Transport transport, Service service, String url, String endpointUri)
Transport
for a Service
.
The Client will look for an appropriate binding on the client bye attempting
to find the first Binding that is compatabile with the specified Transport.
transport
- service
- The Service model which defines our operations.url
- The destination URL.endpointUri
- The URI to bind to on the client side. The client will look
for messages here.public Client(Binding binding, Transport transport, Service service, String url, String endpointUri)
Transport
for a Service
.
The Client will look for an appropriate binding on the client bye attempting
to find the first Binding that is compatabile with the specified Transport.
binding
- The Binding to use.transport
- The Transport to send message through.service
- The Service model which defines our operations.url
- The destination URL.endpointUri
- The URI to bind to on the client side. The client will look
for messages here.public Client(javax.wsdl.Definition definition, Class serviceClass) throws Exception
definition
- The WSDL definition.serviceClass
- The service class being used.
Exception
public Client(String binding, javax.wsdl.Definition definition, Class serviceClass) throws Exception
definition
- The WSDL definition.serviceClass
- The service class being used.
Exception
public Client(InputStream is, Class serviceClass) throws Exception
is
- The InputStream for the wsdl.serviceClass
- The service class being used.
Exception
public Client(URL wsdlLocation) throws Exception
Exception
public Client(URL wsdlLocation, Class serviceClass) throws Exception
Exception
Method Detail |
---|
protected void initFromDefinition(String binding, javax.wsdl.Definition definition, Class serviceClass) throws Exception
Exception
public Endpoint findEndpoint(String binding, Collection services)
public Object[] invoke(OperationInfo op, Object[] params) throws Exception
Exception
public Object[] invoke(String name, javax.xml.stream.XMLStreamReader reader) throws Exception
Exception
public Object[] invoke(String name, Object[] params) throws Exception
Exception
public void onReceive(MessageContext context, InMessage msg)
onReceive
in interface ChannelEndpoint
public Channel getOutChannel()
public void close()
public Transport getTransport()
public void setTransport(Transport transport)
public Service getService()
public String getUrl()
public void setUrl(String url)
public String getEndpointUri()
public void setEndpointUri(String endpointUri)
public int getTimeout()
public void setTimeout(int timeout)
public XFire getXFire()
public void setXFire(XFire xfire)
public static Client getInstance(Object service)
service
-
XFireProxy
,
XFireProxyFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |