You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by sdan <sd...@yahoo.com> on 2007/05/10 20:05:29 UTC

Simple helloworld bpel is not working!!

I have a simple bpel su that just takes an input and returns the same input
back to the client.
I exposed that bpel su using a http consumer su (please see the files
below). when I call the
webservice from my client code I get an error that says

WARN  - DefaultBroker                  - ServiceName
({http://eclipse.org/bpel/s
ample}HelloWorld) specified for routing, but can't find it registered

Any idea how to fix the problem?
Thanks.
-Dan

************************************HelloWorld.bpel*************************************
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<bpws:process
xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
xmlns:tns="http://eclipse.org/bpel/sample" exitOnStandardFault="yes"
name="HelloWorld" suppressJoinFailure="yes"
targetNamespace="http://eclipse.org/bpel/sample">
  <bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
location="HelloWorld.wsdl" namespace="http://eclipse.org/bpel/sample"/>
  <bpws:partnerLinks>
    <bpws:partnerLink myRole="HelloWorldProvider" name="client"
partnerLinkType="tns:HelloWorld"/>
  </bpws:partnerLinks>
  <bpws:variables>
    <bpws:variable messageType="tns:HelloWorldRequestMessage" name="input"/>
    <bpws:variable messageType="tns:HelloWorldResponseMessage"
name="output"/>
  </bpws:variables>
  <bpws:sequence name="main">
    <bpws:receive createInstance="yes" name="receiveInput"
operation="process" partnerLink="client" portType="tns:HelloWorld"
variable="input"/>
    <bpws:assign name="Assign" validate="no">
      <bpws:copy>
        <bpws:from part="payload" variable="input">
          <bpws:query
queryLanguage="http://www.w3.org/TR/1999/REC-xpath-19991116"><![CDATA[/tns:input]]></bpws:query>
        </bpws:from>
        <bpws:to part="payload" variable="output">
          <bpws:query
queryLanguage="http://www.w3.org/TR/1999/REC-xpath-19991116"><![CDATA[/tns:result]]></bpws:query>
        </bpws:to>
      </bpws:copy>
    </bpws:assign>
    <bpws:reply name="replyOutput" operation="process" partnerLink="client"
portType="tns:HelloWorld" variable="output"/>
  </bpws:sequence>
</bpws:process>
**********************************************************************************

******************************
HelloWorld.wsdl***************************************
<?xml version="1.0"?>
<definitions name="HelloWorld"
        targetNamespace="http://eclipse.org/bpel/sample"
        xmlns:tns="http://eclipse.org/bpel/sample"
        xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/"
        xmlns="http://schemas.xmlsoap.org/wsdl/"
        >

<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     TYPE DEFINITION - List of types participating in this BPEL process 
     The BPEL Designer will generate default request and response types
     but you can define or import any XML Schema type and use them as part 
     of the message types.
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-->    
    <types>
        <schema attributeFormDefault="unqualified"
elementFormDefault="qualified" 
                targetNamespace="http://eclipse.org/bpel/sample" 
                xmlns="http://www.w3.org/2001/XMLSchema">

            <element name="HelloWorldRequest">
                <complexType>
                    <sequence>
                        <element name="input" type="string"/>
                    </sequence>
                </complexType>
            </element>

            <element name="HelloWorldResponse">
                <complexType>
                    <sequence>
                        <element name="result" type="string"/>
                    </sequence>
                </complexType>
            </element>
        </schema>
    </types>


<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     MESSAGE TYPE DEFINITION - Definition of the message types used as 
     part of the port type defintions
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-->    
    <message name="HelloWorldRequestMessage">
        <part name="payload" element="tns:HelloWorldRequest"/>
    </message>
    <message name="HelloWorldResponseMessage">
        <part name="payload" element="tns:HelloWorldResponse"/>
    </message>

<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     PORT TYPE DEFINITION - A port type groups a set of operations into
     a logical service unit.
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-->    

    <!-- portType implemented by the HelloWorld BPEL process -->
    <portType name="HelloWorld">
        <operation name="process">
            <input  message="tns:HelloWorldRequestMessage" />
            <output message="tns:HelloWorldResponseMessage"/>
        </operation>
    </portType>
  

<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     PARTNER LINK TYPE DEFINITION
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-->    
    <plnk:partnerLinkType name="HelloWorld">
        <plnk:role name="HelloWorldProvider" portType="tns:HelloWorld"/>
    </plnk:partnerLinkType>
    
</definitions>
***********************************************************************************

********************************xbean.xml for http consumer
**************************
<beans xmlns:http="http://servicemix.apache.org/http/1.0"
       xmlns:hs="http://eclipse.org/bpel/sample">

  <http:endpoint service="hs:HelloWorld"
                 endpoint="HelloWorld"
                 targetService="hs:HelloWorld"
                 role="consumer" 
                 locationURI="http://0.0.0.0:8192/example/"
                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
                 soap="true" />             

</beans>
**********************************************************************************

-- 
View this message in context: http://www.nabble.com/Simple-helloworld-bpel-is-not-working%21%21-tf3723242s12049.html#a10418587
Sent from the ServiceMix - User mailing list archive at Nabble.com.