Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'Error in deserializing body of reply message for operation ...' - for every method that i call

I am trying to create very simple client application for our Polish auction service called Allegro. They provide API in SOAP architecture. The problem is that, every time I try to call any of the methods, I receive:

Error in deserializing body of reply message for operation 'name of method'

I am new to web services in general so I have no idea how to find the source of the problem. I am absolutely sure that I am passing correct arguments to the method in the example below:

class Program
{

    static void Main(string[] args)
    {
        string ALLEGRO_KEY = "******";
        AllegroWebAPI.AllegroWebApiPortTypeClient allegro = new AllegroWebApiPortTypeClient();
        long version = 0;
        String versionStr = allegro.doQuerySysStatus(out version, 1, 1, ALLEGRO_KEY);

    }
}

I am using .NET 4.0 in Visual Studio 2010. I know that there are many people using this API with .NET, even Allegro itself has official Windows Phone 7 client that uses this API. How can I troubleshoot that?

Here is the WSDL address:

https://webapi.allegro.pl/uploader.php?wsdl

like image 504
Booyaches Avatar asked Dec 27 '22 02:12

Booyaches


2 Answers

I have had similiar problem. See your inner exception. I resolved it by extending the size of readerQuotas in web.config :)

like image 71
binarytree Avatar answered Jan 05 '23 18:01

binarytree


It sounds like there is something in the response message from the Web Service which WCF is having difficulty understanding.

Configure WCF Tracing with both service and message tracing enabled. This should give you the actual response message from the web service and will also give you more detailed error messages.

like image 37
tom redfern Avatar answered Jan 05 '23 16:01

tom redfern