• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

change result xml element name

 
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 139
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
If you're gonna buy things, buy this thing and I get a fat kickback:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic