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
  • 1.  Handler removing soap header parts

    Posted Mon February 01, 2016 12:40 PM

    Hello

    I have a consumer webservice which return me the following soap response :

    <SOAP-ENV:Envelope xmlns:SOAP-ENV=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:ns1=“https://webservice.face.gob.es” xmlns:wsa=“http://schemas.xmlsoap.org/ws/2004/08/addressing”>
    SOAP-ENV:Header
    <wsse:Security SOAP-ENV:mustUnderstand=“1” […]

    I would like to remove the part in red. So I am working on a handler.

    I assume I have to use the pub.soap.handler:removeProperty to delete it. Am I right ?
    If yes, I have to set up a pub.soap.utils:QName, but here, I don’t know what to do.

    Can you help me ?


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General


  • 2.  RE: Handler removing soap header parts

    Posted Mon February 01, 2016 06:17 PM

    the server side is using WS-Security, you should follow the WSS implementation to process it.
    What’s the reason you want to remove the part you mentioned? Bypassing it is normally not recommended.


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General


  • 3.  RE: Handler removing soap header parts

    Posted Tue February 02, 2016 04:02 AM

    I know but my customer is not making the good things. The soap response is not valid which cause me an error (Must Understand check failed for header http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd : Security).
    As they will not change (they are national public administration and me a lone supplier :smiley: ) I have to find a solution !


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 4.  RE: Handler removing soap header parts

    Posted Tue February 02, 2016 10:58 AM


  • 5.  RE: Handler removing soap header parts

    Posted Tue February 02, 2016 12:31 PM

    What I understand is that they send me a soap header that does not correspond to my configuration. Right ?
    So I need to update my configuration, but which one ? Policy file?
    I have to admit that I have many problems to configure the ws security in SOAP.
    It is so easy to do it in SOAP UI but nearly impossible for me in webMethods. (My requests in SOAP UI work fine)


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 6.  RE: Handler removing soap header parts

    Posted Thu March 07, 2019 08:46 AM

    Old topic, but my problem is the same.

    IS: 9.12. I’m a consumer of SOAP service + WSS Policy.

    Fragment of my request:

    <soapenv:Header>
    <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soapenv:mustUnderstand="1">

    Author of provider webservice introduced a very restrictive input data format and refuse my request because of
    existence soapenv:mustUnderstand=“1”.
    Error:

    
    Must Understand check failed for header http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd : Security

    How to solve it?


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 7.  RE: Handler removing soap header parts

    Posted Thu March 07, 2019 03:17 PM

    check with your WS provider what WSSE is used, which policy is configured. Most likely they are using a different policy.


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 8.  RE: Handler removing soap header parts

    Posted Fri March 08, 2019 05:16 AM

    I’m using my own (customized by me) policy based on X509Authentication_Signature.policy.
    Rather it’s not possible to change mustUnderstand at stage of calling ws connector in my IS service, because it’s added after invoke pub.client.soapClient method (that’s how WS policy work).

    Now I’m trying to use outbound callback service and cut out “mustUnderstand” from header. There is a description of this mechanism in documentation: “Web_Services_Developers_Guide” and in “Integration_Server_Built_in_Services_References” (SOAP → pub.soap.handler.* methods)

    And I’ve found a good example on site:


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General