Title: POJO, WSDL and WebService

To best understand ServiceMix in relation with the JBI specification, I start a Spring JBI component with a Groovy component with the ID "ServiceTest".

I can get a ServiceEndpoint for this component by the code snippet bellow :

Component cmp = jbi.getComponent("ServiceTest");
PojoSupport ps = (PojoSupport) jbi.getComponent("ServiceTest");
ServiceEndpoint se = ps.getContext().getEndpoint(service, ps.getEndpoint());

I want to get the WSDL description for this endpoint, but the instruction :

Document doc = cmp.getServiceDescription(se);

returns the null reference !

What I've missed ? Is there a way to get this information ?


My final goal would be to expose a such component as a web service, so any code client can invoke it localy or remotely. Is it possible with one of the Binding Component supplied by Service Mix ? And also how the WSDL description for the web service would be handled ?

Thank you.


"As Java implies platform independence, and
XML implies language independence, JXTA implies
network independence."

B e r t r a n d   G o e t z m a n n
- - - - - - - - - - - - - - - - - - - - -
Sun Certified Developer for the Java 2 Platform
Sun Certified Enterprise Architect for J2EE Technology

<!-- O B J E C T  - E V E R Y W H E R E, sur Apache Cocoon -->
<site_web href=""> www.object-everywhere.com "/>

LaSer-Symag
Tél. 04 92 91 34 00
www.symag.com

Reply via email to