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.  Response is returned as string and not as XML

    Posted Tue June 24, 2014 05:17 AM

    The output of a webMethods service is in the form of soapData.

    wM service response:

    <?xml version="1.0"?>

    <soap:Envelope xmlns:soap=“http://schemas.xmlsoap.org/soap/envelope/”>
    soap:Body
    <qas:QASearchResult xmlns:qas=“http://www.qas.com/web-2005-02” VerifyLevel=“None”>
    <qas:QAPicklist AutoFormatSafe=“true”>
    qas:FullPicklistMonikerQMGBRFQPeBwMBAQABAACUo6IAAAAAADIAZA–</qas:FullPicklistMoniker>
    <qas:PicklistEntry FullAddress=“true”>

    But when I test the service in SOAP UI, response message is returned in a CDATA section inside Values element and not as XML.

    SOAP UI response:

    <![CDATA[<?xml version="1.0"?>
    <soap:Envelope xmlns:soap=“http://schemas.xmlsoap.org/soap/envelope/”>
    soap:Body
    <qas:QASearchResult xmlns:qas=“http://www.qas.com/web-2005-02” VerifyLevel=“None”>
    qas:QAPicklist

    The response content is treated as string and not parsed as XML.

    But I need the ouput message as it is… i.e as soapData and not inside a CDATA section.

    Is there anyway to indicate that the response message is a valid xml and it should not be treated as string.
    I tried to do string to node,node to doc conversions, but nothing worked.


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


  • 2.  RE: Response is returned as string and not as XML

    Posted Tue June 24, 2014 05:55 AM

    how are you performing your test on SOAP UI using the WSDL file?


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


  • 3.  RE: Response is returned as string and not as XML

    Posted Tue June 24, 2014 06:21 AM

    I have not created any WSDL for this.Service consumer would use the webMethods service endpoint(…invoke/ …) and make a HTTP call.
    To test this,I have created a test step in SOAP UI with HTTP test request,given the webMethods service end point in ‘request URL’.
    I have also added a header to set content Type as ‘text/xml’.

    Internally in the webMethods service I have made a call to third party,which is returning the soap response.
    And webMethods is expected to pass on the message in the same format to the service consumer.

    If i run the service internally ,output is in the form of soapData.
    But in soap UI ,response content from webMethods service is coming as a string in CDATA and not as valid SOAP message.


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


  • 4.  RE: Response is returned as string and not as XML

    Posted Mon July 21, 2014 05:27 PM

    Use the pub.flow:setResponse service in WmPublic and set the response as text\XML at the end of the flow and see if that makes a difference.


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