This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Question on updating a webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Question on updating a webservice" Watch "Question on updating a webservice" New topic
Author

Question on updating a webservice

Elango Valluvan
Greenhorn

Joined: May 02, 2005
Posts: 8
I had an existing webservice that was running. There was a method that returned a value object. I went ahead and updated the value object with few more attributes. The updated webservice has now got a new wsdl.

I noticed that the users who were using old client jar to access th old webservice are still not affected. How the webservice response is compatible (modified) to fit into the old client jar users?
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2920
    
    5
Originally posted by Elango Valluvan:
I noticed that the users who were using old client jar to access th old webservice are still not affected. How the webservice response is compatible (modified) to fit into the old client jar users?


It seems that you are "fortunate" enough that the old client jars treat the new attributes (XML elements) in the SOAP response message payload simply as optional elements and therefore ignore them as long as they are still receiving the old ones that they require. The stubs usually do not check the WSDL once they have been generated, nor do they validate against any schemas that the old or new WSDL may have been referencing - they tend to only generate errors once the (un)marshalling code (which is based on the old schema during code generation time) runs into trouble. Adding required elements to the SOAP request message payload and removing required elements from the SOAP response message payload will still create problems.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question on updating a webservice
 
Similar Threads
Axis Vs Axis2
"Value Object" pattern---problem
String[] vs. value object
How to clear Hibernate cache
fix the sockets used by axis2 clients