on 04-03-2008 10:09 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rick,
Here is the WSDL.I have created this web service from CAF Application Service.
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="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&style=document" namespace="urn:FlightWebServiceWsd/FlightWebServiceVi/document"/>
<wsdl:binding name="FlightWebServiceConfigBinding" type="prt0:FlightWebServiceVi_Document">
<soap:binding transport="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
Hi Mithu
try getting rid of the namespace locally
regards,
Rajeev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
12 | |
7 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.