public class SoapExchange
extends java.lang.Object
This is a low-level implementation of SOAP; it expects you to have generated the entire SOAP message yourself and that you will parse the response yourself. It takes care of connecting, sending the request, and receiving the response. Various input and output methods are available - streams, files, or strings.
Copyright 2008 Partner Software, Inc.
| Modifier and Type | Field and Description |
|---|---|
static SoapVersion |
defaultSoapVersion |
static Duration |
defaultTimeout |
| Constructor and Description |
|---|
SoapExchange(SoapRequest inReader,
SoapResponse inWriter) |
SoapExchange(SoapVersion version,
java.io.InputStream inStream) |
SoapExchange(SoapVersion version,
SoapRequest inReader) |
SoapExchange(SoapVersion version,
SoapRequest inReader,
SoapResponse inWriter) |
SoapExchange(SoapVersion version,
SoapRequest inReader,
SoapResponse inWriter,
Duration timeout) |
SoapExchange(SoapVersion version,
java.lang.String inString) |
SoapExchange(SoapVersion version,
VfsFile inFile) |
SoapExchange(java.lang.String inString) |
SoapExchange(VfsFile inFile) |
| Modifier and Type | Method and Description |
|---|---|
void |
exchange()
Do the actual exchange.
|
java.lang.String |
getResponseAsString()
Get the response as a string.
|
void |
parseResponseWith(XmlActor responseActor)
Sets an actor that will be used to parse the response.
|
void |
setAction(java.lang.String newAction)
Set the SOAP Action.
|
void |
setRequestReader(SoapRequest inRequestReader)
Sets the inputstream
|
void |
setTimeout(Duration newTimeout)
Set the timeout duration.
|
void |
setUrl(java.net.URL newUrl)
Sets the SOAP URL.
|
void |
setUrlString(java.lang.String newUrlString)
Sets the SOAP URL from a String
|
public static final SoapVersion defaultSoapVersion
public static final Duration defaultTimeout
public SoapExchange(VfsFile inFile) throws java.io.IOException
java.io.IOExceptionpublic SoapExchange(SoapVersion version, VfsFile inFile) throws java.io.IOException
java.io.IOExceptionpublic SoapExchange(SoapVersion version, java.io.InputStream inStream)
public SoapExchange(SoapVersion version, java.lang.String inString) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic SoapExchange(java.lang.String inString)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic SoapExchange(SoapVersion version, SoapRequest inReader)
public SoapExchange(SoapRequest inReader, SoapResponse inWriter)
public SoapExchange(SoapVersion version, SoapRequest inReader, SoapResponse inWriter)
public SoapExchange(SoapVersion version, SoapRequest inReader, SoapResponse inWriter, Duration timeout)
public void exchange()
throws java.io.IOException
java.io.IOExceptionpublic void setRequestReader(SoapRequest inRequestReader)
public void parseResponseWith(XmlActor responseActor)
public void setUrl(java.net.URL newUrl)
public void setUrlString(java.lang.String newUrlString)
public void setAction(java.lang.String newAction)
public void setTimeout(Duration newTimeout)
public java.lang.String getResponseAsString()