February 5, 2014

How to identify SOAP version in a message?

In this blog post, let us see about how to identify Simple Object Access Protocol (SOAP) version in a message. Sometimes, you will be skeptical about the version of your SOAP version in a message. There are two versions of SOAP being widely used: SOAP 1.1 and SOAP 1.2.

Identify SOAP Version

Method 1: Using Namespaces

By checking the namespaces in the message helps you to identify the SOAP version. Below are the specifications.

SOAP 1.1:

SOAP 1.2:

Below is the sample xml message which has the envelope which is SOAP 1.1 version.

<?xml version="1.0" encoding="UTF-8"?>

<soapenv:Envelope xmlns:soapenv="" xmlns:xsd="" xmlns:xsi=""> 


    <listUsers xmlns="" />



Method 2: SOAP Action Header

Typically SOAP 1.1 will have the content type as text/xml. Below is the sample header information.

POST /YourService HTTP/1.1

Content-Type: text/xml; charset="utf-8"

Content-Length: xxx

SOAPAction: "urn:uuid:youraction"

But SOAP 1.2 will have the content type as application/soap+xml. Below is the sample header information.

Method 3: Fault Information

  • Names of the fault elements will look different.
  • SOAP 1.1 fault elements are not namespace qualified, but all the SOAP 1.2 elements are namespace qualified.
  • SOAP 1.1 uses the lower case letters in the fault elements.
  • SOAP 1.2 Code elements can have the sub codes within it that describe the SOAP fault hierarchy.

Visit these links for more details: and

About NaveenKumar Namachivayam

Hi there! is a passionate and experienced Performance Test Analyst based in Chicago, USA with skill sets in Manual Testing, Test Automation, Performance Testing, and Test Estimation. He loves to learn and experiment new trends and models in Software Testing. Please stop by at his personal blogs: Excel Blog, DealsBrook,, and Affiliate Insights blog and Software Testing Memes.

Leave a Reply

Your email address will not be published. Required fields are marked *