wsdlbpelwso2apache-ode

Import wsdl error in BPEL using WSO2 developer Studio


I am working on the BPEL examples in Eclipse WSO2 Developer studio ,

I created 3 BPEL workflows Addition,subtraction, Multiplication.

Now i want call those BPEL flows While i am working with new Bpel work flow.

I am trying to add partner link which was created ,earlier but i am unable to invoke the partnerlink(even i tried with addition,subtraction,multiplication) .

I am getting the follwoing error.

The import location of ../WS_NumberAdderCarbon/AdderProcess/AdderProcessArtifacts.wsdl is not supported by this implementation

My BPEL CODE:-

<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>

Solution

  • In BPEL Packages , while importing or calling new webservice or wsdl , put this wsdl into the BPEL Packge floder and go to source view of BPEL and correct the new added wsdl location in BPEL import tag.

    `Ex:-

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