In sample soap XML request message, I noticed that there are soap envelope tag as
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Header>
...
Is it okay to remove these tags? For example,change the soap message as,
<soapenv:Envelope>
<Header>
...
Is this standard that all soap message must have?
Thanks.
The soap message is required, the namespace may be used by the receiving end to determine the version of the soap message. The namespace you are using, from what I understand, says this message follows
Soap 1.1standards. If you try to useSoap 1.2features in that message, the server will most likely get confused.Section 4.1.2 of the soap 1.1 standard
soap envelope in 1.1
soap envelope in 1.2