Re: SOAP Request is repeated in the SOAP response.



Hi again,



I found how this is happening but can't figure out why it is happening.

This happens if the parameter values I passed from the client side is still
available in the parameters I received them on the server when returning.

For example:



Client side method SaveMail() calls Server side SetMail().

Parameters would be cSessionKey and cXML to the server side method. The
server side method would be like,



Function SetMail

Lpara cSessionKey, cXML

** Some Processing

Return cSavedMailXML

EndFunc



When you return as shown above values available for cSessionKey, cXML will
be sent in the SOAP message back to the client. The structure of the SOAP
sent to the client would be something like,



<SOAP-Envelope>

<SOAP header info>

</SOAP header info>

<Result>

=Value of cSavedMailXML

</Result>

<cSessionKey>

=Value of cSessionKey

</cSessionKey>

<cXML>

=Value of cXML

</cXML>

</SOAP-Envelope>



So in my case if I don't change the values of cSessionKey, cXML they will be
returned back to the client. I am not sure why this is happening. Is it
some kind a feature or a bug?



As a workaround we can blank out the parameters so they won't be returned to
the client. But this is not a standard in VFP. Ie, we don't have to blank
out parameters at the end of a method. As we received them as LPARA I assume
those will be released at the end of the method.

Is there a way to overcome this problem?



Best regards,

Nadee




"MeAgin" <MeAgain@xxxxxxxxx> wrote in message
news:O0d4pAJ3GHA.2196@xxxxxxxxxxxxxxxxxxxxxxx
Hi all,



I'm using SOAP tool kit version 3 in my VFP 9 application.



When analyzed SOAP responses closely using the Fiddler I noticed that the
data we sent (a XML in this case) is again repeated in the response. Ie,
the
same data we sent to the server is returned back to the client again.



My response from the server is sent within a <Result> tags and after that
all the detail I sent to the server is returned back again. These values
will not be received back to your calling method but will be transferred
from the server to the client. You can check this by using a HTTP debugger
proxy such as Fiddler.



Is this the behavior of SOAP or can we configure SOAP not to do this? Why
is it returning the same data we sent back again?



In my case I send a XML to the server and after doing dome processing
receive a XML. Now it seems in the response I have to spend time to
transfer
the original request back! This is very inefficient.



Please advice if this can overcome in any way.





Best regards,

Nadee




.



Relevant Pages

  • Re: SOAP Request is repeated in the SOAP response.
    ... Like this way you guys can control the values returned in the SOAP response. ... Client side method SaveMailcalls Server side SetMail. ... Parameters would be cSessionKey and cXML to the server side method. ...
    (microsoft.public.fox.helpwanted)
  • Re: SOAP Request is repeated in the SOAP response.
    ... Response all the parameters of the Request are described with the additional ... Client side method SaveMailcalls Server side SetMail. ... Parameters would be cSessionKey and cXML to the server side method. ... The structure of the SOAP ...
    (microsoft.public.fox.helpwanted)
  • Re: SOAP Webservice C# / Axis2
    ... I'm trying to code a simple C# SOAP client wich query an Axis2 Java SOAP ... Server side code has been generated from a WSDL file. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Sending compressed XML over the internet?
    ... In the client side im using mssoap.soapclient30 and on the server an IIS ... Yes compression on the soap client and web server sounds good. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Soap Server in perl
    ... responce from the server. ... Sorry Ian I donot mean to say like that but actually I am new to perl ... and Perl in which you can install SOAP::Lite then you'll have to implement the SOAP support some other way. ... Move your module unchanged to your web server and write a generic SOAP dispatcher (designated by the proxy in the client) that hands off ...
    (comp.lang.perl.misc)