Answer: We can called SOAP envelope element as root element of a SOAP message. SOAP Envelope Element: This is use to define an XML document as SOAP message. Syntax: <?xml version="1.0"?> <soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope" soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding"> ... To write information message here ... </soap:Envelope>
The xmlns:soap Namespace is used to defines the Envelope as a SOAP Envelope. If we different namespace is used,Than the application generates an error and discards that message. The encodingStyle Attribute: It is used to define the data types that we used in the XML document. Attribute may show on any SOAP element.
In SOAP message their is no default encoding. Syntax: soap:encodingStyle="URI"
Example: <?xml version="1.0"?> <soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope" soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding"> ... To write infomation message here ... </soap:Envelope>
Question:
How you define SOAP envelope elements? Answer:
We can called SOAP envelope element as root element of a SOAP message. SOAP Envelope Element: This is use to define an XML document as SOAP message. Syntax: <?xml version="1.0"?> <soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope" soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding"> ... To write information message here ... </soap:Envelope>
The xmlns:soap Namespace is used to defines the Envelope as a SOAP Envelope. If we different namespace is used,Than the application generates an error and discards that message. The encodingStyle Attribute: It is used to define the data types that we used in the XML document. Attribute may show on any SOAP element.
In SOAP message their is no default encoding. Syntax: soap:encodingStyle="URI"
Example: <?xml version="1.0"?> <soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope" soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding"> ... To write infomation message here ... </soap:Envelope> Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
There should not be any Spelling Mistakes.
There should not be any Gramatical Errors.
Answers must not contain any bad words.
Answers should not be the repeat of same answer, already approved.