public class WsSoapMessageBuilder extends Object
Constructor and Description |
---|
WsSoapMessageBuilder(Map<String,String> metadata,
Type type,
String metadataPrefix,
boolean useDefaultMapping,
BinaryDataService binaryDataService)
Construct new instance for given input type
|
Modifier and Type | Method and Description |
---|---|
protected void |
appendRequestSoapHeaders(List<Object> headers,
Document doc,
Element envelope)
Add request headers.
|
String |
buildMessage(Object object,
List<Object> headers,
boolean fault)
Build the request xml for given input instance.
|
public WsSoapMessageBuilder(Map<String,String> metadata, Type type, String metadataPrefix, boolean useDefaultMapping, BinaryDataService binaryDataService)
metadata
- metadata that should be used for request construction. Basically these are the
metadata of task generated by modelling tool.type
- LSPS type of input objectmetadataPrefix
- prefix that should be used for metadata namesuseDefaultMapping
- determines if the default LSPS to xml mapping should be used, or the mapping
should be based on types metadata informationbinaryDataService
- the binary data serviceprotected void appendRequestSoapHeaders(List<Object> headers, Document doc, Element envelope) throws WsCallException, XmlProcessingException
headers
- doc
- envelope
- WsCallException
XmlProcessingException
public String buildMessage(Object object, List<Object> headers, boolean fault) throws WsCallException, TransformerException, XmlProcessingException
object
- input instance, can be nullheaders
- list of objects which will be serialized as content of soap:header elementfault
- determines if the generated message should be soap fault or regular soap message. If true, given object is transformed to xml as element inside detail elementXmlProcessingException
- if any xml building related problem occursWsCallException
- occurs if any web service generation related problem occursTransformerException
- occurs only if there is problem with transformation of DOM tree to the string. Shouldn't occur in common casesCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.