Using version numbers in requests

Version numbers are specified in Web service requests as a required namespace.

The following statements describe how versions of the Web service interfaces affect interaction with them:
If clients contact a service whose version is incompatible with the version in their stubs, they receive a SOAP fault. Specifically, the following cases are possible:
Important: In all cases, to fix the client's incompatibility with the current Web service version, generate new client stubs and use them with the front-end application.

Examples of specifying the version numbers in requests

These examples illustrate how to specify the version number in requests to various Web services. The principle for specifying the version is the same, but the syntax differs slightly depending on the type of the Web service.

In this example, the request is sent to the Configuration Web Service, with specified values for major and minor versions in the namespace (3.0):
<soapenv:Envelope 
  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
  xmlns:ns="http://www.endeca.com/MDEX/config/services/types/3/0" 
  xmlns:ns1="http://www.endeca.com/MDEX/config/XQuery/2009/09">
   <soapenv:Header/>
   <soapenv:Body>
   ...
   </soapenv:Body>
</soapenv:Envelope>
In this example, the request is sent to the Conversation Web Service:
<soapenv:Envelope 
  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
  xmlns:ns="http://www.endeca.com/MDEX/conversation/3/0">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:Request>
      ...
      </ns:Request>
   </soapenv:Body>
</soapenv:Envelope>

The response also contains version numbers.