This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Change Namespace for Axis2

 
Rajees Patel
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 263
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you want to change namespace prefix or namespace?
 
Rajees Patel
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
prefix
 
Amit ChaudhariC
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic