我可以通过网址使用WCF服务吗? [英] Can I consume a WCF service by a url?

查看:80
本文介绍了我可以通过网址使用WCF服务吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个WCF soap服务,其格式为https格式为 https://payments.acompany.com/WebBridge10 /WebBridge10.svc?wsdl [ ^ ]。

现在我被告知要使用url来消费它,而不是将服务引用添加到项目中。



怎么样?需要一段示例代码。

I have a WCF soap service, which is https format as https://payments.acompany.com/WebBridge10/WebBridge10.svc?wsdl[^].
Now I am told to consume it with the url rather than add the service reference to the project.

How? Need a piece of sample code.

推荐答案

服务的作者根据WSDL或任何其他方式决定是否使用它,而不是你。如果服务指定了WSDL,那么您的HTTP请求可能应该包含请求主体中的请求数据,而不是URL中。如果您被告知,请询问您告诉您所有问题的人,或让他/她与我们交谈。对没有做出决定的人说话很抱歉,抱歉。



-SA
The author of the service decides if it is consumed according to WSDL or any other way, not you. If the service specifies WSDL, chances are, your HTTP requests should contain the request data in the body of request, not in URL. If you have been "told to", ask your the person who told you that all your questions, or let her/him talk with us. There is no point to talk to one who does no make decisions, sorry.

—SA


这篇关于我可以通过网址使用WCF服务吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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