【问题标题】:Import wsdl error in BPEL using WSO2 developer Studio使用 WSO2 开发人员 Studio 在 BPEL 中导入 wsdl 错误
【发布时间】:2014-01-09 09:38:47
【问题描述】:

我正在 Eclipse WSO2 Developer studio 中处理 BPEL 示例,

我创建了 3 个 BPEL 工作流加法、减法、乘法。

现在我想调用那些 BPEL 流 当我使用新的 Bpel 工作流程时。

我正在尝试添加之前创建的合作伙伴链接,但我无法调用合作伙伴链接(即使我尝试过加法、减法、乘法)。

我收到以下错误。

../WS_NumberAdderCarbon/AdderProcess/AdderProcessArtifacts.wsdl的导入位置不是 受此实现支持

我的 BPEL 代码:-

<bpel:process name="AdderProcess1"
         targetNamespace="http://NumberAdder.com"
         suppressJoinFailure="yes"
         xmlns:tns="http://NumberAdder.com"
         xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
         >

    <!-- Import the client WSDL -->
    <bpel:import namespace="http://NumberAdder.com" location="../WS_NumberAdderCarbon/AdderProcess/AdderProcessArtifacts.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"></bpel:import>
    <bpel:import location="AdderProcess1Artifacts.wsdl" namespace="http://NumberAdder.com" 
            importType="http://schemas.xmlsoap.org/wsdl/" />

    <!-- ================================================================= -->         
    <!-- PARTNERLINKS                                                      -->
    <!-- List of services participating in this BPEL process               -->
    <!-- ================================================================= -->         
    <bpel:partnerLinks>
        <!-- The 'client' role represents the requester of this service. -->
        <bpel:partnerLink name="client"
                     partnerLinkType="tns:AdderProcess1"
                     myRole="AdderProcess1Provider"
                     />
        <bpel:partnerLink name="fsdf" partnerLinkType="tns:AdderProcess" partnerRole="AdderProcessProvider"></bpel:partnerLink>
        <bpel:partnerLink name="getaddition" partnerLinkType="tns:AdderProcess" partnerRole="AdderProcessProvider"></bpel:partnerLink>
    </bpel:partnerLinks>

    <!-- ================================================================= -->         
    <!-- VARIABLES                                                         -->
    <!-- List of messages and XML documents used within this BPEL process  -->
    <!-- ================================================================= -->         
    <bpel:variables>
        <!-- Reference to the message passed as input during initiation -->
        <bpel:variable name="input"
                  messageType="tns:AdderProcess1RequestMessage"/>

        <!-- 
          Reference to the message that will be returned to the requester
          -->
        <bpel:variable name="output"
                  messageType="tns:AdderProcess1ResponseMessage"/>
        <bpel:variable name="fff" element="tns:AdderProcessRequest"></bpel:variable>
        <bpel:variable name="getvvar1" element="tns:AdderProcessRequest"></bpel:variable>
        <bpel:variable name="getvar2" element="tns:AdderProcessResponse"></bpel:variable>
    </bpel:variables>

    <!-- ================================================================= -->         
    <!-- ORCHESTRATION LOGIC                                               -->
    <!-- Set of activities coordinating the flow of messages across the    -->
    <!-- services integrated within this business process                  -->
    <!-- ================================================================= -->         
    <bpel:sequence name="main">

        <!-- Receive input from requester. 
             Note: This maps to operation defined in AdderProcess1.wsdl 
             -->
        <bpel:receive name="receiveInput" partnerLink="client"
                 portType="tns:AdderProcess1"
                 operation="process" variable="input"
                 createInstance="yes"/>

        <!-- Generate reply to synchronous request -->

        <bpel:invoke name="Invoke" partnerLink="fsdf">
            <bpel:toParts>
                <bpel:toPart part="payload" fromVariable="getvar2"></bpel:toPart>
            </bpel:toParts>
            <bpel:fromParts>
                <bpel:fromPart part="payload" toVariable="getvvar1"></bpel:fromPart>
            </bpel:fromParts>
        </bpel:invoke>
        <bpel:reply name="replyOutput" 
               partnerLink="client"
               portType="tns:AdderProcess1"
               operation="process" 
               variable="output"
               />
    </bpel:sequence>
</bpel:process>

【问题讨论】:

    标签: wsdl wso2 bpel wso2carbon apache-ode


    【解决方案1】:

    在 BPEL Packages 中,在导入或调用新的 webservice 或 wsdl 时,将此 wsdl 放入 BPEL Packge 目录并转到 BPEL 的源视图并更正 BPEL 导入标记中新添加的 wsdl 位置。

    `例如:-

     `<bpel:import namespace="http://NumberAdder.com" location="AdderProcessArtifacts.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"></bpel:import>`  
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-17
      • 1970-01-01
      • 1970-01-01
      • 2013-01-08
      • 1970-01-01
      相关资源
      最近更新 更多