[Users] [SE-EIP] Routing based on WSDL operation not working

mathias.beldame mathias.beldame at ebmwebsourcing.com
Wed Mar 16 11:00:04 CET 2011


You must have only 1 element <test-operation> if you have 2 consume sections.
If the condition matches, the message will be routed to the first service, the second one is the service used by default.

Secondly, the operation for the xslt component must be:

Code:
<petalsCDK:operation xmlns:genns1="http://petals.ow2.org/components/xslt/version-2">genns1:transform</petalsCDK:operation>



I think you jbi.xml should be:


Code:
<?xml version="1.0" encoding="UTF-8"?>
<jbi:jbi version="1.0" 
	xmlns:eip="http://petals.ow2.org/components/eip/version-2"
	xmlns:generatedNs="http://veolia.ban.com/eau/faisabilite/petals/service/FAIS005/v01"
	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">
	
	<jbi:services binding-component="false">
		<jbi:provides 		
			interface-name="generatedNs:FAIS005-RoutageOperation_Itf"
			service-name="generatedNs:FAIS005-RoutageOperation_EIP"
			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>FAIS005-RoutageOperation_01.wsdl</petalsCDK:wsdl>
		
			<!-- Component specific elements -->	
			<eip:eip>router</eip:eip>
			<eip:test-operation>{http://veolia.ban.com/eau/faisabilite/petals/service/FAIS005/v01}operation-1</eip:test-operation>
			<!--<eip:test-operation>{http://veolia.ban.com/eau/faisabilite/petals/service/FAIS005/v01}operation-2</eip:test-operation>-->
			<eip:fault-robust>false</eip:fault-robust>
			<eip:exception-robust>false</eip:exception-robust>
			<eip:attachment-mode>false</eip:attachment-mode>
		</jbi:provides>
		
		<!-- Consumed project 1 ( test = //toto
 ) -->
		<jbi:consumes
			interface-name="iConsumeNsPrefix:XsltInterface"
			service-name="iConsumeNsPrefix:FAIS005-Op1"
			xmlns:iConsumeNsPrefix="http://petals.ow2.org/components/xslt/version-2">
			
			<!-- CK specific fields for this consume -->
			<petalsCDK:operation xmlns:genns1="http://petals.ow2.org/components/xslt/version-2">genns1:transform</petalsCDK:operation>
			<petalsCDK:mep>InOut</petalsCDK:mep>
			<petalsCDK:timeout>30000</petalsCDK:timeout>
		</jbi:consumes>
		
		<!-- Consumed project 2 ( Default ) -->
		<jbi:consumes
			interface-name="iConsumeNsPrefix:XsltInterface"
			service-name="iConsumeNsPrefix:FAIS005-Op2"
			xmlns:iConsumeNsPrefix="http://petals.ow2.org/components/xslt/version-2">
			
			<!-- CK specific fields for this consume -->
			<petalsCDK:operation xmlns:genns1="http://petals.ow2.org/components/xslt/version-2">genns1:transform</petalsCDK:operation>
			<petalsCDK:mep>InOut</petalsCDK:mep>
			<petalsCDK:timeout>30000</petalsCDK:timeout>
		</jbi:consumes>
	</jbi:services>
</jbi:jbi>






-------------------- 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=31125#31125

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






More information about the Users mailing list