Web服务调用生成StackOverflowException [英] Web service invocation generates StackOverflowException

查看:82
本文介绍了Web服务调用生成StackOverflowException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


当我调用远程Web服务时,发生StackOverflowException。


Web服务的代理客户端通过检索WSDL文件以通常的方式自动生成。 Web服务方法的调用是通过SoapHttpClientProtocol类和那些invoke方法完成的。当我从Response对象的
XmlReader执行Read方法时,我可以看到被调用的Web服务方法的答案。但是上面提到的异常使我无法获得准备好的填充响应对象。


有人知道如何调用Web服务吗?调试此方案的方法是什么?如何在溢出发生的地方成为更详细的信息?这是因为StackOverflowException没有返回堆栈跟踪。


问候,


paulrem

解决方案

通过SoapHttpClientProtocol调用Web服务的任何特殊原因?如果不是,您可以通过实例化Web服务类并调用要调用的方法名称来简化Web服务。请参阅此链接

http://msdn.microsoft.com/en-us/library/6h0yh8f9%28VS.90%29.aspx


 


Hello everybody,

when I call a remote web service, a StackOverflowException occurs.

The proxy client for the web service was auto-generated on the usual way by retrieving the WSDL file. The invocation of the web service method is done through the SoapHttpClientProtocol class and those invoke method. When I execute the Read method from the XmlReader of the Response object, I can see the answer of the called web service method. But the above-named exception give me no chance to get the ready filled response object.

Does somebody know how to call the web service? What is the way to debug this scenario? How to become a more detailed information abot where the overflow occurs? It's because the StackOverflowException returns no stacktrace.

Regards,

paulrem

解决方案

Any particular reason for calling web service through SoapHttpClientProtocol? If no, you can call your web service simple by instantiating the web service class and invoke the method name you want to call. Refer this link http://msdn.microsoft.com/en-us/library/6h0yh8f9%28VS.90%29.aspx

 


这篇关于Web服务调用生成StackOverflowException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆