本文目录
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 组件,参数配置信息如图: