|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jibx.ws.client.Client
public abstract class Client
A generic client for connecting to services. Provides
common methods that are not protocol specific. For access to protocol specific features, such as SOAP headers, refer
to the protocol specific subclass (for example, SoapClient
).
Method Summary | |
---|---|
abstract Object |
call(Object request)
Send a request to the service and wait for the response to be returned. |
void |
close()
Free resources and end client usage. |
void |
setBindingFactory(IBindingFactory factory)
Sets a single JiBX binding factory to be used for for marshalling and unmarshalling the body elements. |
void |
setInBodyBindingFactory(IBindingFactory factory)
Sets the JiBX binding factory for the inbound body. |
void |
setMessageOptions(MessageOptions options)
Sets options for the encoding, XML declaration and formatting of the outbound message. |
void |
setOutBodyBindingFactory(IBindingFactory factory)
Sets the JiBX binding factory for the outbound body. |
void |
setTransportOptions(org.jibx.ws.transport.TransportOptions transportOptions)
Sets options for configuring the transport. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setBindingFactory(IBindingFactory factory) throws WsBindingException
For finer grain control of the different elements use setOutBodyBindingFactory(IBindingFactory)
and
setInBodyBindingFactory(IBindingFactory)
.
factory
- the binding factory to use for outbound and/or inbound SOAP bodies, and/or SOAP fault details
WsBindingException
- if marshaller cannot be created due to an error with the JiBX bindingspublic final void setOutBodyBindingFactory(IBindingFactory factory) throws WsBindingException
factory
- the JiBX binding factory to use for writing the outbound body
WsBindingException
- if marshaller cannot be created due to an error with the JiBX bindingspublic final void setMessageOptions(MessageOptions options)
options
- specifies the options for the outbound messagepublic void setTransportOptions(org.jibx.ws.transport.TransportOptions transportOptions)
transportOptions
- optionspublic final void setInBodyBindingFactory(IBindingFactory factory) throws WsBindingException
factory
- the JiBX binding factory to use for reading the inbound body
WsBindingException
- if unmarshaller cannot be created due to an error with the JiBX bindingspublic abstract Object call(Object request) throws IOException, WsException
request
- 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,
orpublic final void close() throws IOException
IOException
- on error closing channel
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |