Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

One common practice to version web services is using XML namespaces to clearly delineate the versions of a document that are compatible. For example:

Code Block
xml
xml
    <wsdl:types>
        <schema
             targetNamespace="http://apache.org/2007/03/21/hello_world_xml_http/mixed/types"
             xmlns="http://www.w3.org/2001/XMLSchema">
             <element name="sayHi">
                 <complexType />
             </element>  

             ..........     

         </schema>
    </wsdl:types>

Among many different possible implementations of service routing, one simple way ("simple" in terms of amount of code you have to write, but it does require a certain extent of familiarity with CXF internal architecture) to do this is by writing a CXF interceptor that acts as a routing mediator.

...