IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

How do I get 'xsi:type="ns2:AccountReference"' into the xmldata?

  • 1.  How do I get 'xsi:type="ns2:AccountReference"' into the xmldata?

    Posted Mon November 01, 2010 08:33 PM

    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.


    #webMethods
    #API-Management
    #soa


  • 2.  RE: How do I get 'xsi:type="ns2:AccountReference"' into the xmldata?

    Posted Mon February 27, 2012 01:28 PM

    Hi, did you get your issue solved ? If yes can you share what made it work for you ?

    Thanks

    Frank


    #soa
    #API-Management
    #webMethods


  • 3.  RE: How do I get 'xsi:type="ns2:AccountReference"' into the xmldata?

    Posted Fri March 09, 2012 04:28 PM

    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-


    #soa
    #webMethods
    #API-Management


  • 4.  RE: How do I get 'xsi:type="ns2:AccountReference"' into the xmldata?

    Posted Fri March 09, 2012 06:58 PM

    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


    #API-Management
    #webMethods
    #soa