[Users] BPEL - Failed to find provided service

Nat soporifik27 at free.fr
Wed Mar 16 10:40:22 CET 2011


Hi Pierrot,

I'm using the last release of the BPEL component.

Here is my jbi.xml:


Code:
<?xml version="1.0" encoding="UTF-8"?>
<!-- 
	JBI descriptor for the Petals' "petals-se-bpel" component (BPEL).
	Originally created for the version 1.0 of the component.
 -->
<jbi:jbi version="1.0" 
	xmlns:bpel-engine="http://petals.ow2.org/components/petals-bpel-engine/version-1"
	xmlns:generatedNs="http://www.test.com/petals/bpel"
	xmlns:jbi="http://java.sun.com/xml/ns/jbi"
	xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-5"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	
	<!-- Import a Service into Petals or Expose a Petals Service => use a BC. -->
	<jbi:services binding-component="false">
	
		<!-- Import a Service into Petals => provides a Service. -->
		<jbi:provides 		
			interface-name="generatedNs:getWeatherUSA-2"
			service-name="generatedNs:getWeatherUSAService-2"
			endpoint-name="autogenerate">
	
			<!-- CDK specific elements -->
			<petalsCDK:timeout>30000</petalsCDK:timeout>
			<petalsCDK:validate-wsdl>true</petalsCDK:validate-wsdl>
			<petalsCDK:forward-security-subject>false</petalsCDK:forward-security-subject>
			<petalsCDK:forward-message-properties>false</petalsCDK:forward-message-properties>
			<petalsCDK:forward-attachments>false</petalsCDK:forward-attachments>
			<petalsCDK:wsdl>concreteProcess.wsdl</petalsCDK:wsdl>
		
			<!-- Component specific elements -->	
			<bpel-engine:bpel>process.bpel</bpel-engine:bpel>
			<bpel-engine:poolsize>0</bpel-engine:poolsize>			
		</jbi:provides>
	</jbi:services>
</jbi:jbi>



I changed "<petalsCDK:wsdl>process.wsdl</petalsCDK:wsdl>" to "<petalsCDK:wsdl>concreteProcess.wsdl</petalsCDK:wsdl>" as adviced in another post.

And here is my bpel file:


Code:
<process name="getWeatherUSA-2"
         targetNamespace="http://www.test.com/petals/bpel"
         suppressJoinFailure="no"
         xmlns:tns="http://www.test.com/petals/bpel"
         xmlns:srv="http://www.test.com/petals/bpel"
         xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
         xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:ns1="http://www.test.com/petals/bpelArtifacts">

    <!-- Import the client WSDL -->
    <bpel:import namespace="http://www.test.com/petals/bpelArtifacts" location="processArtifacts.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"></bpel:import>
    <bpel:import namespace="http://www.webserviceX.NET" location="usweather.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"></bpel:import>
    <import location="concreteProcess.wsdl" namespace="http://www.test.com/petals/bpel" 
	        importType="http://schemas.xmlsoap.org/wsdl/" />
	        
	<import location="process.wsdl" namespace="http://www.test.com/petals/bpel" 
	        importType="http://schemas.xmlsoap.org/wsdl/" />
         
    <!-- ================================================================= -->         
    <!-- PARTNERLINKS                                                      -->
    <!-- List of services participating in this BPEL process               -->
    <!-- ================================================================= -->         
    <partnerLinks>
        <!-- The 'client' role represents the requester of this service. -->
        <partnerLink name="client"
                     partnerLinkType="tns:getWeatherUSA-2"
                     myRole="getWeatherUSA-2Provider"
                     />
        <bpel:partnerLink name="WeatherPL" partnerLinkType="ns1:WeatherLT-Get" myRole="WeatherLT-Get"></bpel:partnerLink>
    </partnerLinks>
  
    <!-- ================================================================= -->         
    <!-- VARIABLES                                                         -->
    <!-- List of messages and XML documents used within this BPEL process  -->
    <!-- ================================================================= -->         
    <variables>
        <!-- Reference to the message passed as input during initiation -->
        <variable name="input"
                  messageType="tns:getWeatherUSA-2RequestMessage"/>
                  
        <!-- 
          Reference to the message that will be returned to the requester
          -->
        <variable name="output"
                  messageType="tns:getWeatherUSA-2ResponseMessage"/>
    </variables>

    <!-- ================================================================= -->         
    <!-- ORCHESTRATION LOGIC                                               -->
    <!-- Set of activities coordinating the flow of messages across the    -->
    <!-- services integrated within this business process                  -->
    <!-- ================================================================= -->         
    <sequence name="main">
        
        <!-- Receive input from requester. 
             Note: This maps to operation defined in processName.wsdl 
             -->
        <receive name="receiveInput" partnerLink="client"
                 portType="tns:getWeatherUSA-2"
                 operation="process" createInstance="no" variable="input"/>
                 
        <assign validate="no" name="Assign">
            <copy>
                <from>$input.payload/tns:input</from>
                <to>$output.payload/tns:result</to>
            </copy>
        </assign>
        
        <!-- Generate reply to synchronous request -->
        <bpel:invoke name="Invoke" partnerLink="WeatherPL" operation="process" portType="tns:getWeatherUSA-2" inputVariable="input" outputVariable="output"></bpel:invoke>
        <reply name="replyOutput" 
               partnerLink="client"
               portType="tns:getWeatherUSA-2"
               operation="process" 
               variable="output"
               />
    </sequence>
</process>






-------------------- m2f --------------------

Subscribe/Unsubscribe emails notifications.

Response to this email will be posted on the Petals forum.
Please delete the existing text before responding :)

Read the topic online:
http://forum.petalslink.com/viewtopic.php?p=30512#30512

-------------------- m2f --------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20110316/c187aec5/attachment.htm>


More information about the Users mailing list