public class SOAPMessage
extends java.lang.Object
Constructor and Description |
---|
SOAPMessage() |
Modifier and Type | Method and Description |
---|---|
static void |
adjustHeader(int node,
java.lang.String replyTo)
adjust the header by swaping sender and receiver as response needs to be sent
|
static int |
createBodyNode(int envelope)
Creates and returns a body node for the root SOAP Envelope node, if it
not already exists.
|
static java.lang.String |
createMessageId(int soapHeader)
returns created Message-ID for a SOAP Message
|
static int |
createResponse(int node,
java.lang.String replyTo)
returns the sender component from a given SOAP Message reference
|
static int |
duplicateMessageHeader(int node)
Duplicates the message Header if the soapMessage has to be sent to different components
|
static boolean |
expectsNoReply(int node)
Returns whether the SOAP Message expects no reply
|
static int |
getBodyNode(int node)
Deprecated.
since 4.2 C3, use getRootBodyNode(
|
static int |
getCordysHeaderNode(int node)
Returns the Cordys Header node of the SOAP Message.
|
static int |
getEnvelopeNode(int node)
Deprecated.
since 4.2 C3, use getRootEnvelopeNode(
|
static int |
getHeaderNode(int node)
Deprecated.
since 4.2 C3, use getRootHeaderNode(
|
static java.lang.String |
getMessageId(int node)
returns the message id from a given SOAP Message reference
|
static java.lang.String |
getReceiverComponent(int node)
returns the receiver component from a given SOAP Message reference
|
static java.lang.String |
getReplyTo(int node)
returns the replyto uri from a given SOAP Message reference
|
static int |
getRootBodyNode(int node)
Returns the root SOAP Body node of the SOAP Message.
|
static int |
getRootEnvelopeNode(int node)
Retreives the envelope node from anywhere in the SOAP request.
|
static int |
getRootHeaderNode(int node)
Returns the root SOAP Header node of the SOAP Message.
|
static java.lang.String |
getSenderComponent(int node)
returns the sender component from a given SOAP Message reference
|
static java.lang.String |
getSentTo(int node)
returns the sent to uri from a given SOAP Message reference
|
static java.lang.String |
getUser(int node)
returns the user from a given SOAP Message reference
|
static void |
setLocale(int node,
java.util.Locale locale)
Set the locale information in the SOAP Header node
|
static void |
setMessageId(int node,
java.lang.String msgId)
Sets the Message ID for the SOAP Message
|
static void |
setReceiver(int node,
java.lang.String component,
java.lang.String uri)
Set the specified receiver information in the soapHeader.
|
static void |
setSender(int node,
java.lang.String component,
java.lang.String uri,
java.lang.String user)
Set the sender information in the header node
|
static void |
setSenderIdentity(int node,
java.lang.String component,
java.lang.String uri,
Identity senderIdentity)
Set the sender information in the header node
|
static Message |
toMessage(int node)
Returns a serialized version of the XML Message.
|
static Message |
toMessage(int node,
MessageOptions messageOptions)
Returns a serialized version of the XML Message.
|
public static Message toMessage(int node)
com.eibus.transport.Message message = SOAPMessage.getMessage(soapMessage);
node
- int reference to the XML Nodepublic static Message toMessage(int node, MessageOptions messageOptions)
com.eibus.transport.Message message = SOAPMessage.getMessage(soapMessage);
node
- int reference to the XML Node@Deprecated public static int getEnvelopeNode(int node)
int envelopeNode = SoapMessage.getEnvelopeNode(soapMessage);
node
- int reference to the XML node@Deprecated public static int getHeaderNode(int node)
node
- int reference to the xml node@Deprecated public static int getBodyNode(int node)
node
- int reference to the XML Nodepublic static int getRootEnvelopeNode(int node)
node
- int reference to the XML nodepublic static int getRootHeaderNode(int node)
node
- int reference to the xml nodepublic static int getRootBodyNode(int node)
node
- int reference to the XML Nodepublic static int createBodyNode(int envelope)
envelope
- int reference to the xml nodepublic static void setReceiver(int node, java.lang.String component, java.lang.String uri)
node
- The soapHeader to set the header information in. If 0, the
method returns.component
- dn of the receiveruri
- uri of the connection pointpublic static void setSender(int node, java.lang.String component, java.lang.String uri, java.lang.String user)
node
- int reference of the header nodecomponent
- DN of the receiveruri
- uri of the sending componentuser
- Dn of the user who is sending requestpublic static void setLocale(int node, java.util.Locale locale)
locale
- to be setpublic static void setSenderIdentity(int node, java.lang.String component, java.lang.String uri, Identity senderIdentity)
node
- int reference of the header nodecomponent
- DN of the receiveruri
- uri of the sending componentsenderIdentity
- of the user who is sending request (null will remove identity information)
TODO make this a native methodpublic static void setMessageId(int node, java.lang.String msgId)
node
- int reference of the xml nodemsgid
- MessageId that should be setpublic static java.lang.String createMessageId(int soapHeader)
soapHeader
- int reference of the SOAP Messagepublic static java.lang.String getMessageId(int node)
node
- int reference to the XML Nodepublic static java.lang.String getSenderComponent(int node)
node
- int reference to the XML Nodepublic static java.lang.String getReplyTo(int node)
node
- int reference to the XML Nodepublic static boolean expectsNoReply(int node)
public static java.lang.String getUser(int node)
node
- int reference to the XML Nodepublic static java.lang.String getReceiverComponent(int node)
node
- int reference to the XML Nodepublic static java.lang.String getSentTo(int node)
node
- int reference to the XML Nodepublic static int createResponse(int node, java.lang.String replyTo)
node
- int reference to the XML Nodereplyto
- replyto uri to which soap message is to be sentpublic static void adjustHeader(int node, java.lang.String replyTo)
node
- int reference of the SOAP Messagereplyto
- replyto uri to which the response should be sentpublic static int duplicateMessageHeader(int node)
int
- reference of the SOAP Messagepublic static int getCordysHeaderNode(int node)
node
- int reference to the xml node