|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.jibx.ws.client.Client
org.jibx.ws.pox.client.PoxClient
public final class PoxClient
A client for invoking services using Plain Old XML (POX) messages.
| Constructor Summary | |
|---|---|
PoxClient(String location)
Create a POX client to connect to a service at the specified location. |
|
PoxClient(String location,
IBindingFactory factory)
Create a POX client to connect to a service at the specified location. |
|
PoxClient(String location,
IBindingFactory factory,
MessageOptions options)
Create a POX client to connect to a service at the specified location. |
|
| Method Summary | |
|---|---|
Object |
call(Object request)
Send a request to the service and wait for the response to be returned. |
| Methods inherited from class org.jibx.ws.client.Client |
|---|
close, setBindingFactory, setInBodyBindingFactory, setMessageOptions, setOutBodyBindingFactory, setTransportOptions |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PoxClient(String location)
throws WsConfigurationException
location - the location of the service
WsConfigurationException - on configuration exception, for instance the location is invalid.
public PoxClient(String location,
IBindingFactory factory)
throws WsBindingException,
WsConfigurationException
location - the location of the servicefactory - the factory containing bindings for the outbound and inbound message body. Bindings are only
required for non-empty outbound or inbound bodies.
WsBindingException - if client cannot be created due to an error with the JiBX bindings
WsConfigurationException - on configuration exception, for instance the location is invalid.
public PoxClient(String location,
IBindingFactory factory,
MessageOptions options)
throws WsBindingException,
WsConfigurationException
location - the location of the servicefactory - the factory containing bindings for the outbound and inbound message body. Bindings are only
required for non-empty outbound or inbound bodies.options - output options
WsConfigurationException - on configuration exception, for instance the location is invalid.
WsBindingException - if client cannot be created due to an error with the JiBX bindings| Method Detail |
|---|
public Object call(Object request)
throws IOException,
WsException
call in class Clientrequest - object to be marshalled to XML as body of request (may be null, for an empty
request body)
null, for an empty response
body)
IOException - on error in communicating with service
WsException - on error in request processing, or a WsConfigurationException if either:
request is non null and a binding factory or handler has not been set for the outbound body,
or
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||