本文目录
1 示例简介
通过 SendAndReceiveReply 组件,访问 Web Service 接口,调用 Add(int, int) 方法,并获取返回结果。
2 WSDL 示例
示例 Web Service 的 WSDL 主要内容如下:
提取信息内容如下:
Service Name : Calculation
Service Address : http://localhost:1117/Calculation.svc
Binding : BasicHttpBinding
Namespace : http://tempuri.org/
Interface : ICalculation
Method : Add
Input : int num1, int num2
Output : int AddResult
3 Send 配置
根据 WSDL 信息配置 Send 组件,属性配置信息如图:

参数配置信息如图:

4 ReceiveReplyForSend 配置
根据 WSDL 信息配置 ReceiveReplyForSend 组件,参数配置信息如图:

5 测试结果

本文介绍了一个使用SendAndReceiveReply组件调用WebService接口的具体示例,包括WSDL配置信息、Send组件配置及测试结果等内容。
498

被折叠的 条评论
为什么被折叠?



