public class SoapMessage
extends java.lang.Object
Constructor and Description |
---|
SoapMessage()
Creates a new instance of SoapMessage.
|
Modifier and Type | Method and Description |
---|---|
void |
constructSoapMessage(javax.xml.soap.SOAPEnvelope envelope,
javax.xml.soap.SOAPBody body,
java.util.ArrayList parameters,
java.lang.String operation,
java.lang.String targetUri,
WsMethodInfo wsInfo)
Create and add the soap body elements to the soap body.
|
void |
createBodyElements(javax.xml.soap.SOAPEnvelope envelope,
javax.xml.soap.SOAPBody body,
WsdlParamInfo parameter,
java.lang.String targetUri)
Create and add the soap body elements to the soap body.
|
void |
createHeaderElements(javax.xml.soap.SOAPEnvelope envelope,
java.util.ArrayList parameters,
java.lang.String targetUri)
Add header information to the message.
|
public void constructSoapMessage(javax.xml.soap.SOAPEnvelope envelope, javax.xml.soap.SOAPBody body, java.util.ArrayList parameters, java.lang.String operation, java.lang.String targetUri, WsMethodInfo wsInfo) throws java.lang.Exception
envelope
- the soap envelope.body
- the soap body.parameters
- the operation parameters.operation
- the operation name. May be null if soap action uri is usedtargetUri
- the soap body namespace. May be null or empty.wsInfo
- web service method info.java.lang.Exception
- any error.public void createHeaderElements(javax.xml.soap.SOAPEnvelope envelope, java.util.ArrayList parameters, java.lang.String targetUri) throws java.lang.Exception
envelope
- the SOAP envelope objectparameters
- the list of header parameterstargetUri
- the local namespace uri of ws site.java.lang.Exception
- any error.public void createBodyElements(javax.xml.soap.SOAPEnvelope envelope, javax.xml.soap.SOAPBody body, WsdlParamInfo parameter, java.lang.String targetUri) throws java.lang.Exception
envelope
- the soap envelopebody
- the soap bodyparameter
- the operation parametertargetUri
- the local namespace uri of ws site.java.lang.Exception
- any error.