axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jignesh Dhruv" <>
Subject Backward Compatibility Issue when WebServices Updated and client stubs are not updated.
Date Wed, 26 Jan 2005 18:52:29 GMT

I am using Java2WSDL to generate a WSDL file and later am doing
WSDL2Java to generate Java stubs which I deliver to the clients. Later I
deploy the Axis WebService on the server side and the clients
communicate with this service using the stubs and WSDL file provided.
Everything works fine up to this point. 
Later I add a new property in one of my Java class and regenerate WSDL
file and client stubs using Java2WSDL and WSDL2Java. I deploy the
service on our side and deliver new stubs and WSDL file to clients. But
it so often happens that client does not update their WSDL file and
stubs and start getting following Exceptions:
Jan 25, 2005 7:15:21 AM org.apache.axis.client.Call invoke
SEVERE: Exception:
org.xml.sax.SAXException: Invalid element in UserAccount - status
org.apache.axis.encoding.DeserializationContextImpl.startElement(Deseria at .....................

So questions I have are:
- Whenever I add a new property to one of the WebServices classes, can I
update the Service on the Server side without client updating their
If yes then can you point me to the right direction?
If no then what is the best way to ensure backward compatibility?


View raw message