我将尝试解释所有后续步骤:
网页服务
- wsOne 部署在 wso2as 中:接受参数:wsOne (input1, size) 并返回一个包含 3 个字符串 (t1, t2, output1) 的表,
- ws2One 部署在 wso2as 中:接受参数:wsTwo(output1) 并返回字符串:“Hello output1”。
wsOne:
EndPoint (In wso2as): http://localhost:9765/services/wsOne
WSDL (In wso2as): http://localhost:9765/services/wsOne?wsdl
ws二:
EndPoint (In wso2as): http://localhost:9765/services/wsTwo
WSDL (In wso2as): http://localhost:9765/services/wsTwo?wsdl
- 现在我在 wso2esb 中,我必须在代理之前创建一个序列,因为我将为每个 ws 调用代理内部的序列:
序列
ServiceBus -> 序列 -> 定义的序列 -> 添加序列。
ws1ResultSequence
我不知道必须包含什么原因当我尝试创建有效负载时出现错误..
ws1InSequence
<sequence xmlns="http://ws.apache.org/ns/synapse"><in>
<filter>
<then>
<send receive="ws1ResultSequence">
<endpoint>
<address uri="http://localhost:9765/services/wsOne"/>
</endpoint>
</send>
</then>
<else/>
</filter>
</in>
</sequence>
ws2序列
<sequence xmlns="http://ws.apache.org/ns/synapse" name="conf:/ws2Sequence">
<out>
<send/>
</out>
</sequence>
代理
ws1Proxy
添加->代理服务->自定义代理->名称:ws1proxy,发布wsdl:否,下一步->定义InSequence->从注册表中挑选->ws1InSequence。
ws2Proxy
Add->Proxy Service ->Custom Proxy-> Name: ws2proxy, publishing wsdl: No, Next -> Define InSequence-> Pick from Registry -> ws2Sequence.
Is My steps correct or not ? I know that I did Many mistakes following as it's my first interaction with SOA, ESB, ...
What Must the Client execute to launch the chaining and obtain the required result (ws1Proxy) or an other?
Thanks a lot for your time.