Proxy无法解析webmethod的返回值

发布于 2024-10-06 07:58:05 字数 286 浏览 0 评论 0原文

我有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

泅人 2024-10-13 07:58:05

我无法从提供的信息中找出错误,但使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文