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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  How To create a Cyclone xmlsoaplike document

    Posted 07/27/05 10:44 AM

    Hello,

    I want to send a document to a customer that uses Cyclone.

    The document looks as in the attachment (cyclone_sample.xml)

    I created a Document Type in the developper by using “http://www.cyclonecommerce.com/Schemas/2001/09/InterchangePartnerConfig.xsd” (as it appears in the xmlns for <ipp>).

    My problem are :

    • the document type created does not hold the xmlns, xsi, … attributes, only a @id appears

    • when I convert into string (using WmPublic/pub.xml:documentToXMLString) an ouput document filled with datas, I get “<AdministrativeInfo>my datas</AdministrativeInfo>” instead of having “<cop:AdministrativeInfo>my datas</cop:AdministrativeInfo>” (see the missong “cop:” statement)

    How should I work to create a correct ouput document ?

    thanks,

    Rangoon

    cyclone_sample.xml
    Cyclone_sample.xml (5.0 k)


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: How To create a Cyclone xmlsoaplike document

    Posted 07/27/05 02:38 PM

    Rangoon,

    I presume Administrative Info as a Document type.when you create the document, prefix it as cop:Administrative Info.even if it is only a field also,prefix it with cop.likewise with all the other tags.and if you need an xmlns attribute,add a @xmlns:cop field under the document and give it the value “[url=“Axway API management platform, MFT & B2B integration”]Axway API management platform, MFT & B2B integration”.

    ramesh.


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 3.  RE: How To create a Cyclone xmlsoaplike document

    Posted 07/27/05 02:51 PM

    Rename your document to include the prefix (e.g. cop:AdministrativeInfo), then in the pub.xml:DocumentToString step, populate the nsdecls record with the prefix “cop” and the correct namespace (“http://www.cyclonecommerce.com/Schemas/2001/08/cop”, in your case).

    Mark


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: How To create a Cyclone xmlsoaplike document

    Posted 07/27/05 03:00 PM

    great,

    thank you both for your answers !


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 5.  RE: How To create a Cyclone xmlsoaplike document

    Posted 07/27/05 03:30 PM

    BTW, per the XML Schema specification, adding a prefix to an XML element and specifying the namespace definition in an “xmlns prefix=” clause is called namespace qualifying the element. This is used to distinguish between identically named elements.

    When you namespace qualify an element, the default behavior is for any children of that element to inheirit that namespace definition. It is not necessary (although it is valid) to add the prefix to each of those element names as well.

    So, in the sample document you attached, since the “OrganizationProfile” element is namespace qualified, it is not necessary to add the “cop” prefix to its children (e.g. “AdministrativeInfo”)

    Mark


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB