I found out what the problem is. I put targetNamespace into my impl class. when 
I moved it to SEI it works.
Boxiong


----- Original Message ----
From: Boxiong Ding <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, June 4, 2008 12:55:38 PM
Subject: how to control the target namespace for service?

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