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















Core Software Performance Optimization Principles




Advertisements

High-Performance
Java Persistence
Close TOC

All Trails

Trail TOC

Page TOC

Previous

Next