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 get namespace header (soap Env)

    Posted 05/04/09 02:19 AM

    Hi all,

    I am fairly new to the world of webMethods i have to say quite enjoying using webemthodd anyhow i need some help.

    i have exposed a web service using web service descriptor (7.0.1) now i need to get some extra info from the soap envelope… that is a namespace i have posted an example below i need to get a to strip of the header the value of ns1 (“http://www.company.com/test/test/1.0/”)

    does anyone know how i can do this?

    <soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:ns1=“http://www.company.com/test/test/1.0/”>

    many thanks


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


  • 2.  RE: How to get namespace header (soap Env)

    Posted 05/04/09 06:26 AM

    HI,

    You can use the wM Built in service pub.soap.utils:getHeader to get the header node of your SOAP message. Then you can get the specific node information by querying it using the service pub.xml:queryXMLNode service.

    Thanks

    Nithin…


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


  • 3.  RE: How to get namespace header (soap Env)

    Posted 05/13/09 11:40 AM

    thanks Nithin,

    I am trying to make this work but i am find it a bit difficult but i am not sure if this what i want really, becasue what i am trying to get is in the soap envelope. so i want is the namespace in red.

    <soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:ns1="http://www.comp.com/version/1.0/">
    soapenv:Header
    ns1:xHeader
    </ns1:xHeader>
    </soapenv:Header>


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