incubator-agila-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mirco Jeske <m...@mircojeske.de>
Subject Re: BPEL and Java Web Services
Date Fri, 19 Aug 2005 15:02:08 GMT
Hi Matthieu,

great. Thank you for that information. I'll dive into axis more deeply 
now....

best, Mirco


Matthieu Riou schrieb:

>Hi Mirco,
>
>Here you'll rely on the tool you're using to show your java class as a
>web service. For example with Axis, you could have a method returning
>an Order instance. Your Order class could be defined like :
>
>public class Order {
>   private String shippmentId;
>   private String productId;
>   private int quantity;
>}
>
>And then Axis can serialize this class in XML to the a structure like
>the one I've shown in my previous reply. You'll just have to define
>Axis serializer and deserializer for this class.
>
>For more information and if you're using Axis, you should check their
>documentation. If you're using another tool, they surely provide the
>same kind of functionality.
>
>Cheers,
>
>Matthieu.
>
>P.S. Please for other questions keep the agila list in cc so others
>can get the information I'm giving to you.
>
>On 8/19/05, Mirco Jeske <mail@mircojeske.de> wrote:
>  
>
>> Hi Matthieu,
>> 
>> thank you for your answer. What do you mean with a "complex type"? The only
>>data type I know containing more than just one value is a collection.
>> Let's say I wrote a java class with one method like this:
>> 
>> public String getEmployeeEmail(String employeeID) {
>>     .... some code ....
>>     return emailAddress;
>> }
>> 
>> That method return the email address but I lost the employeeID which I
>>would like to use as a poperty in my correlationSet.
>> What if I return e.g. an ArrayList? How would I serialize it with BPEL?
>> 
>> Any hints for a newbie?
>> 
>> Thanks, Mirco
>> 
>> Matthieu Riou schrieb: 
>> Hi Mirco,
>>
>>Your service should just return a "complex type" and your correlation
>>will be extracted using the property alias you defined. Let's say your
>>web service returns a structure that looks like this (once serialized
>>in XML) :
>>
>><order>
>> <shippmentId>ZZ1284</shippmentId>
>> <productId>286</productId>
>> <quantity>5</quantity>
>></order>
>>
>>If a correlation is composed of the shippmentId and the productId,
>>you'll just have to declare two properties with alias
>>/order/shippmentId and /order/productId.
>>
>>Cheers,
>>
>>Matthieu.
>>
>>
>>On 8/19/05, Mirco Jeske <mail@mircojeske.de> wrote:
>> 
>> 
>> Hi list,
>>
>>how would I get correlations to work when using java web services? Since
>>these java classes can only return one value (even a more complex type)
>>I have no idea how to get an additional information for a
>>correlationsSet....
>>
>>does onyone know a solution for this?
>>
>>thanx, Mirco
>>
>> 
>> 
>> 
>>
>>    
>>
>
>  
>


Mime
View raw message