cancel
Showing results for 
Search instead for 
Did you mean: 

RFC - XI - WebService :: Not getting complete Response from WS

Former Member
0 Kudos

Hi

I am working on a following Synchronous scenario

<b>SAP R/3 --> Sender RFC Adapter --> XI --> Rec. SOAP Adapter --> MI Web Service</b>

Now I tested the structure of Request/Response Message from WebService in XML Spy, & designed my Request/Response Message structure in XI based on that.

Now when I am sending the request from <u>XML Spy</u>,the Response message which is coming is this -->

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

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<soapenv:Body>

<ns1:getResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://www.MI/util">

<getReturn href="#id0"/>

</ns1:getResponse>

<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:AddressDTO" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://to.MIutil.com">

<latitude href="#id1"/>

<longitude href="#id2"/>

<postcode xsi:type="soapenc:string">111</postcode>

<state xsi:type="soapenc:string">XYZ</state>

<streetName xsi:type="soapenc:string">NYDEL</streetName>

<streetNumber xsi:type="soapenc:string">444</streetNumber>

<streetType xsi:type="soapenc:string">ST</streetType>

<suburb xsi:type="soapenc:string">SQY</suburb>

</multiRef>

<multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:double" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">-33.87571285585008</multiRef>

<multiRef id="id2" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:double" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">51.20783220341076</multiRef>

</soapenv:Body>

</soapenv:Envelope></i>

{ <b>Pls. take note that it is referring variables</b>}

But when I am sending the Request from SAP R/3 <u>using SAP XI</u>, I am getting the Response message from WebService like this -->

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

- <!-- Call Adapter

-->

- <ns1:getResponse xmlns:ns1="http://www.MI/util" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

<getReturn href="#id0" />

</ns1:getResponse></i>

which suggest that operation is getting called successfully & response is coming back.

Can you tell me what is the reason that why I am not getting the rest of the response .

Regards

- Lalit Chaudhary -

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Yes it can be possible, you have to maintain SOAP Header.

please see the below links..

/people/sap.user72/blog/2005/12/11/how-to-apply-themes-in-exchange-infrastructure

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c50cddbb-0601-0010-92a7-f2a40ca6...

https://www.sdn.sap.com/irj/sdn/advancedsearch?query=href%20%20in%20xi&cat=sdn_all

Regards

Chilla..

Former Member
0 Kudos

Thanks Chandra but none of those links are helping me.

I think maybe I didn't explain well enough what issue I am facing, so let me try to put it in other words -->

XI is receiving response from WebService & within the response XML is using hyperlink to an "anchor" in the same XML. Now this anchor is used by an attribute to write more values.

Now XI is just taking the hyperlink part not the rest of the part in which actual values exist of the hyperlink.

Like " <i>soapenc:Array</i>" types are not suppoerted by the XI in WSDL. Does XI supports receiving hyperlink XMLs from the business systems with different namespaces.

- Lalit -

Former Member
0 Kudos

Hi,

Please create the SOAP request from ID for your RFC Request, open this request and check in XMLSpy and then from there you can send the request.

Regards

Chilla..

Former Member
0 Kudos

Chandra

I already created the Request Message in IR & that is working fine as I already mentioned above.

Real issue is this that I am not getting the complete response in XI.

Does XI allows " HTML anchor " to be linked with an attribute

<b>href="#id0"</b>

- Lalit -

Former Member
0 Kudos

when you loaded the WSDL for the webservice for the SOAP adapter in XI, do you see your request and response structures correctly?

Is this scenario Aysnc or Sync?

Former Member
0 Kudos

No they were not in correct format so that's why I have to design the Data types & message types separately.

Scenario is Synchronous.

Request Message is fine that is why I am getting the response back but not complete.

- Lalit -