You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by sic <si...@naver.com> on 2010/04/09 10:07:37 UTC

combination of two cxf-se

I don't have much experience in cxf and webservice.

I'm operating two simple webservices using cxf-bc and cxf-se in
servicemix-3.2.
And two of webservices are entirely different in terms of business.

I really wonder if it is possible to make a combination of this two
webservices.
For example, cxf-bc1 -> cxf-se1 -> cxf-se2 then return through the cxf-bc1.
or cxf-bc1 -> cxf-se1 -> saxon -> cxf-se2 and so on.

regards,
sic
-- 
View this message in context: http://old.nabble.com/combination-of-two-cxf-se-tp28188970p28188970.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: combination of two cxf-se

Posted by sic <si...@naver.com>.
I'll take a test case about cxf proxy as you said.
And I'll apply to the 4.X version of servicemix-saxon by using servicemix
3.3.X.
Thank you for your kind answer.

sic


Freeman Fang wrote:
> 
> Hi,
> 
> My comment inline.
> On 2010-4-9, at 下午7:04, sic wrote:
> 
>>
>> Thanks, Freeman.
>> But in your advice [1], it seems to get a problem within my case, I  
>> think,
>> since the original service(cxf-bc1->cxf-se1) should not be affected  
>> by this
>> combination.
> Use proxy in cxf-se1 won't affect cxf-bc1->cxf-se1 at all, you may  
> need take a look at CxfSeClientProxyTest[1] to see how it works
> [1]https://svn.apache.org/repos/asf/servicemix/components/engines/servicemix-cxf-se/trunk/src/test/java/org/apache/servicemix/cxfse/CxfSeClientProxyTest.java
>>
>> In case of [2], it's not likely to apply to servicemix 3.X(only for  
>> the 4.X
>> version of servicemix-saxon)  although it's the best suggestion.
> Could you use smx3.3.x, as we share components between smx4.x and  
> smx3.3.x, so it should also work with smx3.3.x
> Also, as "XSLT Proxy" from [2] mentioned,  you can use EIP  
> StaticRoutingSlip instead, so I believe you also can do it with camel.
> [2]http://servicemix.apache.org/servicemix-saxon.html
> 
> Freeman
>>
>> Is it suitable to use a routing component(eip or camel)?
>>
>> Any alternative ways or advice for my erroneous understanding..?
>>
>> sic
>>
>>
>> Freeman Fang wrote:
>>>
>>> Hi,
>>>
>>> My comment inline
>>> On 2010-4-9, at 下午4:07, sic wrote:
>>>
>>>>
>>>> I don't have much experience in cxf and webservice.
>>>>
>>>> I'm operating two simple webservices using cxf-bc and cxf-se in
>>>> servicemix-3.2.
>>>> And two of webservices are entirely different in terms of business.
>>>>
>>>> I really wonder if it is possible to make a combination of this two
>>>> webservices.
>>>> For example, cxf-bc1 -> cxf-se1 -> cxf-se2 then return through the
>>>> cxf-bc1.
>>> Yes, you can inject proxy of cxf-se2 to cxf-se1, then you can invoke
>>> cxf-se2 from cxf-se1 just like normal java invocation, take a look at
>>> "Proxies" part from [1]
>>>
>>> [1]http://servicemix.apache.org/servicemix-cxf-se.html
>>>> or cxf-bc1 -> cxf-se1 -> saxon -> cxf-se2 and so on.
>>>>
>>> yes,  I think so, take a look at "XSLT Proxy" from [2], this should  
>>> help
>>>
>>> [2]http://servicemix.apache.org/servicemix-saxon.html
>>>
>>> Freeman
>>>> regards,
>>>> sic
>>>> -- 
>>>> View this message in context:
>>>> http://old.nabble.com/combination-of-two-cxf-se-tp28188970p28188970.html
>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>>
>>>
>>>
>>> -- 
>>> Freeman Fang
>>> ------------------------
>>> Open Source SOA: http://fusesource.com
>>>
>>>
>>>
>>
>> -- 
>> View this message in context:
>> http://old.nabble.com/combination-of-two-cxf-se-tp28188970p28190632.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
> 
> 
> -- 
> Freeman Fang
> ------------------------
> Open Source SOA: http://fusesource.com
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/combination-of-two-cxf-se-tp28188970p28223273.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: combination of two cxf-se

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

My comment inline.
On 2010-4-9, at 下午7:04, sic wrote:

>
> Thanks, Freeman.
> But in your advice [1], it seems to get a problem within my case, I  
> think,
> since the original service(cxf-bc1->cxf-se1) should not be affected  
> by this
> combination.
Use proxy in cxf-se1 won't affect cxf-bc1->cxf-se1 at all, you may  
need take a look at CxfSeClientProxyTest[1] to see how it works
[1]https://svn.apache.org/repos/asf/servicemix/components/engines/servicemix-cxf-se/trunk/src/test/java/org/apache/servicemix/cxfse/CxfSeClientProxyTest.java
>
> In case of [2], it's not likely to apply to servicemix 3.X(only for  
> the 4.X
> version of servicemix-saxon)  although it's the best suggestion.
Could you use smx3.3.x, as we share components between smx4.x and  
smx3.3.x, so it should also work with smx3.3.x
Also, as "XSLT Proxy" from [2] mentioned,  you can use EIP  
StaticRoutingSlip instead, so I believe you also can do it with camel.
[2]http://servicemix.apache.org/servicemix-saxon.html

Freeman
>
> Is it suitable to use a routing component(eip or camel)?
>
> Any alternative ways or advice for my erroneous understanding..?
>
> sic
>
>
> Freeman Fang wrote:
>>
>> Hi,
>>
>> My comment inline
>> On 2010-4-9, at 下午4:07, sic wrote:
>>
>>>
>>> I don't have much experience in cxf and webservice.
>>>
>>> I'm operating two simple webservices using cxf-bc and cxf-se in
>>> servicemix-3.2.
>>> And two of webservices are entirely different in terms of business.
>>>
>>> I really wonder if it is possible to make a combination of this two
>>> webservices.
>>> For example, cxf-bc1 -> cxf-se1 -> cxf-se2 then return through the
>>> cxf-bc1.
>> Yes, you can inject proxy of cxf-se2 to cxf-se1, then you can invoke
>> cxf-se2 from cxf-se1 just like normal java invocation, take a look at
>> "Proxies" part from [1]
>>
>> [1]http://servicemix.apache.org/servicemix-cxf-se.html
>>> or cxf-bc1 -> cxf-se1 -> saxon -> cxf-se2 and so on.
>>>
>> yes,  I think so, take a look at "XSLT Proxy" from [2], this should  
>> help
>>
>> [2]http://servicemix.apache.org/servicemix-saxon.html
>>
>> Freeman
>>> regards,
>>> sic
>>> -- 
>>> View this message in context:
>>> http://old.nabble.com/combination-of-two-cxf-se-tp28188970p28188970.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>
>>
>> -- 
>> Freeman Fang
>> ------------------------
>> Open Source SOA: http://fusesource.com
>>
>>
>>
>
> -- 
> View this message in context: http://old.nabble.com/combination-of-two-cxf-se-tp28188970p28190632.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>


-- 
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com


Re: combination of two cxf-se

Posted by sic <si...@naver.com>.
Thanks, Freeman.
But in your advice [1], it seems to get a problem within my case, I think,
since the original service(cxf-bc1->cxf-se1) should not be affected by this
combination.

In case of [2], it's not likely to apply to servicemix 3.X(only for the 4.X
version of servicemix-saxon)  although it's the best suggestion.

Is it suitable to use a routing component(eip or camel)?

Any alternative ways or advice for my erroneous understanding..?

sic


Freeman Fang wrote:
> 
> Hi,
> 
> My comment inline
> On 2010-4-9, at 下午4:07, sic wrote:
> 
>>
>> I don't have much experience in cxf and webservice.
>>
>> I'm operating two simple webservices using cxf-bc and cxf-se in
>> servicemix-3.2.
>> And two of webservices are entirely different in terms of business.
>>
>> I really wonder if it is possible to make a combination of this two
>> webservices.
>> For example, cxf-bc1 -> cxf-se1 -> cxf-se2 then return through the  
>> cxf-bc1.
> Yes, you can inject proxy of cxf-se2 to cxf-se1, then you can invoke  
> cxf-se2 from cxf-se1 just like normal java invocation, take a look at  
> "Proxies" part from [1]
> 
> [1]http://servicemix.apache.org/servicemix-cxf-se.html
>> or cxf-bc1 -> cxf-se1 -> saxon -> cxf-se2 and so on.
>>
> yes,  I think so, take a look at "XSLT Proxy" from [2], this should help
> 
> [2]http://servicemix.apache.org/servicemix-saxon.html
> 
> Freeman
>> regards,
>> sic
>> -- 
>> View this message in context:
>> http://old.nabble.com/combination-of-two-cxf-se-tp28188970p28188970.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
> 
> 
> -- 
> Freeman Fang
> ------------------------
> Open Source SOA: http://fusesource.com
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/combination-of-two-cxf-se-tp28188970p28190632.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: combination of two cxf-se

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

My comment inline
On 2010-4-9, at 下午4:07, sic wrote:

>
> I don't have much experience in cxf and webservice.
>
> I'm operating two simple webservices using cxf-bc and cxf-se in
> servicemix-3.2.
> And two of webservices are entirely different in terms of business.
>
> I really wonder if it is possible to make a combination of this two
> webservices.
> For example, cxf-bc1 -> cxf-se1 -> cxf-se2 then return through the  
> cxf-bc1.
Yes, you can inject proxy of cxf-se2 to cxf-se1, then you can invoke  
cxf-se2 from cxf-se1 just like normal java invocation, take a look at  
"Proxies" part from [1]

[1]http://servicemix.apache.org/servicemix-cxf-se.html
> or cxf-bc1 -> cxf-se1 -> saxon -> cxf-se2 and so on.
>
yes,  I think so, take a look at "XSLT Proxy" from [2], this should help

[2]http://servicemix.apache.org/servicemix-saxon.html

Freeman
> regards,
> sic
> -- 
> View this message in context: http://old.nabble.com/combination-of-two-cxf-se-tp28188970p28188970.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>


-- 
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com