SOAP message corrupted

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have a client, a smart device application (Pocket PC 2003), that calls a method of a webservice via GPRS. I developed everything using Visual Studio .Net 2003.
Sometimes this method fails and the client gets the following error :

[System.Web.Services.Protocols.SoapException] Server was unable to read request. --> There is an error in XML document (1, 7665). --> The 'soap:Body' start tag on line '1' does not match the end tag of 'soap:B'

I could see that this problem does not depend on a particular value that this method receives as a parameter from the client ..... it happens sometimes, and, when it happens, after some repeated attempts the method starts working again !

Anyone experienced such problem ? Any suggestion ?
Thanks in advance
Stefano
 
The only explanation I can come with is that it could be hapenning because
of the connection being interrupted.
You should catch this exception and re-try on the backgound.

--
Alex Yakhnin, NET CF MVP
IntelliProg, Inc.
http://www.intelliprog.com

Stefano Busolin said:
Hi,
I have a client, a smart device application (Pocket PC 2003), that calls a
method of a webservice via GPRS. I developed everything using Visual Studio
..Net 2003.
Sometimes this method fails and the client gets the following error :

[System.Web.Services.Protocols.SoapException] Server was unable to read
request. --> There is an error in XML document (1, 7665). --> The
'soap:Body' start tag on line '1' does not match the end tag of 'soap:B'
I could see that this problem does not depend on a particular value that
this method receives as a parameter from the client ..... it happens
sometimes, and, when it happens, after some repeated attempts the method
starts working again !
 
Back
Top