SOAP Envelope

Jakob Jenkov
Last update: 2014-07-02

The SOAP Envelope element is the root element in a SOAP message. Inside the SOAP Envelope you find a Header (optional) and a Body element.

Here is a sample SOAP Envelope element (Envelope element marked in bold):

<?xml version="1.0"?>
<env:Envelope  xmlns:env="http://www.w3.org/2002/06/soap-envelope" >

<env:Header>
</env:Header>

<env:Body>
</env:Body>

</env:Envelope>

Notice the env name space declaration inside the Envelope element:

xmlns:env="http://www.w3.org/2002/06/soap-envelope"

This name space declaration must always be present in a SOAP Envelope element. The prefix (env) can change as you see fit.

Jakob Jenkov

Featured Videos

P2P Networks Introduction




















Advertisements

High-Performance
Java Persistence
Close TOC
All Tutorial Trails
All Trails
Table of contents (TOC) for this tutorial trail
Trail TOC
Table of contents (TOC) for this tutorial
Page TOC
Previous tutorial in this tutorial trail
Previous
Next tutorial in this tutorial trail
Next