Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6545595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:36:17+00:00 2026-05-25T11:36:17+00:00

I have a SOAP Service that is implemented using Apache Axis 2. It has

  • 0

I have a SOAP Service that is implemented using Apache Axis 2. It has a type Message which has the following definition

<xs:complexType name="Message">
  <xs:sequence>
    <xs:element minOccurs="0" name="id" type="xs:int"/>
    <xs:element minOccurs="0" name="caption" nillable="true" type="xs:string"/>
    <xs:element minOccurs="0" name="text" nillable="true" type="xs:string"/>
    <xs:element minOccurs="0" name="source" nillable="true" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

I have to replace the source element with a reference to a complex type Source. What is the best way to do this while avoiding to break existing clients?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:36:17+00:00Added an answer on May 25, 2026 at 11:36 am

    Martin Fowler provided a great article about schema versioning and extension points. Neverthess, as you don’t have extension points today this is not an option for you. An approach heavily used in the industry is having more than one version of your WSDLs and XSDs at a given point in time. So if your Web Service is specified using four components:

    1. XML Schema (xsd) describing your data model
    2. WSDL + binding describing the web service by using the XSD
    3. Service provider implemented in Java (the generated code, e.g. JAX-WS)
    4. Service implementation, ‘somehow’ decoulped from #3

    and you are required to introduce non-backward compatible changes, you can duplicate components #1 and #2 and define another namespace for them, e.g. "http://www.example.org/abc_v2". You have to generate a provider for the new version of your service (#3) and ‘somehow’ integrate it with component #4 – no question, this is the ugly part.

    This approach works, although it is not nice as you duplicate a lot of code that wants to be maintained. If you follow this approach you should define a deadline for all clients still using version 1 of your service, so you can get rid of the duplicated code later.

    To conclude, not nice but an option.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application using Apache CXF with a lots of SOAP services implemented.
I have implemented an Android code that calls a SOAP web service. The web
I Have an internal SOAP Web service that is being called from an external
I have a complex RIA client that communicates with a WCF SOAP web service,
I have an ASP.NET web service running that accepts both HTTP POST and SOAP
I have a SOAP request that is known to work using a tool like,
I have a flash based game that has a high score system implemented with
I have an application that connects via https to a SOAP-based web service that
I have a spring-ws (2.0.2) service I have implemented that requires some custom elements
We have SOAP web services in production that are relying on SOAP Headers (containing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.