Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Response from webservice : Object Aggregate

Dear,

I have an Interactive Form with a ton of data on it. I'm using a Web Service to post this to PI, which then does an RFC to other systems to process the data.

In the PI monitor and using an application like SoapUI I can see and test the service. The return is put like this with constants (so it's always this, never different) :

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP:Header/>
   <SOAP:Body>
      <ns1:AdobePDF xmlns:ns1="http://host.be/pi/PI/Time_Registration">
         <RETURN>Test return message</RETURN>
         <ERROR>1</ERROR>
      </ns1:AdobePDF>
   </SOAP:Body>
</SOAP:Envelope>

I call the webservice in my form with a button with this code :

var response = SOAP.request ({
cURL: "http://host:port/XISOAPAdapter/MessageServlet?channel=:BS_TIMEREGISTRATION:CC_SOAP_UpdateTimereg&version=3.0&Sender.Service=BS_TIMEREGISTRATION&Interface=http://host.be/pi/PI/Time_Registration^MI_TimeRegistration",
oRequest: myRequest,
cAction: "http://host.be/pi/PI/TimeRegistration",
oAuthenticate: myAuthentication
});

The response should be caught in the variable <i>response</i>.

xfa.host.messageBox("Response : " + response + "","Information",3);

The above returns "Response : Object aggregate".

var result = response["AdobePDF"];

xfa.host.messageBox("Result : " + result + "","Information",3);

The above returns "Result : undefined".

var result = response["AdobePDF"]["RETURN"];

xfa.host.messageBox("Return : " + result + "","Information",3);

The above returns an error : "response.AdobePDF has no properties".

Any ideas?

Thanks in advance,

Frederik-Jan Roose

Former Member
Not what you were looking for? View more on this topic or Ask a question