Merge pull request #496 from nicolas-raoul/unit-test-for-issue2907
[mono.git] / mcs / class / System.ServiceModel / Test / MetadataTests / Resources / BasicHttp_Mtom_EmbeddedPolicy.xml
1 <Metadata xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.xmlsoap.org/ws/2004/09/mex">
2   <MetadataSection Dialect="http://schemas.xmlsoap.org/wsdl/" Identifier="http://tempuri.org/">
3     <definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://tempuri.org/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="service" targetNamespace="http://tempuri.org/" xmlns="http://schemas.xmlsoap.org/wsdl/">
4       <types>
5         <xs:schema xmlns:tns="http://tempuri.org/Imports" targetNamespace="http://tempuri.org/Imports" xmlns:xs="http://www.w3.org/2001/XMLSchema">
6           <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
7         </xs:schema>
8       </types>
9       <portType name="MyContract" />
10       <binding name="BasicHttpBinding_MyContract" type="tns:MyContract">
11         <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
12         <wsp:Policy wsu:Id="BasicHttpBinding_MyContract_policy">
13           <wsp:ExactlyOne>
14             <wsp:All>
15               <wsoma:OptimizedMimeSerialization xmlns:wsoma="http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization" />
16             </wsp:All>
17           </wsp:ExactlyOne>
18         </wsp:Policy>
19       </binding>
20       <service name="service">
21         <port name="BasicHttpBinding_MyContract" binding="tns:BasicHttpBinding_MyContract">
22           <soap:address location="http://tempuri.org/TestHttp/" />
23         </port>
24       </service>
25     </definitions>
26   </MetadataSection>
27   <MetadataSection Dialect="http://www.w3.org/2001/XMLSchema" Identifier="http://schemas.microsoft.com/2003/10/Serialization/">
28     <xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
29       <xs:element name="anyType" nillable="true" type="xs:anyType" />
30       <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
31       <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
32       <xs:element name="boolean" nillable="true" type="xs:boolean" />
33       <xs:element name="byte" nillable="true" type="xs:byte" />
34       <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
35       <xs:element name="decimal" nillable="true" type="xs:decimal" />
36       <xs:element name="double" nillable="true" type="xs:double" />
37       <xs:element name="float" nillable="true" type="xs:float" />
38       <xs:element name="int" nillable="true" type="xs:int" />
39       <xs:element name="long" nillable="true" type="xs:long" />
40       <xs:element name="QName" nillable="true" type="xs:QName" />
41       <xs:element name="short" nillable="true" type="xs:short" />
42       <xs:element name="string" nillable="true" type="xs:string" />
43       <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
44       <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
45       <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
46       <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
47       <xs:element name="char" nillable="true" type="tns:char" />
48       <xs:simpleType name="char">
49         <xs:restriction base="xs:int" />
50       </xs:simpleType>
51       <xs:element name="duration" nillable="true" type="tns:duration" />
52       <xs:simpleType name="duration">
53         <xs:restriction base="xs:duration">
54           <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
55           <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
56           <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
57         </xs:restriction>
58       </xs:simpleType>
59       <xs:element name="guid" nillable="true" type="tns:guid" />
60       <xs:simpleType name="guid">
61         <xs:restriction base="xs:string">
62           <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
63         </xs:restriction>
64       </xs:simpleType>
65       <xs:attribute name="FactoryType" type="xs:QName" />
66     </xs:schema>
67   </MetadataSection>
68 </Metadata>