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

default namespace while coverting documentToXml

  • 1.  default namespace while coverting documentToXml

    Posted Thu March 25, 2010 11:22 AM

    Hi All,

    am using documenttoXml service for converting the document to xml, in output i need a defalut namespace which doe’snot namespace key xmlns="http://ns.ccs.nl/claim/IncidentCall/v1, it should effent in output xml.

    i have other namespace have the key for namespaces
    xmlns:claim=“http://ns.ccs.nl/claim/v1
    xmlns:party=“http://ns.ccs.nl/party/v1
    xmlns:ccs=“http://ns.ccs.nl/v1

    for this i have created keys in nsDecls of documentToXml service, am not getting how to get namespace which doen’t have the key, i have tried with creating @xmlns string in the document and set the value of this to http://ns.ccs.nl/claim/IncidentCall/v1 where am using this document,but i require without setting the xmlns="http://ns.ccs.nl/claim/IncidentCall/v1 namespace where every am using this document ,i need to set the name space xmlns="http://ns.ccs.nl/claim/IncidentCall/v1 every time without creating @xmlns in the document where ever am using this document should have namespace xmlns="http://ns.ccs.nl/claim/IncidentCall/v1, please let me how can i get this namespace.

    document is
    incidentCall -----document
    —person----------string
    —name -------------string
    value--------------string

    output is




    Regardsa,
    anil kumar e


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: default namespace while coverting documentToXml

    Posted Thu April 01, 2010 05:13 PM

    Not a big deal. you got at least two ways -

    1. Configure namespace in your wM document type against the nodes and fields as required - so when you do documentToXML conversion you will get accordingly.
    2. Use XSLT transformation to transform the currently generated xml to what you want.

    Cheers


    #Integration-Server-and-ESB
    #webMethods