在 .Net 中使用虚线 Web 服务方法名称

发布于 2024-07-30 13:31:18 字数 295 浏览 3 评论 0原文

我正在尝试使用 CGI 网络服务。 Web 服务方法名称包含破折号,wsdl.exe 将它们从生成的代理类中删除。

尝试使用代理类 Web 服务时出现错误:“方法 'q1:methodname' 未实现:方法名称或命名空间无法识别”

然后我尝试在 Invoke 中更改 MedhodName 参数(使用原始的虚线方法名称)代理类中的 BeginInvoke 函数。 但这次我收到错误“方法名称 Web 服务方法名称无效”。

有没有办法解决这个问题。 CGI Web 服务是另一家公司的应用程序,我无法更改它。

I'm trying to use a CGI web service. The Web Service method names contain dashes and wsdl.exe removes them in the generated proxy class.

Trying to use the proxy class web service I'm getting an error: "Method 'q1:methodname' not implemented: method name or namespace not recognized"

Then I've tried to change MedhodName parameters (with original dashed method name) in Invoke and BeginInvoke functions in the proxy class. But this time I'm getting an error "method-name Web Service method name is not valid."

Is there a way to solve this problem. The CGI web service is another company's application and I'm not able to change it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文