public class SoapClient extends Object
| Modifier and Type | Method and Description |
|---|---|
Dispatch<SOAPMessage> |
buildMessageDispatch(String endpointPath,
String operationName) |
SOAPMessage |
buildSoapRequest(XMLStreamReader payload,
String operationName,
Dispatch<SOAPMessage> dispatch,
DocumentBuilder docBuilder)
Build SOAP Request based on the provided parameters
|
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.
|
XMLStreamReader |
invoke(CallDefinition callDefinition,
XMLStreamReader payload,
DocumentBuilder docBuilder)
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. |
@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 call@Nullable public XMLStreamReader invoke(@NotNull CallDefinition callDefinition, @Nullable XMLStreamReader payload, DocumentBuilder docBuilder) throws SoapCallException
payload - A {link reader with the payload message to send.callDefinition - SOAP operation invocation definitiondocBuilder - class used to transform the reader into a Document and, if necessary, enrich it with an xsi:type attributereader with the output message received.SoapCallException - Unexpected error during serviceDefinition call@NotNull public Dispatch<SOAPMessage> buildMessageDispatch(@NotNull String endpointPath, @NotNull String operationName)
@NotNull public SOAPMessage buildSoapRequest(@Nullable XMLStreamReader payload, @NotNull String operationName, @NotNull Dispatch<SOAPMessage> dispatch, DocumentBuilder docBuilder) throws SOAPException, SoapHeaderException, XMLStreamException, ParserConfigurationException
payload - Full payload to be sent without the operationoperationName - Operation name to be invoked.dispatch - Dispatch object used for the invocation.docBuilder - class used to transform the reader into a Document and, if necessary, enrich it with an xsi:type attributeSOAPException - when it cannot construct the SOAPMessageSoapHeaderException - when it cannot build the SOAP HeadersXMLStreamException - when it cannot successfully create the XMLStreamReaderParserConfigurationException - when it cannot properly modify the payload with the xsi:type attributepublic 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 © 2016. All rights reserved.