I am using CXF-2.1 to generate WSDL from Java classes. I have two package: one 
for service interface/impl and the other for objects. I have tried to specify 
targetNamespace in @WebService annotation and use -t option of java2ws. But 
neither generate my desired namespace for my service even the namespace is 
generated correctly for object package (from package-info.java). Instead, it 
always convert package name to name space by putting http in the front.

Here is the command I am using:
java2ws -wsdl -o MyWSDL.wsdl -createxsdimports -d ws -verbose  -t 
http://mynamesapce.mydomain.com/services/myservice MyServiceClass

Is this a bug or I am missing something?

Boxiong



      

Reply via email to