Hi Danny/John

The "bad" wsdl validates in eclipse ws-i. With any generation tools, I
would recommend having unique names for everything. This is a shot in the
dark but consider changing your element CreateAssetsService to
CreateAssetServiceRequest. This name currently is the same as your service
name. I recall having some bizarre behavior and this was how I resolved it
I believe.

Chris


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.
>



-- 
Chris Riley, Partner
HKM Consulting LLC
(w) hkmconsultingllc.com
(o)  774.553.5314
(m) 508.273.3102
(f)   774.553.5316

Reply via email to