public class WsSoapMessageBuilder
extends java.lang.Object
Constructor and Description |
---|
WsSoapMessageBuilder(java.util.Map<java.lang.String,java.lang.String> metadata,
Type type,
java.lang.String metadataPrefix,
boolean useDefaultMapping,
BinaryDataService binaryDataService)
Construct new instance for given input type
|
Modifier and Type | Method and Description |
---|---|
protected void |
appendRequestSoapHeaders(java.util.List<java.lang.Object> headers,
org.w3c.dom.Document doc,
org.w3c.dom.Element envelope)
Add request headers.
|
java.lang.String |
buildMessage(java.lang.Object object,
java.util.List<java.lang.Object> headers,
boolean fault)
Build the request xml for given input instance.
|
public WsSoapMessageBuilder(java.util.Map<java.lang.String,java.lang.String> metadata, Type type, java.lang.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(java.util.List<java.lang.Object> headers, org.w3c.dom.Document doc, org.w3c.dom.Element envelope) throws WsCallException, XmlProcessingException
headers
- doc
- envelope
- WsCallException
XmlProcessingException
public java.lang.String buildMessage(java.lang.Object object, java.util.List<java.lang.Object> headers, boolean fault) throws WsCallException, javax.xml.transform.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 occursjavax.xml.transform.TransformerException
- 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.