我需要创建一个Java Web服务,将XML发送到BPEL流程并接收返回消息。
我有来自BPEL流程的WSDL:
<definitions name="SJATR"
targetNamespace="http://www.oracle.com/retail/xpto/integration/SJATR"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:client="http://www.oracle.com/retail/xpto/integration/SJATR"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://www.oracle.com/retail/xpto/integration/SJATR"
xmlns="http://www.oracle.com/retail/xpto/integration/SJATR"
xmlns:lmx="http://www.oracle.com/retail/xpto/integration/lmxbrasn"
schemaLocation="SJATR.xsd"/>
</schema>
</types>
<message name="SJATRReqMsg">
<part name="payload" element="client:SJATRReq"/>
</message>
<message name="SJATRRespMsg">
<part name="payload" element="client:SJATRResp"/>
</message>
<portType name="SJATR">
<operation name="initiate">
<input message="client:SJATRReqMsg"/>
<output message="client:SJATRRespMsg"/>
</operation>
</portType>
<plnk:partnerLinkType name="SJATR">
<plnk:role name="SJATRProvider">
<plnk:portType name="client:SJATR"/>
</plnk:role>
</plnk:partnerLinkType>
</definitions>
现在我需要让jax-ws从BPEL调用该WSDL文件。
我该怎么办?我应该使用wsimport
来创建存根吗?如果是的话那么呢?