Skip to Content
author's profile photo Former Member
Former Member

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

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"?>

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>

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

<getReturn href="#id0"/>

</ns1:getResponse>

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>

http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:double" xmlns:soapenc=" -33.87571285585008http://schemas.xmlsoap.org/soap/encoding/">-33.87571285585008>

http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:double" xmlns:soapenc=" 51.20783220341076http://schemas.xmlsoap.org/soap/encoding/">51.20783220341076>

</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

-->

- 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 -

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2007 at 12:57 AM

    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?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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 -

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2007 at 03:51 AM

    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..

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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 -

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2007 at 06:00 AM

    Hi,

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

    please see the below links..

    How to extract XI-header fields from XI-message in JAVA?

    /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-f2a40ca68e6d

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

    Regards

    Chilla..

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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 -

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.