aspose file tools*
The moose likes Web Services and the fly likes Change Namespace for Axis2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Change Namespace for Axis2" Watch "Change Namespace for Axis2" New topic
Author

Change Namespace for Axis2

Rajees Patel
Greenhorn

Joined: Mar 29, 2010
Posts: 3
Hi,
I have a reasonably basic web service running on Axis2 and I want to change the namespace of the response.

ie change
<ns:numberOfFines>0</ns:numberOfFines>
to
<zx:numberOfFines>0</zx:numberOfFines>

The service was created by code first and I dont package a wsdl file , but I do have a services.xml file.

Whats is the best way to do this ?

Thanks

shivendra tripathi
Ranch Hand

Joined: Aug 26, 2008
Posts: 263
Do you want to change namespace prefix or namespace?


SCJP 1.5(97%) My Blog
Rajees Patel
Greenhorn

Joined: Mar 29, 2010
Posts: 3
prefix
Amit ChaudhariC
Ranch Hand

Joined: Aug 06, 2009
Posts: 33
I dont know if there is a way to do that in services.xml , perhaps someone can help .
you can try the following option for changing the prefix while generating the wsdl since you are using the code first approach.
java2wsdl.sh -stp

Regards,
Amit

 
 
subject: Change Namespace for Axis2