henkrvl
(henkrvl *)
1
Hi,
I am able to create the following SOAP body using pub.xml:documentToXMLString, pub.xml:xmlStringToXMLNode and pub.soap.utils:addBodyEntry:
SOAP-ENV:Body
<tns1:Get xmlns:tns1=“uri:webservice.subscribenet.intraware.com” xmlns:snet=“uri:subscribenet.intraware.com”>
tns1:SubscribeNetObjectReference
snet:ID123</snet:ID>
</tns1:SubscribeNetObjectReference>
</tns1:Get></SOAP-ENV:Body>
How do I add the xsi:type=“ns2:AccountReference” attribute to the tns1:SubscribenetObjectReference node. Ultimately, I need the SOAP body to be:
SOAP-ENV:Body
<tns1:Get xmlns:tns1=“uri:webservice.subscribenet.intraware.com” xmlns:snet=“uri:subscribenet.intraware.com”>
<tns1:SubscribeNetObjectReference xsi:type=“ns2:AccountReference”>
snet:ID123</snet:ID>
</tns1:SubscribeNetObjectReference>
</tns1:Get></SOAP-ENV:Body>
How can I accomplish this? thanks in advance for any insight.
Hi, did you get your issue solved ? If yes can you share what made it work for you ?
Thanks
Frank
Ambrish_I
(Ambrish I)
3
Hi,
To add the XML namespace for an attribute in a document, create the document structure in developer as:
SubscribeNetObjectReference
@xsi:type → The value should be set as "ns2:AccountReference" in the code.
Then convert this doc to xml and you will find the XML namespace added to it.
-Ambrish-
A detailed description of how to do this is in the 8-0-SP1_Integration_Server_Built-In_Services_Reference.pdf guide from page 667-673.
Cheers,
Akshith