简体   繁体   English

从ASP.NET使用XML-SOAP Web服务

[英]Consume XML-SOAP web service from ASP.NET

I have to consume a public service with the following properties - 1. SSL is used as Transport Level Security. 我必须使用具有以下属性的公共服务-1. SSL被用作传输级安全性。 2. User credentials are used for Authorization and Message Level security 2.用户凭证用于授权和消息级别的安全性

NOTE : Source Code is not available for the service. 注意:源代码不适用于该服务。

Sample URL - https://abc.com/SampleService/SampleService.svc

How do I consume from ASP.NET and call the exposed methods ? 如何从ASP.NET使用并调用公开的方法?

Did you try right clicking at References folder and using "Add Service Reference" option? 您是否尝试右键单击“引用”文件夹并使用“添加服务引用”选项? You can paste url there and it should discover service. 您可以在其中粘贴网址,它应该可以发现服务。
After this, you will get proxy of that service available and you will be able to instantiate it and call its method. 此后,您将获得该服务的代理,并且可以实例化它并调用其方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM