This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Change Namespace for Axis2

 
Rajees Patel
Greenhorn
Posts: 3
  • 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
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
prefix
 
Amit ChaudhariC
Ranch Hand
Posts: 33
  • 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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic