WSDL Tutorials - Herong's Tutorial Examples - v2.22, by Herong Yang
SOAP 1.1 Message Styles and Encoding Options
This section describes the SOAP message styles, document vs. rpc, and encoding options, literal vs. encoded. Message style is specified using style='rpc|document' attribute. Message encoding option is specified using use='literal|encoded' attribute.
If you use SOAP 1.1 to exchange messages between the client and the server, you need to decide what message style to use and whether the message is encoded or not.
There are 2 message styles are supported by SOAP 1.1:
Here are rules on how to specify SOAP message style with WSDL 1.1 Binding Extension for SOAP 1.1:
<!-- Message style can be specified at the binding level --> <soap:binding style="rpc|document" .../> <!-- Message style can be specified at the operating level --> <!-- Operating level setting overrides the binding level --> <soap:operation style="rpc|document" .../> <!-- Default is "document" -->
There are 2 message encoding options are supported by SOAP 1.1:
Here is rule on how to specify SOAP message encoding option with WSDL 1.1 Binding Extension for SOAP 1.1:
<!-- Encoding option must be specified for SOAP Body --> <soap:body use="literal|encoded" .../> <!-- Encoding option must be specified for SOAP Fault --> <soap:fault use="literal|encoded" .../> <!-- Encoding option must be specified for SOAP Header --> <soap:header use="literal|encoded" .../> <!-- Encoding option must be specified for SOAP Header Fault --> <soap:headerfault use="literal|encoded" .../>
Table of Contents
WSDL 2.0 Document Structure and Syntax
WSDL Version 2.0 Part 2: Adjuncts
WSDL 2.0 Document Examples with SOAP Binding
Using WSDL Document in Java Apache Axis2/Java for WSDL
Apache Woden for WSDL Documents in Java
SoapUI - Web Service Testing Tool
WSDL 1.1 Document Structure and Syntax
WSDL 1.1 Binding Extension for SOAP 1.1
SoapUI as WSDL 1.1 Testing Tool
►WSDL 1.1 and SOAP 1.1 Examples - Document and RPC Styles
►SOAP 1.1 Message Styles and Encoding Options
document/literal Example - Guest Registration
Request and Response - Guest Registration
rpc/encoded Example - Get Exchange Rate
Request and Response - Get Exchange Rate
SOAP Body and Operation Name - Book Reservation
Request and Response - Book Reservation
elementFormDefault="qualified" - Refill Order
Request and Response - Refill Order
encodingStyle="uri" for use="encoded"
Request and Response - Get Stock Price
PHP SOAP Extension for WSDL 1.1
Apache Axis2/Java for WSDL 1.1
Using WSDL2Java to Generate Web Service Stub Classes
WSDL 1.1 Binding Extension for SOAP 1.2
WSDL 1.1 and SOAP 1.2 Examples - Document and RPC Styles