Web services Mule从cxfsoap服务调用数据库连接器,以调用每个方法中的multple存储过程
您能否帮助我并提供任何示例或场景,在这些示例或场景中,我可以使用来自web服务的流操作调用db调用。如果我的web服务实现有五个操作,并且每个操作都必须调用单独的查询或存储过程Web services Mule从cxfsoap服务调用数据库连接器,以调用每个方法中的multple存储过程,web-services,mule,mule-component,Web Services,Mule,Mule Component,您能否帮助我并提供任何示例或场景,在这些示例或场景中,我可以使用来自web服务的流操作调用db调用。如果我的web服务实现有五个操作,并且每个操作都必须调用单独的查询或存储过程 另一种方法是使用spring injection注入数据库模板,并调用所需的查询或存储过程,但我希望使用流来实现这一点。看看CXF代理服务: 它允许访问原始SOAP消息并按您希望的方式对其进行路由,例如在操作名称上使用Xpath的选择路由器,或者您可以提取SOAPAction头等 <flow name="soap-
另一种方法是使用spring injection注入数据库模板,并调用所需的查询或存储过程,但我希望使用流来实现这一点。看看CXF代理服务: 它允许访问原始SOAP消息并按您希望的方式对其进行路由,例如在操作名称上使用Xpath的选择路由器,或者您可以提取SOAPAction头等
<flow name="soap-api" doc:name="soap-api-orders">
<https:.... />
<cxf:proxy-service payload="body"
service="MyService-v1c" namespace="http://xmlns.oracle.com/MyService"
wsdlLocation="wsdl/MyService.wsdl" enableMuleSoapHeaders="false"
doc:name="CXF" />
<choice doc:name="Choice">
<when
expression="#[xpath('boolean(//mynamespace:MyOperation1/node()[1])')]">
<flow-ref name="flow1" />
</when>
<when
expression="#[xpath('boolean(//mynamespace:MyOperation2/node()[1])')]">
<flow-ref name="flow2" />
</when>
<otherwise>
</otherwise>
</choice>
</flow>
谢谢您的回答。您如何看待提供java组件并在java组件中设置一些变量以区分操作并使用choice router to db节点继续流程的方法。