public class SoapClient extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
XMLSOAP_ORG_SOAP_ENCODING_NAMESPACE |
| Modifier and Type | Method and Description |
|---|---|
static SoapClient |
create(ServiceDefinition service) |
Integer |
getConnectionTimeout()
Getter method for connection timeout.
|
Map<String,String> |
getHeaderParams() |
Integer |
getReadTimeout()
Getter method for readTimeout
|
XMLStreamReader |
invoke(CallDefinition callDefinition,
XMLStreamReader payload)
Invokes a web serviceDefinition.
|
void |
setConnectionTimeout(int connectionTimeout)
Setter method for connectionTimeout.
|
void |
setHeaderParams(Map<String,String> headerParams)
Sets the parameters to be appended to the header.
|
void |
setReadTimeout(Integer readTimeout)
Setter method for readTimeout.
|
void |
setSoapHeaderBuilder(HeaderBuilder soapHeaderBuilder)
Sets the
HeaderBuilder implementation. |
public static final String XMLSOAP_ORG_SOAP_ENCODING_NAMESPACE
@NotNull public static SoapClient create(@NotNull ServiceDefinition service)
@Nullable public XMLStreamReader invoke(@NotNull CallDefinition callDefinition, @Nullable XMLStreamReader payload) throws SoapCallException
payload - A {link reader with the payload message to send.callDefinition - SOAP operation invocation definitionreader with the output message received.SoapCallException - Unexpected error during serviceDefinition callpublic Integer getConnectionTimeout()
public void setConnectionTimeout(int connectionTimeout)
connectionTimeout - the connectionTimeout to setpublic Integer getReadTimeout()
public void setReadTimeout(Integer readTimeout)
readTimeout - the readTimeout to setpublic void setHeaderParams(@NotNull
Map<String,String> headerParams)
headerParams - the header parameters to set.public void setSoapHeaderBuilder(HeaderBuilder soapHeaderBuilder)
HeaderBuilder implementation.soapHeaderBuilder - the HeaderBuilder implementation.Copyright © 2015. All rights reserved.