You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by jasminadesai <ja...@yahoo.com> on 2013/07/02 18:20:18 UTC

cxf 2.2.1 java2ws imports wsdl inside the same wsdl

I auto generate the wsdl in my application using cxf 2.2.1.
When the wsdl gets generated, it imports itself.
So, if I have a wsdl at http://localhost:8080/services/MyService?wsdl, then
this wsdl has the following inside:

<wsdl:import
location="http://localhost:8080/services/MyService?wsdl=MyService.wsdl"
namespace="http://test.com/service">
</wsdl:import>

How to prevent this from happening?





--
View this message in context: http://cxf.547215.n5.nabble.com/cxf-2-2-1-java2ws-imports-wsdl-inside-the-same-wsdl-tp5730187.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: cxf 2.2.1 java2ws imports wsdl inside the same wsdl

Posted by jasminadesai <ja...@yahoo.com>.
Thanks Daniel.

I checked the target namespace in my interface and the implementation.
The interface does have a target namespace defined, but the implementation
does not have any.
The impl just has the service name and the endpoint interface.

So will adding a namespace to the imp, help in eliminating the import in the
generated wsdl.

Also, the impl and the interface are in the same package. But the interface
extends another interface which is in a different package.
Could that be a reason for the import?



--
View this message in context: http://cxf.547215.n5.nabble.com/cxf-2-2-1-java2ws-imports-wsdl-inside-the-same-wsdl-tp5730187p5730215.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: cxf 2.2.1 java2ws imports wsdl inside the same wsdl

Posted by jasminadesai <ja...@yahoo.com>.
Hi Daniel,

In continuation to my previous post, I tried putting namespace in both impl
and interface and the import in the generated wsdl is gone.
Many thanks for your answer.

Regards,
Jasmina



--
View this message in context: http://cxf.547215.n5.nabble.com/cxf-2-2-1-java2ws-imports-wsdl-inside-the-same-wsdl-tp5730187p5730216.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: cxf 2.2.1 java2ws imports wsdl inside the same wsdl

Posted by Daniel Kulp <dk...@apache.org>.
You likely have different namespaces in the @WebService annotations for the impl and the interface (or they are in different packages).   Make sure the namespaces match.

Dan


On Jul 2, 2013, at 12:20 PM, jasminadesai <ja...@yahoo.com> wrote:

> I auto generate the wsdl in my application using cxf 2.2.1.
> When the wsdl gets generated, it imports itself.
> So, if I have a wsdl at http://localhost:8080/services/MyService?wsdl, then
> this wsdl has the following inside:
> 
> <wsdl:import
> location="http://localhost:8080/services/MyService?wsdl=MyService.wsdl"
> namespace="http://test.com/service">
> </wsdl:import>
> 
> How to prevent this from happening?
> 
> 
> 
> 
> 
> --
> View this message in context: http://cxf.547215.n5.nabble.com/cxf-2-2-1-java2ws-imports-wsdl-inside-the-same-wsdl-tp5730187.html
> Sent from the cxf-user mailing list archive at Nabble.com.

-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com


Re: cxf 2.2.1 java2ws imports wsdl inside the same wsdl

Posted by jasminadesai <ja...@yahoo.com>.
Unfortunately I cannot upgrade my cxf version.



--
View this message in context: http://cxf.547215.n5.nabble.com/cxf-2-2-1-java2ws-imports-wsdl-inside-the-same-wsdl-tp5730187p5730214.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: cxf 2.2.1 java2ws imports wsdl inside the same wsdl

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

Please run with more recent cxf version to see if it helps, cxf 2.2.x not get supported anymore
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋



On 2013-7-3, at 上午12:20, jasminadesai wrote:

> I auto generate the wsdl in my application using cxf 2.2.1.
> When the wsdl gets generated, it imports itself.
> So, if I have a wsdl at http://localhost:8080/services/MyService?wsdl, then
> this wsdl has the following inside:
> 
> <wsdl:import
> location="http://localhost:8080/services/MyService?wsdl=MyService.wsdl"
> namespace="http://test.com/service">
> </wsdl:import>
> 
> How to prevent this from happening?
> 
> 
> 
> 
> 
> --
> View this message in context: http://cxf.547215.n5.nabble.com/cxf-2-2-1-java2ws-imports-wsdl-inside-the-same-wsdl-tp5730187.html
> Sent from the cxf-user mailing list archive at Nabble.com.