[Users] Utiliser le retour d'un WS (routing-slip)

cippit_b [via Petals ESB] ml-node+3028257-537281641-385891 at n3.nabble.com
Mon Jun 6 02:44:30 CEST 2011



J'ai du rêver lorsque je faisais mes tests..

Il semblerai que le principe du routing slip, soit qu'avec un jbi de ce type
associé : 


jbi wrote:
> 
> <?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://test"
> 	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:Calculatrice"
> 			service-name="generatedNs:Calculatrice"
> 			endpoint-name="CalculatricePort">
> 	
> 			
> 			<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>Calculatrice.wsdl</petalsCDK:wsdl>
> 		
> 				
> 			<eip:eip>routing-slip</eip:eip>
> 			<eip:fault-robust>false</eip:fault-robust>
> 			<eip:exception-robust>false</eip:exception-robust>
> 			<eip:attachment-mode>false</eip:attachment-mode>
> 		</jbi:provides>
> 		
> 		
> 		<jbi:consumes
> 			interface-name="iConsumeNsPrefix:Modifier"
> 			service-name="iConsumeNsPrefix:Modifier"
> 			endpoint-name="ModifierPort"
> 			xmlns:iConsumeNsPrefix="http://test">
> 			
> 			
> 			<petalsCDK:timeout>30000</petalsCDK:timeout>
> 			<petalsCDK:operation
> xmlns:addSentenceNs="http://test">addSentenceNs:addSentence</petalsCDK:operation>
> 			<petalsCDK:mep>InOut</petalsCDK:mep>
> 		</jbi:consumes>
> 		
> 		
> 		<jbi:consumes
> 			interface-name="iConsumeNsPrefix:Modifier"
> 			service-name="iConsumeNsPrefix:Modifier"
> 			endpoint-name="ModifierPort"
> 			xmlns:iConsumeNsPrefix="http://test">
> 			
> 			
> 			<petalsCDK:timeout>30000</petalsCDK:timeout>
> 			<petalsCDK:operation
> xmlns:addSignNs="http://test">addSignNs:addSign</petalsCDK:operation>
> 			<petalsCDK:mep>InOut</petalsCDK:mep>
> 		</jbi:consumes>
> 	</jbi:services>
> </jbi:jbi>
> 

Si j'essaye d'utiliser une méthode AddIntegers qui serait définie par
Calculatrice et qui prendrait 2 integers en paramètres.

Qu'en réalité ces paramètres seraient transmis à l’opération addSentence
puis le retour vers addSign
et qu'en réponse finale je récupèrerai le retour de addSign.

Ce que je souhaite moi, c'est de récupérer le retour de l'opération
AddIntegers pour par la suite rediriger le retour vers addSentence puis
addSign, puis enfin récupérer le résultats..
Il y a t'il un moyen de faire ceci ?

Et si oui, dans un second temps pourrai-je assigner une méthode de ma
calculatrice à des fonctions différente  ? (Ex : AddInteger -> 1 -> 2 ->
res, et DivideIntegers -> 3 -> 5 -> 6 -> 1.)

_______________________________________________
If you reply to this email, your message will be added to the discussion below:
http://forum.petalslink.com/Utiliser-le-retour-d-un-WS-routing-slip-tp3010661p3028257.html
To start a new topic under Users (get help, provide help), email ml-node+2681628-1333396262-385891 at n3.nabble.com
To unsubscribe from Users (get help, provide help), visit http://forum.petalslink.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2681628&code=dXNlcnNAZm9ydW0ucGV0YWxzbGluay5vcmd8MjY4MTYyOHwtOTE3MDU0NjU4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20110605/32fc2d45/attachment.htm>


More information about the Users mailing list