0

こんにちは、メソッドが 2 つの入力値を受け取り、bool O/P を与える SOAP サービスがあります。この SOAP サービスを利用するために Web サービス コンシューマー エンドポイントを使用しています。SOAP サービスに値を送信する方法を知りたいです。

`<ws:consumer-config name="Web_Service_Consumer" wsdlLocation="http://.....?singleWsdl" service="ClientService" port="WSHttpBinding_IClientService" serviceAddress="http://....../ClientService.svc" doc:name="Web Service Consumer"/>
<ws:consumer config-ref="Web_Service_Consumer" operation="AuthenticateUser" doc:name="Web Service Consumer"/>

4

4 に答える 4

1

ws:consumerについてよく理解してください:- http://www.mulesoft.org/documentation/display/current/Web+Service+Consumer+Reference およびhttp://www.mulesoft.org/documentation/ display/current/Web+Service+Consumer も github に例があります:- https://github.com/mulesoft/mule-tooling-examples/blob/master/web-service-consumer/src/main/app/ tshirt-service-consumer.xml

サービスに値を渡すために使用できます<stdio:inbound-endpoint system="IN" doc:name="STDIO"/>..しかし、それが推奨されるアプローチであるかどうかはわかりません..別のオプションはset-payloadで、値をサービスに渡すことができます

于 2014-12-31T08:09:00.900 に答える
1

Web サービス コンシューマードキュメントに基づいて、コンシューマーはサービス操作の xml 要求を予期しています。

私の簡単な提案は、任意のツールを使用して wsdl ( SOAP UIなど) に基づいてxml リクエストを作成し、それをset-payloadで使用し、MEL 式を使用して 2 つのパラメーター値を注入することです。

それが役に立てば幸い。

于 2014-12-31T17:06:27.610 に答える
0

この例でこれを試すことができます

  <ws:consumer-config name="Web_Service_Consumer" 
 
 
         wsdlLocation="somelocation_1.0.wsdl" 
 
 
         service="GreeterResponderService" port="GreeterResponderPort" 
 
 
         serviceAddress="http://user:password@localhost:8088/mockbinding" 
 
 
         doc:name="Web Service Consumer"/>

于 2015-12-12T16:28:20.777 に答える