Constructor and Description |
---|
SoapClient(String contextPath,
String uri) |
SoapClient(String contextPath,
String uri,
boolean format) |
Modifier and Type | Method and Description |
---|---|
int |
getConnectTimeout() |
int |
getReadTimeout() |
void |
marshalToResult(Object object,
Result result)
marshals the given object to the given result
|
String |
marshalToString(Object object)
marshals the given object to a String using
StringResult |
<T> T |
send(Object request)
sends the given request to the uri which was passed to the constructor
|
void |
setConnectTimeout(int connectTimeout) |
void |
setReadTimeout(int readTimeout) |
public SoapClient(String contextPath, String uri)
contextPath
- the contextpath (package-names) for the JAXBContext
to be created. Multiple packages have to
be separated by a colon (':').uri
- the endpoint uri of the webserviceJAXBContext.newInstance(String, ClassLoader)
public SoapClient(String contextPath, String uri, boolean format)
contextPath
- the contextpath (package-names) for the JAXBContext
to be created. Multiple packages have to
be separated by a colon (':').uri
- the endpoint uri of the webserviceformat
- true
if Marshaller
should format outputpublic String marshalToString(Object object)
StringResult
Marshaller.marshal(Object, Result)
public void marshalToResult(Object object, Result result)
Marshaller.marshal(Object, Result)
public <T> T send(Object request)
request
- the request, needs to be an XmlRootElement
public int getConnectTimeout()
public void setConnectTimeout(int connectTimeout)
connectTimeout
- public int getReadTimeout()
public void setReadTimeout(int readTimeout)
readTimeout
- Copyright © 2011–2017 aiticon GmbH. All rights reserved.