“在反序列化答复消息的机构操作错误......” - 每一个我称之为方法 [英] 'Error in deserializing body of reply message for operation ...' - for every method that i call
问题描述
我想为我们的所谓的快板波兰拍卖服务非常简单的客户端应用程序。它们提供的API在SOAP架构。问题是,每一次我尝试调用任何方法,我得到:
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'
我是新来的,一般的Web服务,所以我不知道如何找到问题的根源。我绝对相信,我在下面的例子中传递正确的参数的方法:
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);
}
}
我在Visual Studio 2010中使用.NET 4.0我知道有很多人在使用此API与.NET,甚至快板本身有官方的Windows Phone 7客户端使用此API。我该如何解决呢?
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?
下面是WSDL地址:
https://webapi.allegro.pl/uploader.php?wsdl
推荐答案
我有类似的问题。请参阅内部异常。我决定它通过扩展在web.config中readerQuotas的大小:)
I have had similiar problem. See your inner exception. I resolved it by extending the size of readerQuotas in web.config :)
这篇关于“在反序列化答复消息的机构操作错误......” - 每一个我称之为方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!