Re: SOAP Request is repeated in the SOAP response.
- From: "MeAgin" <MeAgain@xxxxxxxxx>
- Date: Wed, 20 Sep 2006 16:02:02 +0530
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,the
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,
same data we sent to the server is returned back to the client again.transfer
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
the original request back! This is very inefficient.
Please advice if this can overcome in any way.
Best regards,
Nadee
.
- Follow-Ups:
- Re: SOAP Request is repeated in the SOAP response.
- From: MeAgin
- Re: SOAP Request is repeated in the SOAP response.
- References:
- SOAP Request is repeated in the SOAP response.
- From: MeAgin
- SOAP Request is repeated in the SOAP response.
- Prev by Date: SOAP Request is repeated in the SOAP response.
- Next by Date: Re: OPEN TABLE pop-up
- Previous by thread: SOAP Request is repeated in the SOAP response.
- Next by thread: Re: SOAP Request is repeated in the SOAP response.
- Index(es):
Relevant Pages
|