Proxy无法解析webmethod的返回值
我有 C++ 应用程序,它使用 .net web 服务。我可以调用网络方法。 webmethod 返回一个字符串值。但代理无法解析返回值。
HRESULT hr = ws.GetFieryIP(str, &ptr, &ptr1);
ws是我添加web引用时生成的代理。hr的值为e_fail。没有其他信息。当我调试应用程序时,我发现 GetFieryIP() 方法中的 Beginparse() 方法返回此值。
可能是什么错误?有没有什么工具可以监控通话?
I have C++ application which consumes a .net webservice. I am able to call the webmethod. The webmethod is returning a string value. But the proxy is unable to parse the return values.
HRESULT hr = ws.GetFieryIP(str, &ptr, &ptr1);
ws is the proxy generated when i added the web reference.The value of hr is e_fail. There is no other information. When I debug the app I found that the Beginparse() method inside GetFieryIP() method is returning this value.
What may be the error? Is there any tool to monitor the calls?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我无法从提供的信息中找出错误,但使用 Fiddler2,您可以跟踪请求并希望看到问题。
I can't figure out the error from the information supplied, but with Fiddler2 you can trace the requests and hopefully see the problem.