This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes change result xml element name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "change result xml element name" Watch "change result xml element name" New topic
Author

change result xml element name

Sushma Sharma
Ranch Hand

Joined: Jun 02, 2005
Posts: 139
I am using axis-2.1.3, jboss4.2.2GA and I want to change the name of xml element of result.



I want to change the above code to the code below, how do I do this? I have java class and then axis2 generates the wsdl.



Thanks in advance,
Sushma
saipraneeth nallapareddy
Ranch Hand

Joined: Dec 02, 2009
Posts: 159
the name of the tag depends on the name of the element which you have created for the response & prefix will depend on the name space.
If you want the output of your desired way then hand typed wsdl file must be made i;e you have to create your own wsdl file not relying on the server generated one.
Sushma Sharma
Ranch Hand

Joined: Jun 02, 2005
Posts: 139
okay, I tried to do that also. but it doesn't seem to work. I started from the wsdl generated by axis2 and copied this wsdl into my application esp\WebContent\WEB-INF\services\EspService\META-INF folder. then changed whatever the return types, but it still doesn't work. I have one Bean class and two methods that I want to expose.
Here is my wsdl:



so, here I have named createIdentityResponse element as bmespid, but still when I test it with soap ui, the response is



How do I make it


Thanks a lot in advance.

Sushma
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: change result xml element name