webMethods

webMethods

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

nsDecls in documentToXMLString

  • 1.  nsDecls in documentToXMLString

    Posted Fri September 01, 2017 04:33 PM

    Hi All,

    How to define nsDecls in documentToXMLString service for the namespace which does not have prefix.

    Ex: We have namespace like

    xmlns:ns6=“http://xyz.org/xml/Common
    xmlns:ns5=“http://xyz.org/xml/Common/v1-5
    xmlns=“http://xyz.org/xml/PO/v1-2

    For the above namespace declaration will be
    ns6="http://xyz.org/xml/Common
    ns5="http://xyz.org/xml/Common/v1-5

    What would be for third one.[xmlns=“http://xyz.org/xml/PO/v1-2”] which has blank/no prefix

    Tried adding blank prefix, but no luck.

    How can I achieve this. Please advise

    Thanks,
    Monica


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: nsDecls in documentToXMLString

    Posted Tue September 05, 2017 10:43 AM

    Hi Monica,

    is it possible to add an @xmlns-element to the root element in the document?

    Please have a look at the IS Built-In-Services Reference for details.

    Regards,
    Holger


    #Integration-Server-and-ESB
    #webMethods