4678 proposal

Update 1.2 Example as follows:

 

Table 1: Example of the MTOM Serialization policy assertion attached to WSDL
2.0.

                                

1 <wsdl:description

2         targetNamespace="http://tns.example.com/"

3         xmlns:tns="http://tns.example.com/"

4         xmlns:wsdl="http://www.w3.org/ns/wsdl"

5         xmlns:wsp="http://www.w3.org/ns/ws-policy"

6         xmlns:wsoma="http://w3.org/@@@/policy/optimizedmimeserialization"

7
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
y-utility-1.0.xsd" >

  

8         <wsp:Policy wsu:Id="MyPolicy" >

9                 <wsoma:OptimizedMimeSerialization />

10                <!-- omitted assertions --> 

11        </wsp:Policy>

 

12        <!-- omitted elements -->

 

13        <wsdl:binding name="MyBinding" type="tns:MyInterface" >

14                <wsp:PolicyReference

15                        URI="#MyPolicy"

16                        wsdl:required="true" />

17                <!-- omitted elements -->

18        </wsdl:binding>

 

19 </wsdl:description>

                                                

 

Lines (8-11) in are a policy expression that includes an MTOM Serialization
policy assertion (Line 9) to indicate that the SOAP Message Transmission
Optimization Mechanism [MTOM] will be used. 

Lines (13-18) are a WSDL 2.0 [WSDL2.0] binding. Lines (14-16) indicate that
the policy in Lines (8-11) applies to this binding, specifically indicating
that MTOM encodings must be accepted over all the messages in the binding.
Line (16) indicates policy is a required extension.

 

Jonathan Marsh -  <http://www.wso2.com> http://www.wso2.com -
<http://auburnmarshes.spaces.live.com> http://auburnmarshes.spaces.live.com

 

Received on Wednesday, 20 June 2007 19:54:44 UTC