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

Consumed wsdl giving Null Pointer Exp getting Soap Hearders

  • 1.  Consumed wsdl giving Null Pointer Exp getting Soap Hearders

    Posted Wed February 25, 2015 02:15 PM

    We have a 3rd party wsdl I have imported and I am getting the following response from the connector when it invokes pub.client:soapClient.

    fault->detail->$errorInfo->$errorInfo - At this location I see the following
    java.lang.NullPointerException
    at com.wm.app.b2b.server.soap.headers.HeaderUtil.getSoapHeadersAsData(HeaderUtil.java:259)

    But then at the location below I actaully get the response I am looking for and it is correct
    fault->detail->$errorInfo->$pipeline->response

    So that seems like the communication is working and I am actually getting the data I need but due to something with the headers on the response not looking like it believes they should I am getting a fault. Maybe I am off on that assumption but that is how it appears.

    I can see the headers that it uses in the pipeline.

    Any suggestions?

    webMethods 8.2 on 2008r2


    #API-Management
    #webMethods
    #soa


  • 2.  RE: Consumed wsdl giving Null Pointer Exp getting Soap Hearders

    Posted Wed February 25, 2015 05:58 PM

    Did you enabled WS-Security?
    Did you applied a security policy?
    When WSS is enabled, the system will look into the SOAP header for security information.
    The null pointer exception indicates there is no SOAP header.
    HTH,


    #webMethods
    #soa
    #API-Management


  • 3.  RE: Consumed wsdl giving Null Pointer Exp getting Soap Hearders

    Posted Thu February 26, 2015 05:59 PM

    No on both questions.

    I was able to find a temporary way around it…not a good way but it works and will let the developers use the service while I figure out how to solve it the right way. I have a call with SAG support tomorrow to show them what I am doing and get some advice. I will post the results here after I can put them together.

    How I was able make it work for now…
    I pulled down all the wsdl & xsd files locally. Removed the soapheader for the output of that transaction and recreated the web service descriptor. This only works because we do not need nor care what is in them.


    #API-Management
    #soa
    #webMethods