Besides replacing certain tokens in the WSDL to reflect the names you want, did you adjust the *cxf-servlet.xml* file in that tutorial to reflect these changes as well:
The original file from that tutorial looks like this... <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:soap="http://cxf.apache.org/bindings/soap" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> <!-- Import statement optional but often required if you're declaring other CXF beans in this file such as CXF's JMX MBeans --> <import resource="classpath:META-INF/cxf/cxf.xml"/> <jaxws:endpoint id="doubleit" implementor="service.DoubleItPortTypeImpl" wsdlLocation="WEB-INF/wsdl/DoubleIt.wsdl" address="/doubleit"> </jaxws:endpoint> </beans> On Fri, Apr 20, 2012 at 3:53 PM, johngalt <[email protected]> wrote: > Having a difficult time figuring out why one of these wsdl's works (both in > soapui and deployed to tomcat) and the other doesn't, the working one is > from the excellent tutorial at > http://www.jroller.com/gmazza/entry/web_service_tutorial > > All I was trying to do was basically rename the service/wsdl, etc and > getting the new one working as well. > > I've attached both, DoubleIt.wsdl works beautifully, CreateAssetsService > returns the following: > > </pre></p><p>*root cause* > <pre>org.apache.cxf.service.factory.ServiceConstructionException: Could not > find definition for service > {http://com.camelpoc/CreateAssetsService}CreateAssetsService. > > > org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:139) > > > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:412) > > > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:534) > > > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:248) > > > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205) > > > org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101) > > > org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159) > > > org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:207) > org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:442) > org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:329) > org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:246) > org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:525) > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > java.lang.reflect.Method.invoke(Unknown Source) > > I think it has something to do with the tns: namespace from the wsdl, but > everything looks correct to me, I tried to follow the working one exactly. > I've been trying various things, now I think I'm going in circles. > > Any help/point in the right direction would be unbelievably appreciated. > > Cheers > > http://cxf.547215.n5.nabble.com/file/n5655173/CreateAssetsService.wsdl > CreateAssetsService.wsdl > > http://cxf.547215.n5.nabble.com/file/n5655173/DoubleIt.wsdl DoubleIt.wsdl > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/Difference-between-two-wsdls-tp5655173p5655173.html > Sent from the cxf-user mailing list archive at Nabble.com. > *Mark *
