• 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

Trouble renaming an existing element in Axis.

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

We have a webservice and its corresponding Java Bean classes(generated out of Apache Axis WSDL2Java emitter) for each element in the incoming Soap message body.

Now the problem comes when i've have to rename an element in the soap body, how should i make Axis runtime invoke the same webservice without regenerating the entire Java2WSDL and WSDL2Java.

I have tried renaming the Java Bean class and all its corresponding references in deploy.wsdd, server-config.wsdd etc.

The exception is get is ...

CAUSED BY INITIAL EXCEPTION]
AxisFault
faultCode: {http://xml.apache.org/axis/}Server.userException
faultString: org.xml.sax.SAXException: Invalid element in XXXXXXXX - YYYYYYYYYYY



Hope i'm clear.
Appreciate quick response.....SOS...


Thank you.
 
Raja Sagar Panamgipalli
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
resolved the error, renaming the element works,but must ensure we hit it on the right place.
I'm using Axis 1.1, so simply renamed the bean class<element in WSDL>,actually generated from WSDL2Java its references in the server-config.wsdd.

Checked if the wsdl was updated by accesing the web-root/services, and alas could see my renamed element published in the wsdl.

Thanks,
Sagar
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic