Skip to Content
avatar image
Former Member

Issue in calling Web service from BLS

Hi All,

We are facing a strange issue while executing a BLS calling a web service (with nested structure).

If we call the web service using the Web Service action block and then display the ws response message in a tracer we see all the data fine. But we also have a repeater to loop through the web service response message and add rows in a xMII XML document. But strangely no data is coming under the repeater action.

While debugging I see a difference between the xpath expression of the web service response xml and the repeater xpath (repeater configuration). Below is a snapshot of web service response message :

  <?xml version="1.0" encoding="UTF-8" ?>

- <rpl:getFilghtList_RResponse xmlns:rpl="urn:FlightWebServiceVi">

- <rpl:Response xmlns:pns="urn:com.ibm.flight.service.appsrv.datatypes">

- <pns:flightListDetails>

- <pns:FlightListDetails_R>

  <pns:arrDate>2006-03-18T00:00:00.000Z</pns:arrDate>

  <pns:arrTime>1979-03-02T21:53:36.000+05:30</pns:arrTime>

  <pns:cityFrom>SAN FRANCISCO</pns:cityFrom>

  <pns:cityTo>NEW YORK</pns:cityTo>

  <pns:currency>USD</pns:currency>

  <pns:deptTime>1979-03-02T13:32:36.000+05:30</pns:deptTime>

  <pns:flightDate>2006-03-18T00:00:00.000Z</pns:flightDate>

  <pns:price>422.94</pns:price>

  </pns:FlightListDetails_R>

But in repeater configuration the Xpath expression is :

Web_Service_0.getFilghtList_RResponse{/ns1:getFilghtList_RResponse/ns1:Response/ns2:flightListDetails/ns2:FlightListDetails_R}

The namespaces are different in the actual response xml and the repeater xpath. Repeater xpath has been generated automatically when we selected the ws response node which is repeating.

We are using xMII 12.0 SP02.

Regards,

Mithu

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 03, 2008 at 09:28 AM

    Hi Mithu

    try getting rid of the namespace locally

    regards,

    Rajeev

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 03, 2008 at 12:12 PM

    Please post the WSDL for this web service. It looks fine to me. There used to be an issue with namespace handling that was fixed in 11.5, but perhaps this never made it to version 12.0.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Rick,

      Here is the WSDL.I have created this web service from CAF Application Service.

      <?xml version="1.0" encoding="UTF-8"?>

      http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:FlightWebServiceWsd/FlightWebServiceConfig/document" xmlns:prt0="urn:FlightWebServiceWsd/FlightWebServiceVi/document" xmlns:soap=" http://schemas.xmlsoap.org/wsdl/soap/">

      <wsdl:import location="http://9.126.76.48:50000/FlightWebService/FlightWebServiceConfig/porttypes?wsdl&amp;style=document" namespace="urn:FlightWebServiceWsd/FlightWebServiceVi/document"/>

      <wsdl:binding name="FlightWebServiceConfigBinding" type="prt0:FlightWebServiceVi_Document">

      http://schemas.xmlsoap.org/soap/http" style="document"/>

      <wsdl:operation name="getFilghtList_R">

      <soap:operation soapAction=""/>

      <wsdl:input>

      <soap:body use="literal" parts="parameters"/>

      </wsdl:input>

      <wsdl:output>

      <soap:body use="literal"/>

      </wsdl:output>

      <wsdl:fault name="com.sap.caf.rt.exception.ServiceException">

      <soap:fault use="literal" name="com.sap.caf.rt.exception.ServiceException"/>

      </wsdl:fault>

      </wsdl:operation>

      </wsdl:binding>

      </wsdl:definitions>

      Regards,

      Mithu