We developed an Axis document-style Web service. The time has come for a new version (WSDL evolution), but we want to keep the old one accessible at the same location. Is it possible to route the incoming request to different targets by writing a handler that could analyze the message? And, if possible, is it a good practice?

    Requires Free Membership to View

Your handler would have to intercept the call before Axis attempts to dispatch it. Otherwise you'll get the classic "no such operation" error for one or the other version. I also don't think Axis will let you deploy two services at the same URL. You would do better to deploy an intermediary (see the Synapse project) at the original URL, and then this intermediary can route the message accordingly. Your intermediary would need to use the message style service. It's definitely a good practice to make upgrades as seamless as possible.

This was first published in November 2005

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.