且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Niem遵守Asp.net Web服务创建

更新时间:2023-02-15 22:46:06

从Web服务提供者那里获取WSDL并根据WSDL创建一个Web服务,并在您的客户端上创建一个代理,并使用代理对象分配输入参数并传递给webmethod在网络服务中.

如果要检查Web服务是否真的以所需的格式生成SOAP消息,这非常简单.只需右键单击Web服务,然后选择在浏览器中查看"即可显示带有占位符的请求和响应SOAP格式.

从客户端,使用代理对象,您需要传递输入参数以填充这些占位符.这就是从客户端使用Web服务所需要做的一切.

谢谢,
Srinivas Kalagara
Get a WSDL from Webservice provider and create a Webservice as per WSDL and create a proxy at your client and assign input parameters using proxy object and pass to webmethod in webservice.

If you want to check if webservice really generating SOAP message in a required format or not, it''s very simple.Just right click on webservice and select View in Browser.It shows both request and response SOAP formats with placeholders.

From client, using proxy object you need to pass input parameters to fill these placeholders. That''s it all you need to do to consume webservice from client.

Thanks,
Srinivas Kalagara