Package org.appng.api
Class SoapClient
- java.lang.Object
-
- org.appng.api.SoapClient
-
-
Constructor Summary
Constructors Constructor Description SoapClient(String contextPath, String uri)
SoapClient(String contextPath, String uri, boolean format)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getConnectTimeout()
int
getReadTimeout()
void
marshalToResult(Object object, Result result)
marshals the given object to the given resultString
marshalToString(Object object)
marshals the given object to a String usingStringResult
<T> T
send(Object request)
sends the given request to the uri which was passed to the constructorvoid
setConnectTimeout(int connectTimeout)
void
setReadTimeout(int readTimeout)
-
-
-
Constructor Detail
-
SoapClient
public SoapClient(String contextPath, String uri)
- Parameters:
contextPath
- the contextpath (package-names) for theJAXBContext
to be created. Multiple packages have to be separated by a colon (':').uri
- the endpoint uri of the webservice- See Also:
JAXBContext.newInstance(String, ClassLoader)
-
SoapClient
public SoapClient(String contextPath, String uri, boolean format)
- Parameters:
contextPath
- the contextpath (package-names) for theJAXBContext
to be created. Multiple packages have to be separated by a colon (':').uri
- the endpoint uri of the webserviceformat
-true
ifMarshaller
should format output
-
-
Method Detail
-
marshalToString
public String marshalToString(Object object)
marshals the given object to a String usingStringResult
- See Also:
Marshaller.marshal(Object, Result)
-
marshalToResult
public void marshalToResult(Object object, Result result)
marshals the given object to the given result- See Also:
Marshaller.marshal(Object, Result)
-
send
public <T> T send(Object request)
sends the given request to the uri which was passed to the constructor- Parameters:
request
- the request, needs to be anXmlRootElement
- Returns:
- an instance of the desired type
-
getConnectTimeout
public int getConnectTimeout()
- Returns:
-
setConnectTimeout
public void setConnectTimeout(int connectTimeout)
- Parameters:
connectTimeout
-
-
getReadTimeout
public int getReadTimeout()
- Returns:
-
setReadTimeout
public void setReadTimeout(int readTimeout)
- Parameters:
readTimeout
-
-
-