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