ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Chodos <davecho...@gmail.com>
Subject Problem with simple Invoke example
Date Tue, 19 Jan 2010 22:51:16 GMT
Hi,
   I am working on getting a very simple invocation example working, but am
encountering problems getting it to deploy on ODE. The process simply takes
a string and then invokes the HelloWorld example (included in with ODE),
with the given string as input. The editor I'm using (NetBeans) doesn't show
any errors in the BPEL file, and the BPEL and WSDL files compile fine using
bpelc. However, when I try to deploy it (by placing the files in an
InvokeTest directory within ode/WEB-INF/processes), although a dummy
InvokeTest.deployed file is created in the processes directory, the process
is not actually deployed. That is, it does not show up in the web front-end
for ODE, and calling the process (using SoapUI) results in a "Service cannot
be found" error.

   I have included the relevant files (BPEL, WSDL, deploy.xml) at the end of
this email, so that if I've made some simple error, then it can be spotted
and fixed. Thanks in advance for any help you can provide.

Dave Chodos

 *** InvokeTest.bpel ***
<?xml version="1.0" encoding="UTF-8"?>
<process
    name="Invoke"
    targetNamespace="http://enterprise.netbeans.org/bpel/InvokeTest/Invoke"
    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:sxt="
http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
    xmlns:sxed="
http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
    xmlns:tns="http://enterprise.netbeans.org/bpel/InvokeTest/Invoke">
    <import namespace="http://j2ee.netbeans.org/wsdl/InvokeTest"
location="InvokeTest.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
    <import namespace="http://ode/bpel/unit-test.wsdl"
location="HelloWorld2.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
    <partnerLinks>
        <partnerLink name="PartnerLink2" xmlns:tns="
http://ode/bpel/unit-test.wsdl" partnerLinkType="tns:HelloPartnerLinkType"
partnerRole="you"/>
        <partnerLink name="PartnerLink1" xmlns:tns="
http://j2ee.netbeans.org/wsdl/InvokeTest" partnerLinkType="tns:InvokeTest"
myRole="InvokeTestPortTypeRole"/>
    </partnerLinks>
    <variables>
        <variable name="HelloOut" xmlns:tns="http://ode/bpel/unit-test.wsdl"
messageType="tns:HelloMessage"/>
        <variable name="HelloIn" xmlns:tns="http://ode/bpel/unit-test.wsdl"
messageType="tns:HelloMessage"/>
        <variable name="InvokeTestOpOut" xmlns:tns="
http://j2ee.netbeans.org/wsdl/InvokeTest"
messageType="tns:InvokeTestOpResponse"/>
        <variable name="InvokeTestOpIn" xmlns:tns="
http://j2ee.netbeans.org/wsdl/InvokeTest"
messageType="tns:InvokeTestOpRequest"/>
    </variables>
    <sequence>
        <receive name="Receive1" createInstance="yes"
partnerLink="PartnerLink1" operation="InvokeTestOp" xmlns:tns="
http://j2ee.netbeans.org/wsdl/InvokeTest" portType="tns:InvokeTestPortType"
variable="InvokeTestOpIn"/>
        <assign name="Assign1">
            <copy>
                <from variable="InvokeTestOpIn" part="part1"/>
                <to variable="HelloIn" part="TestPart"/>
            </copy>
        </assign>
        <invoke name="Invoke1" partnerLink="PartnerLink2" operation="hello"
xmlns:tns="http://ode/bpel/unit-test.wsdl" portType="tns:HelloPortType"
inputVariable="HelloIn" outputVariable="HelloOut"/>
        <assign name="Assign2">
            <copy>
                <from variable="HelloOut" part="TestPart"/>
                <to variable="InvokeTestOpOut" part="part1"/>
            </copy>
        </assign>
        <reply name="Reply1" partnerLink="PartnerLink1"
operation="InvokeTestOp" xmlns:tns="http://j2ee.netbeans.org/wsdl/InvokeTest"
portType="tns:InvokeTestPortType" variable="InvokeTestOpOut"/>
    </sequence>
</process>

 *** InvokeTest.wsdl ***
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="InvokeTest" targetNamespace="
http://j2ee.netbeans.org/wsdl/InvokeTest"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="
http://j2ee.netbeans.org/wsdl/InvokeTest" xmlns:plnk="
http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/">
    <types/>
    <message name="InvokeTestOpRequest">
        <part name="part1" type="xsd:string"/>
    </message>
    <message name="InvokeTestOpResponse">
        <part name="part1" type="xsd:string"/>
    </message>
    <portType name="InvokeTestPortType">
        <operation name="InvokeTestOp">
            <input name="input1" message="tns:InvokeTestOpRequest"/>
            <output name="output1" message="tns:InvokeTestOpResponse"/>
        </operation>
    </portType>
    <binding name="InvokeTestBinding" type="tns:InvokeTestPortType">
        <soap:binding style="rpc" transport="
http://schemas.xmlsoap.org/soap/http"/>
        <operation name="InvokeTestOp">
            <soap:operation/>
            <input name="input1">
                <soap:body use="literal" namespace="
http://j2ee.netbeans.org/wsdl/InvokeTest"/>
            </input>
            <output name="output1">
                <soap:body use="literal" namespace="
http://j2ee.netbeans.org/wsdl/InvokeTest"/>
            </output>
        </operation>
    </binding>
    <service name="InvokeTestService">
        <port name="InvokeTestPort" binding="tns:InvokeTestBinding">
            <soap:address location="http://localhost:
${HttpDefaultPort}/InvokeTestService/InvokeTestPort"/>
<!-- note: I have changed the above "localhost:DefaultPort" to match the
actual location of the service on my server -->
        </port>
    </service>
    <plnk:partnerLinkType name="InvokeTest">
        <!-- A partner link type is automatically generated when a new port
type is added. Partner link types are used by BPEL processes.
In a BPEL process, a partner link represents the interaction between the
BPEL process and a partner service. Each partner link is associated with a
partner link type.
A partner link type characterizes the conversational relationship between
two services. The partner link type can have one or two roles.-->
        <plnk:role name="InvokeTestPortTypeRole"
portType="tns:InvokeTestPortType"/>
    </plnk:partnerLinkType>
</definitions>

 *** deploy.xml ***
<?xml version="1.0" encoding="UTF-8"?>
<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
    xmlns:pns="http://enterprise.netbeans.org/bpel/InvokeTest/Invoke"
    xmlns:wns="http://j2ee.netbeans.org/wsdl/InvokeTest">
    <process name="pns:Invoke">
        <active>true</active>
        <provide partnerLink="PartnerLink1">
            <service name="wns:InvokeTestService" port="InvokeTestPort"/>
        </provide>
        <invoke partnerLink="PartnerLink2">
            <service xmlns:tns="http://ode/bpel/unit-test.wsdl"
name="tns:HelloService" port="HelloPort"/>
        </invoke>
    </process>
</deploy>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message