Dear all,
I'm sorry, may be my question not clear. I think we can't use the
pipes-and-filters this component. I will detail describe we scence.
We have three 'old' webservice ,there are 'create address' , 'create abc' ,
'create contact' . now we need export a 'new' webservice 'create customer'
First , the initData need go to 'create address' ,the webservice will create it
and reutrn a 'addressID',
Second , if the 'addressID' is right , so we will put the address and initData
together. and send to 'create abc' webserivce. the webservice will return
'abcID'
Third, we will put the 'addressID','abcID' and initData together. send to
'create contact' webservice, the webservice will return 'contactID'
Last, we will return all result 'addressID','abcID','contactID' to the request
user.
above flow are synchronous.
I tried use the 'pipes and filters' component when the 'create address'
webservice return 'addressID' success, the pipes component will send the
seconde dirrect('create abc'),but now the data only the 'addressID' not include
initData. So it's failture.
I tried use the aggregator component , aggregator inidData and addressID, but
also failture. because they are not similare.
Following are some webserivce data(received and return).
'create address' interface:
request: <xml><name>fred</name><age>0</age><detailAddress>Hong
Kong</detailAddress></xml> response: <xml><addressID>123456</addressID></xml>
'create abc' interface:
request: <xml><name>fred</name><age>0</age><abcDatail>ABC</abcDatail></xml>
response: <xml><abcID>654321</abcID></xml>
'create contact' interface:
request:
<xml><name>fred</name><age>0</age><contactName>alex</contactName></xml>
response: <xml><contactID>abc123</contactID></xml>
we need export new interface 'create customer':
request: <xml><name>fred</name><age>0</age><detailAddress>Hong
Kong</detailAddress><abcDatail><ABC/abcDatail><contactName>alex</contactName></xml>
response:
<xml><addressID></addressID><abcID>654321</abcID><contactID>abc123</contactID></xml>
Hope everybody could sufferance my long question. My english so bad.
Thanks and regards
Fred
From: Charles Moulliard
Date: 2010-09-14 17:21:41
To: users
Cc:
Subject: Re: Re: Fw: How replace BPEL on SMX ?
You can use this pattern in camel :
http://camel.apache.org/pipes-and-filters.html
with the component cxf
http://camel.apache.org/cxf.html
On Tue, Sep 14, 2010 at 11:04 AM, Fred <[email protected]> wrote:
> Thanks your reply.
>
> I means that i need export a new webservice 'Create Customer', It receive
> 'Data' and return '8. return address ID + ABC ID + Contact ID'. It's a
> synchronous interface.
>
> So, i want to know if i using camel, what kinds of eip component i need.
>
> Fred
>
>
>
>
> From: Charles Moulliard
> Date: 2010-09-14 16:02:37
> To: users
> Cc:
> Subject: Re: Fw: How replace BPEL on SMX ?
> For sure that camel can help you to design that easily. As you mention
> camel implements Enterprise Integration Patterns (EIP), that means
> that you can route, filter, enrich, aggregate, splits the messages
> received.
> Depending how you will expose your services, you can design camel
> routes like that :
> from(Data).to(bean:createAddress).to(direct:step1)
> from(direct:step1).to(bean:createABC).to(direct:step2)
> from(direct:step2).to(bean:createContact).to(jms:queue:A)
> Regards,
> Charles Moulliard
> Senior Enterprise Architect (J2EE, .NET, SOA)
> Apache Camel - Karaf - ServiceMix Committer
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Blog : http://cmoulliard.blogspot.com |?Twitter :
> http://twitter.com/cmoulliard
> Linkedin : http://www.linkedin.com/in/charlesmoulliard | Skype: cmoulliard
> 2010/9/14 Fred <[email protected]>:
>> who can help me ?
>>
>>
>>
>>
>> From: me
>> Date: 2010-09-13 12:06:49
>> To: users
>> Cc:
>> Subject: How replace BPEL on SMX ?
>>
>> hi,all.
>>
>> I'm a new smx. Our company have some webservice. I want to recomposition
>> these webservice. and export a new webservice. For example, our comany have
>> following webservice.
>> 1. Create Address
>> 2. Create ABC
>> 3. Create Contact
>> now i need 燼 new ?create customer' interface, this interface include above
>> three interface , The new interface will above three interface by following
>> flow.
>> Flow :
>>
>> Data --> 1. create address --> 2. return address ID -->
>> 3. address ID + Data --> 4. create ABC --> 5. return ABC ID -->
>> 6. ABC ID + address ID + Data --> 7. create contact --> 8. return address ID
>> + ABC ID + Contact ID
>>
>> I know if i using Apache ODE for smx's bpel engint. it's easy. But I want to
>> know another ways solve this question. Can i using EIP or Camel solve it ?
>>
>> Thanks and Regards,
>> Fred
>>
>