Re: SOAP Request is repeated in the SOAP response.
- From: "MeAgin" <MeAgain@xxxxxxxxx>
- Date: Tue, 26 Sep 2006 10:31:13 +0530
Hi all,
After analyzing WSDL files identified that for the description of the
Response all the parameters of the Request are described with the additional
parameter "Result". This "Result" will contain the return value from the
called method and the other parameters will contain the values available
when returning. So if we don't make any change in the called method the
parameters will be returned as it is to the client side.
Is there a way to restrict these parameters returned from the server?
Any help is greatly appreciated.
Best regards,
Nadee
"MeAgin" <MeAgain@xxxxxxxxx> wrote in message
news:#tmTN$J3GHA.4632@xxxxxxxxxxxxxxxxxxxxxxx
Hi again,still
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
available in the parameters I received them on the server when returning.be
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
returned back to the client. I am not sure why this is happening. Is itto
some kind a feature or a bug?
As a workaround we can blank out the parameters so they won't be returned
the client. But this is not a standard in VFP. Ie, we don't have to blankassume
out parameters at the end of a method. As we received them as LPARA I
those will be released at the end of the method.the
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
thatdata 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
debuggerall 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
Whyproxy such as Fiddler.
Is this the behavior of SOAP or can we configure SOAP not to do this?
is it returning the same data we sent back again?transfer
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
- Re: SOAP Request is repeated in the SOAP response.
- From: MeAgin
- SOAP Request is repeated in the SOAP response.
- Prev by Date: Re: vfp form
- Next by Date: Re: append from excel
- Previous by thread: Re: SOAP Request is repeated in the SOAP response.
- Next by thread: Re: SOAP Request is repeated in the SOAP response.
- Index(es):
Relevant Pages
|