【发布时间】:2016-12-05 09:49:10
【问题描述】:
我参与使用网络服务。我给出的文档是两个 WSDL 文件。由于安全原因,我无法发布这些文件。我必须创建一个代码来使用这个 Web 服务。我已经收到了调用该服务的凭据。
我必须完全依赖这个 WSDL 文件。以下是文件中的示例代码 sn-p。
WebService.wsdl
<wsdl:message name:"createFunctionRequest”>
<wsdl:part name=“ createFunctionRequest” element=“s1: createFunctionRequestMsg"
</wsdl:message>
<wsdl:operation name:"createFunctionRequest”>
<wsdl:input name=“ createFunctionRequest” message=“ins: createFunctionRequest"
</wsdl:operation>
第三方.wsdl
<wsdl:message name:"FunctionCreated”>
<wsdl:part name=“FunctionCreated” element=“s1: FunctionCreatedMsg"
</wsdl:message>
<wsdl:operation name:"FunctionCreated”>
<wsdl:input name=“FunctionCreated” message=“ins: FunctionCreated"
</wsdl:operation>
我的假设是“调用 createFunctionRequest 我必须向 Web 服务发送一个 createFunctionRequestMsg。然后作为响应,我将收到 FunctionCreatedMsg。 “对吗?
我正在尝试在 SoapUI 中使用此 wsdl 文件创建模拟 Web 服务。但是它在操作后发送了响应:createFunctionRequest dint 中有输出字段。在这种情况下,如何将这两个文件合并为一个并模拟 Web 服务?
请帮助我理解这一点。 谢谢。
【问题讨论】:
标签: web-services wsdl soapui soap-client