Error in deserializing body of reply message for operation

rkingmdu

Member
Joined
Dec 30, 2008
Messages
6
Programming Experience
3-5
Hi,

I am calling a Web Service from a VB.NET desktop application. I pass an XML file as a string the web service and get a response XML back as a string.

When the size of the text is large, i get the error "Error in deserializing body of reply message for operation". When I open the web service in a browser and give the same text as input, it works fine. I am not sure what needs to be changed...

This is basically what I am doing:

Private Function ProcessXML(ByVal XML1 As String) As String
Dim req As New Servicereference1.FeedSoapClient
Dim resp As String
resp = req.getresponse(XML1)
req.Close()
Return resp
End Function

I am using Visual Studio 2008.

Can anyone help me with this situation?

Thanks
rkingmdu
 
I was able to fix the error by changing the maxStringContentLength element under <binding>--><readerQuotas> from 8192 to 65536 in App.config file in my application.

That solved the problem.

rkingmdu
 
My problem was the MaxNameTableCharCount. By examining the inner exception of the inner exception of the original exception the problem was displayed.
 
Back
Top