Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Trouble renaming an existing element in Axis.  RSS feed

 
Raja Sagar Panamgipalli
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!