|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.soap.client.SOAPClient
Client implementation for a document-literal web service using SOAP. This builds on the basic SOAP mapping implementation, attaching service endpoint information to allow the actual processing of requests.
Constructor Summary | |
SOAPClient(java.lang.String loc,
org.jibx.runtime.IBindingFactory fact)
Create client from connection information with indent specified. |
|
SOAPClient(java.lang.String loc,
org.jibx.runtime.IBindingFactory fact,
int indent)
Create client from connection information. |
|
SOAPClient(java.net.URL url,
org.jibx.runtime.IBindingFactory fact)
Create client from connection information with indent specified. |
|
SOAPClient(java.net.URL url,
org.jibx.runtime.IBindingFactory fact,
int indent)
Create client from connection information. |
Method Summary | |
java.lang.Object |
call(java.lang.Object request)
Call the service with empty action. |
java.lang.Object |
call(java.lang.Object request,
java.lang.String action)
Call the service with specified action. |
SOAPContext |
getContext()
Get SOAP context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SOAPClient(java.net.URL url, org.jibx.runtime.IBindingFactory fact, int indent) throws org.jibx.runtime.JiBXException
url
- location for service accessfact
- binding factory for converting bodies to and from objectsindent
- number of spaces to indent for marshalling output
org.jibx.runtime.JiBXException
- on error in initializing binding informationpublic SOAPClient(java.lang.String loc, org.jibx.runtime.IBindingFactory fact, int indent) throws java.net.MalformedURLException, org.jibx.runtime.JiBXException
loc
- location for service accessfact
- binding factory for converting bodies to and from objectsindent
- number of spaces to indent for marshalling output
java.net.MalformedURLException
- if the location is not a valid URL
org.jibx.runtime.JiBXException
- on error in initializing binding informationpublic SOAPClient(java.net.URL url, org.jibx.runtime.IBindingFactory fact) throws org.jibx.runtime.JiBXException
url
- location for service accessfact
- binding factory for converting bodies to and from objects
org.jibx.runtime.JiBXException
- on error in initializing binding informationpublic SOAPClient(java.lang.String loc, org.jibx.runtime.IBindingFactory fact) throws java.net.MalformedURLException, org.jibx.runtime.JiBXException
loc
- location for service accessfact
- binding factory for converting bodies to and from objects
java.net.MalformedURLException
- if the location is not a valid URL
org.jibx.runtime.JiBXException
- on error in initializing binding informationMethod Detail |
public SOAPContext getContext()
public java.lang.Object call(java.lang.Object request, java.lang.String action) throws java.io.IOException, SOAPException
request
- object to be marshalled to XML as body of request (may be
null
, for an empty request body)action
- SOAPAction code for request
null
, for an empty response body, or an instance of SOAPFault
for a fault return)
java.io.IOException
- on error in communicating with service (including
returned Fault)
SOAPException
- on error in SOAP request processingpublic java.lang.Object call(java.lang.Object request) throws java.io.IOException, SOAPException
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, or an instance of SOAPFault
for a fault return)
java.io.IOException
- on error in communicating with service (including
returned Fault)
SOAPException
- on error in SOAP request processing
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |