Morning Yogesh Do you have created a interface for your bean containing something like :
import javax.jws.WebService; @WebService(targetNamespace = "http://www.exemple.com/myExample", name="MyPojo") public interface MyPojo { public MyObjectResult myMethod(MyObjectArg arg); } The class that you put in the bean tag of the cxfse:pojo must implements this interface. The interface is required by CXF to be able to generate the WSDL corresponding to your bean. Another way to avoid this issue is to create the WSDL by hand. Regards JB -- Jean-Baptiste Onofré [EMAIL PROTECTED] BuildProcess/AutoDeploy Project Leader http://buildprocess.sourceforge.net On Wed 29/10/08 22:57, "ychawla" [EMAIL PROTECTED] wrote: > > Hi Jean, > Thanks for the reply. I added the service unit and it autogenerated > an ExampleService. When I attempt to start service mix I get the > following message: > > INFO: Creating Service > {http://example.com/exampleService}ExampleServiceService from class org.apache.servicemix.samples.bridge.ExampleService > Oct 29, 2008 4:51:48 PM > org.apache.cxf.configuration.spring.ConfigurerImpl getBeanName > INFO: Could not determine bean name for instance of class > org.apache.cxf.transport.jbi.JBIDestination. > Oct 29, 2008 4:51:48 PM org.apache.cxf.endpoint.ServerImpl > initDestination INFO: Setting the server's publish address to be > jbi://ID-165-189-102-106-11d45501dd3-39-3 > Here is what the xbean.xml looks like: > > <beans xmlns:cxfse=" > http://servicemix.apache.org/cxfse/1.0" xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" > http://servicemix.apache.org/cxfse/1.0 http://servicemix.apache.org/schema/servicemix-cxfse-3.2.2.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xs > d"> > <cxfse:endpoint> > <cxfse:pojo> > <bean name="exampleServiceBean" > class="org.apache.servicemix.samples.bridge.ExampleService" /> > </cxfse:pojo> > </cxfse:endpoint> > > </beans> > > Also, I am wondering in my eip configuration, how would I call this POJO. > Here is a simple static route list, I have set up: > > <eip:static-recipient-list service="b:recipients" > endpoint="endpoint"> <eip:recipients> > <eip:exchange-target service="b:jms" /> > <eip:exchange-target service="b:file" /> > <eip:exchange-target service="WHAT DO I PUT HERE TO CALL THE POJO?" > /> </eip:recipients> > </eip:static-recipient-list> > > Thanks for the assistance! > > -Yogesh > > > -- > View this message in context: http://www.nabble.com/Connecting-POJOs-to-Service-Mix-tp2023429 > 0p20236733.html Sent from the ServiceMix - User mailing list archive at Nabble.com. > > > >
