You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Canh Ngo <ca...@gmail.com> on 2011/03/30 15:00:28 UTC
Invoke a cxfse endpoint from another cxfse endpoint
Hi,
I need to implement following components:
- Two service assemblies:
1. MySA1 assembly contains:
+ SA1-CXF-SE-SU: an internal business service engine (SE1Service).
It works as a component provider for other endpoints in NMR.
2. MySA2 assembly contains
+ SA2-CXF-SE-SU: (SE2Service) works as the component provider
for back-end business tasks.
+ SA2-CXF-BC-SU: works as the component consumer to expose
SA2-CXF-SE-SU to external world.
At the moment, everything is ok. Now I want to invoke methods at
SA1-CXF-SE-SU from the endpoint SA2-CXF-SE-SU.
After investigation, I find out that cxfse:proxy [1] could be the
solution. However, my SA1-CXF-SE-SU doesn't expose WSDL interface, it's
only the java-code-first web service, so I don't know how to declare
attributes in the cxfse:proxy element in the xbean.xml of the
SA2-CXF-SE-SU project:
<cxfse:proxy service="my:SE1Service" context="#context" type="???" />
Could you give some suggestion how to make it work out? Or is there
other way to allow two cxfse endpoints could interact with each other?
---
[1] http://servicemix.apache.org/servicemix-cxf-se.html
Thanks & best regards,
Canh
Re: Invoke a cxfse endpoint from another cxfse endpoint
Posted by "C. Ngo" <ca...@gmail.com>.
Thanks, Freeman-2, I get service registered address from the log for proxy
configuration, and it works well.
--
View this message in context: http://servicemix.396122.n5.nabble.com/Invoke-a-cxfse-endpoint-from-another-cxfse-endpoint-tp4271413p4286619.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Invoke a cxfse endpoint from another cxfse endpoint
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
My comment inline
On 2011-3-30, at 下午9:00, Canh Ngo wrote:
> Hi,
>
> I need to implement following components:
> - Two service assemblies:
> 1. MySA1 assembly contains:
> + SA1-CXF-SE-SU: an internal business service engine (SE1Service).
> It works as a component provider for other endpoints in NMR.
>
> 2. MySA2 assembly contains
> + SA2-CXF-SE-SU: (SE2Service) works as the component provider
> for back-end business tasks.
> + SA2-CXF-BC-SU: works as the component consumer to expose
> SA2-CXF-SE-SU to external world.
>
> At the moment, everything is ok. Now I want to invoke methods at
> SA1-CXF-SE-SU from the endpoint SA2-CXF-SE-SU.
>
> After investigation, I find out that cxfse:proxy [1] could be the
> solution. However, my SA1-CXF-SE-SU doesn't expose WSDL interface,
> it's
> only the java-code-first web service, so I don't know how to declare
> attributes in the cxfse:proxy element in the xbean.xml of the
> SA2-CXF-SE-SU project:
Yeah, cxfse:proxy is the correct solution.
>
> <cxfse:proxy service="my:SE1Service" context="#context" type="???" />
When you deploy MySA1, you should be able to see the SA1-CXF-SE-SU
endpoint's service name from log, it's a QName(namespace + localName).
About the type attribute, it could be just the java interface you used
for your webservice.
Freeman
>
>
> Could you give some suggestion how to make it work out? Or is there
> other way to allow two cxfse endpoints could interact with each other?
>
> ---
> [1] http://servicemix.apache.org/servicemix-cxf-se.html
>
> Thanks & best regards,
> Canh
>
>
--
Freeman Fang
------------------------
FuseSource: http://fusesource.com
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org