Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

SOAP Syntax

SOAP Syntax


SOAP Building Blocks

A SOAP message is an ordinary XML document containing the following elements:

All of the above elements are declared in the default namespace for the SOAP envelope:

http://www.w3.org/2001/12/soap-envelope

And the default namespace for SOAP encoding and data types:

http://www.w3.org/2001/12/soap-encoding


Syntax Rules

Here are some important syntax rules:


The Basic Structure of a SOAP Message

xmlns:soap="http://www.w3.org/2001/12/soap-envelope"

soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">

soap:Header

...

soap:Body

...

  soap:Fault

  ...