Imported Upstream version 5.20.0.180

Former-commit-id: ff953ca879339fe1e1211f7220f563e1342e66cb
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-02-04 20:11:37 +00:00
parent 0e2d47d1c8
commit 0510252385
3360 changed files with 83827 additions and 39243 deletions

View File

@@ -50,6 +50,8 @@ using NUnit.Framework;
using QName = System.Xml.XmlQualifiedName;
using MonoTests.Helpers;
namespace MonoTests.System.Runtime.Serialization
{
[TestFixture]
@@ -61,7 +63,7 @@ namespace MonoTests.System.Runtime.Serialization
[SetUp]
public void Setup ()
{
XmlReader xr = XmlTextReader.Create ("Test/System.Runtime.Serialization/one.xml");
XmlReader xr = XmlTextReader.Create (TestResourceHelper.GetFullPathOfResource ("Test/Resources/one.xml"));
metadata = MetadataSet.ReadFrom (xr);
NewXmlSchemaSet ();
}
@@ -374,8 +376,8 @@ namespace MonoTests.System.Runtime.Serialization
var ccu = new CodeCompileUnit ();
var xdi = new XsdDataContractImporter (ccu);
var xss = new XmlSchemaSet ();
xss.Add (null, "Test/Resources/Schemas/schema1.xsd");
xss.Add (null, "Test/Resources/Schemas/schema2.xsd");
xss.Add (null, TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/schema1.xsd"));
xss.Add (null, TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/schema2.xsd"));
xdi.Import (xss);
var sw = new StringWriter ();
new CSharpCodeProvider ().GenerateCodeFromCompileUnit (ccu, sw, null);
@@ -388,9 +390,9 @@ namespace MonoTests.System.Runtime.Serialization
var ccu = new CodeCompileUnit ();
var xdi = new XsdDataContractImporter (ccu);
var xss = new XmlSchemaSet ();
xss.Add (null, "Test/Resources/Schemas/schema1.xsd");
xss.Add (null, "Test/Resources/Schemas/schema2.xsd");
xss.Add (null, "Test/Resources/Schemas/schema3.xsd");
xss.Add (null, TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/schema1.xsd"));
xss.Add (null, TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/schema2.xsd"));
xss.Add (null, TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/schema3.xsd"));
xdi.Import (xss);
var sw = new StringWriter ();
bool t = false, te = false;
@@ -446,52 +448,52 @@ namespace MonoTests.System.Runtime.Serialization
[Test]
public void ImportTestX0 ()
{
DoImport ("Test/Resources/Schemas/ns0.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns0.xsd"));
}
[Test]
public void ImportTestX0_2 ()
{
var ccu = DoImport (true, "Test/Resources/Schemas/ns0.xsd");
var ccu = DoImport (true, TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns0.xsd"));
Assert.IsTrue (GenerateCode (ccu).IndexOf ("class") < 0, "#1");
}
[Test]
public void ImportTestX1 ()
{
DoImport ("Test/Resources/Schemas/ns1.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns1.xsd"));
}
[Test]
public void ImportTestX1_2 ()
{
Assert.AreEqual (GenerateCode (DoImport ("Test/Resources/Schemas/ns1.xsd")), GenerateCode (DoImport (true, "Test/Resources/Schemas/ns1.xsd")), "#1");
Assert.AreEqual (GenerateCode (DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns1.xsd"))), GenerateCode (DoImport (true, TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns1.xsd"))), "#1");
}
[Test]
public void ImportTestX2 ()
{
DoImport ("Test/Resources/Schemas/ns2.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns2.xsd"));
}
[Test]
public void ImportTestX2_2 ()
{
Assert.AreEqual (GenerateCode (DoImport ("Test/Resources/Schemas/ns2.xsd")), GenerateCode (DoImport (true, "Test/Resources/Schemas/ns2.xsd")), "#1");
Assert.AreEqual (GenerateCode (DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns2.xsd"))), GenerateCode (DoImport (true, TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns2.xsd"))), "#1");
}
[Test]
[ExpectedException (typeof (InvalidDataContractException))]
public void ImportTestX3 ()
{
DoImport ("Test/Resources/Schemas/ns3.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns3.xsd"));
}
[Test]
[Category ("NotWorking")]
public void ImportTestX3_2 ()
{
var ccu = DoImport (true, "Test/Resources/Schemas/ns3.xsd");
var ccu = DoImport (true, TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns3.xsd"));
var code = GenerateCode (ccu);
Assert.IsTrue (code.IndexOf ("class T2") > 0, "#1");
Assert.IsTrue (code.IndexOf ("IXmlSerializable") > 0, "#2");
@@ -504,208 +506,208 @@ namespace MonoTests.System.Runtime.Serialization
[ExpectedException (typeof (InvalidDataContractException))]
public void ImportTestX4 ()
{
DoImport ("Test/Resources/Schemas/ns4.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns4.xsd"));
}
[Test]
[ExpectedException (typeof (InvalidDataContractException))]
public void ImportTestX5 ()
{
DoImport ("Test/Resources/Schemas/ns5.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns5.xsd"));
}
[Test]
public void ImportTestX6 ()
{
DoImport ("Test/Resources/Schemas/ns6.xsd",
"Test/Resources/Schemas/ns0.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns6.xsd"),
TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns0.xsd"));
}
[Test]
[ExpectedException (typeof (InvalidDataContractException))]
public void ImportTestX7 ()
{
DoImport ("Test/Resources/Schemas/ns7.xsd",
"Test/Resources/Schemas/ns0.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns7.xsd"),
TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns0.xsd"));
}
[Test]
[ExpectedException (typeof (InvalidDataContractException))]
public void ImportTestX8 ()
{
DoImport ("Test/Resources/Schemas/ns8.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns8.xsd"));
}
[Test]
[ExpectedException (typeof (InvalidDataContractException))]
public void ImportTestX9 ()
{
DoImport ("Test/Resources/Schemas/ns9.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns9.xsd"));
}
[Test]
public void ImportTestX10 ()
{
DoImport ("Test/Resources/Schemas/ns10.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns10.xsd"));
}
[Test]
[ExpectedException (typeof (InvalidDataContractException))]
public void ImportTestX11 ()
{
DoImport ("Test/Resources/Schemas/ns11.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns11.xsd"));
}
[Test]
[ExpectedException (typeof (InvalidDataContractException))]
public void ImportTestX12 ()
{
DoImport ("Test/Resources/Schemas/ns12.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns12.xsd"));
}
[Test]
[ExpectedException (typeof (InvalidDataContractException))]
public void ImportTestX13 ()
{
DoImport ("Test/Resources/Schemas/ns13.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns13.xsd"));
}
[Test]
public void ImportTestX14 ()
{
DoImport ("Test/Resources/Schemas/ns14.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns14.xsd"));
}
[Test]
[ExpectedException (typeof (InvalidDataContractException))]
public void ImportTestX15 ()
{
DoImport ("Test/Resources/Schemas/ns15.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns15.xsd"));
}
[Test]
public void ImportTestX16 ()
{
DoImport ("Test/Resources/Schemas/ns16.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns16.xsd"));
}
[Test]
[ExpectedException (typeof (InvalidDataContractException))]
public void ImportTestX17 ()
{
DoImport ("Test/Resources/Schemas/ns17.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns17.xsd"));
}
[Test]
public void ImportTestX18 ()
{
DoImport ("Test/Resources/Schemas/ns18.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns18.xsd"));
}
[Test]
[ExpectedException (typeof (InvalidDataContractException))]
public void ImportTestX19 ()
{
DoImport ("Test/Resources/Schemas/ns19.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns19.xsd"));
}
[Test]
[ExpectedException (typeof (InvalidDataContractException))]
public void ImportTestX20 ()
{
DoImport ("Test/Resources/Schemas/ns20.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns20.xsd"));
}
[Test]
public void ImportTestX21 ()
{
DoImport ("Test/Resources/Schemas/ns21.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns21.xsd"));
}
[Test]
public void ImportTestX22 ()
{
DoImport ("Test/Resources/Schemas/ns22.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns22.xsd"));
}
[Test]
public void ImportTestX23 ()
{
DoImport ("Test/Resources/Schemas/ns23.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns23.xsd"));
}
[ExpectedException (typeof (InvalidDataContractException))]
[Test]
public void ImportTestX24 ()
{
DoImport ("Test/Resources/Schemas/ns24.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns24.xsd"));
}
[Test]
public void ImportTestX25 ()
{
DoImport ("Test/Resources/Schemas/ns25.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns25.xsd"));
}
[Test]
public void ImportTestX26 ()
{
DoImport ("Test/Resources/Schemas/ns26.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns26.xsd"));
}
[Test]
public void ImportTestX27 ()
{
DoImport ("Test/Resources/Schemas/ns27.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns27.xsd"));
}
[Test]
public void ImportTestX28 ()
{
DoImport ("Test/Resources/Schemas/ns28.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns28.xsd"));
}
[Test]
[ExpectedException (typeof (InvalidDataContractException))]
public void ImportTestX29 ()
{
DoImport ("Test/Resources/Schemas/ns29.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns29.xsd"));
}
[Test]
public void ImportTestX30 ()
{
DoImport ("Test/Resources/Schemas/ns30.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns30.xsd"));
}
[Test]
public void ImportTestX31 ()
{
DoImport ("Test/Resources/Schemas/ns31.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns31.xsd"));
}
[Test]
public void ImportTestX32 ()
{
DoImport ("Test/Resources/Schemas/ns32.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns32.xsd"));
}
[Test]
public void ImportTestX33 ()
{
DoImport ("Test/Resources/Schemas/ns33.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns33.xsd"));
}
[Test]
public void ImportTestX34 ()
{
DoImport (true, "Test/Resources/Schemas/ns34.xsd", "Test/Resources/Schemas/ns34_2.xsd");
DoImport (true, TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns34.xsd"), TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns34_2.xsd"));
}
[Test]
public void CanImportTestX34 ()
{
DoCanImport (false, "Test/Resources/Schemas/ns34.xsd", "Test/Resources/Schemas/ns34_2.xsd");
DoCanImport (false, TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns34.xsd"), TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/ns34_2.xsd"));
}
/* Helper methods */
@@ -780,7 +782,7 @@ namespace MonoTests.System.Runtime.Serialization
[Test]
public void ImportXsdBuiltInTypes ()
{
DoImport ("Test/Resources/Schemas/xml.xsd");
DoImport (TestResourceHelper.GetFullPathOfResource ("Test/Resources/Schemas/xml.xsd"));
}
}

View File

@@ -57,8 +57,8 @@ namespace MonoTests.System.Runtime.Serialization
[SetUp]
public void Setup ()
{
collectionsMetadata = WsdlHelper.GetMetadataSet ("collections.wsdl");
customCollectionsMetadata = WsdlHelper.GetMetadataSet ("custom-collections.wsdl");
collectionsMetadata = WsdlHelper.GetMetadataSet ("Test/Resources/WSDL/collections.wsdl");
customCollectionsMetadata = WsdlHelper.GetMetadataSet ("Test/Resources/WSDL/custom-collections.wsdl");
}
[Test]

View File

@@ -1,154 +0,0 @@
<Metadata xmlns="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">
<wsx:MetadataSection Dialect="http://schemas.xmlsoap.org/wsdl/" Identifier="http://myns/echo" xmlns="">
<wsdl:definitions targetNamespace="http://myns/echo" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 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://myns/echo" 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:xsd="http://www.w3.org/2001/XMLSchema" 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">
<wsdl:types>
<xsd:schema targetNamespace="http://myns/echo/Imports">
<xsd:import namespace="http://myns/echo"/>
<xsd:import namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
<xsd:import namespace="http://schemas.datacontract.org/2004/07/"/>
</xsd:schema>
</wsdl:types>
<wsdl:message name="IEchoService_Echo_InputMessage">
<wsdl:part name="parameters" element="tns:Echo"/>
</wsdl:message>
<wsdl:message name="IEchoService_Echo_OutputMessage">
<wsdl:part name="parameters" element="tns:EchoResponse"/>
</wsdl:message>
<wsdl:message name="IEchoService_DoubleIt_InputMessage">
<wsdl:part name="parameters" element="tns:DoubleIt"/>
</wsdl:message>
<wsdl:message name="IEchoService_DoubleIt_OutputMessage">
<wsdl:part name="parameters" element="tns:DoubleItResponse"/>
</wsdl:message>
<wsdl:portType name="IEchoService">
<wsdl:operation name="Echo">
<wsdl:input wsaw:Action="http://myns/echo/IEchoService/Echo" message="tns:IEchoService_Echo_InputMessage"/>
<wsdl:output wsaw:Action="http://myns/echo/IEchoService/EchoResponse" message="tns:IEchoService_Echo_OutputMessage"/>
</wsdl:operation>
<wsdl:operation name="DoubleIt">
<wsdl:input wsaw:Action="http://myns/echo/IEchoService/DoubleIt" message="tns:IEchoService_DoubleIt_InputMessage"/>
<wsdl:output wsaw:Action="http://myns/echo/IEchoService/DoubleItResponse" message="tns:IEchoService_DoubleIt_OutputMessage"/>
</wsdl:operation>
</wsdl:portType>
</wsdl:definitions>
</wsx:MetadataSection>
<wsx:MetadataSection Dialect="http://schemas.xmlsoap.org/wsdl/" Identifier="http://tempuri.org/" xmlns="">
<wsdl:definitions name="EchoService" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 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:i0="http://myns/echo" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 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">
<wsdl:import namespace="http://myns/echo" location=""/>
<wsdl:types/>
<wsdl:binding name="BasicHttpBinding_IEchoService" type="i0:IEchoService">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="Echo">
<soap:operation soapAction="http://myns/echo/IEchoService/Echo" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="DoubleIt">
<soap:operation soapAction="http://myns/echo/IEchoService/DoubleIt" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="EchoService">
<wsdl:port name="BasicHttpBinding_IEchoService" binding="tns:BasicHttpBinding_IEchoService">
<soap:address location="http://192.168.0.1:8080/echo/svc"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
</wsx:MetadataSection>
<wsx:MetadataSection Dialect="http://www.w3.org/2001/XMLSchema" Identifier="http://myns/echo" xmlns="">
<xs:schema elementFormDefault="qualified" targetNamespace="http://myns/echo" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://myns/echo">
<xs:import namespace="http://schemas.datacontract.org/2004/07/"/>
<xs:element name="Echo">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="msg" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="num" type="xs:int"/>
<xs:element minOccurs="0" name="d" nillable="true" type="q1:dc" xmlns:q1="http://schemas.datacontract.org/2004/07/"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="EchoResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="EchoResult" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="DoubleIt">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="it" type="xs:int"/>
<xs:element minOccurs="0" name="prefix" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="DoubleItResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="DoubleItResult" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsx:MetadataSection>
<wsx:MetadataSection Dialect="http://www.w3.org/2001/XMLSchema" Identifier="http://schemas.microsoft.com/2003/10/Serialization/" xmlns="">
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/">
<xs:element name="anyType" nillable="true" type="xs:anyType"/>
<xs:element name="anyURI" nillable="true" type="xs:anyURI"/>
<xs:element name="base64Binary" nillable="true" type="xs:base64Binary"/>
<xs:element name="boolean" nillable="true" type="xs:boolean"/>
<xs:element name="byte" nillable="true" type="xs:byte"/>
<xs:element name="dateTime" nillable="true" type="xs:dateTime"/>
<xs:element name="decimal" nillable="true" type="xs:decimal"/>
<xs:element name="double" nillable="true" type="xs:double"/>
<xs:element name="float" nillable="true" type="xs:float"/>
<xs:element name="int" nillable="true" type="xs:int"/>
<xs:element name="long" nillable="true" type="xs:long"/>
<xs:element name="QName" nillable="true" type="xs:QName"/>
<xs:element name="short" nillable="true" type="xs:short"/>
<xs:element name="string" nillable="true" type="xs:string"/>
<xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte"/>
<xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt"/>
<xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong"/>
<xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort"/>
<xs:element name="char" nillable="true" type="tns:char"/>
<xs:simpleType name="char">
<xs:restriction base="xs:int"/>
</xs:simpleType>
<xs:element name="duration" nillable="true" type="tns:duration"/>
<xs:simpleType name="duration">
<xs:restriction base="xs:duration">
<xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?"/>
<xs:minInclusive value="-P10675199DT2H48M5.4775808S"/>
<xs:maxInclusive value="P10675199DT2H48M5.4775807S"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="guid" nillable="true" type="tns:guid"/>
<xs:simpleType name="guid">
<xs:restriction base="xs:string">
<xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}"/>
</xs:restriction>
</xs:simpleType>
<xs:attribute name="FactoryType" type="xs:QName"/>
</xs:schema>
</wsx:MetadataSection>
<wsx:MetadataSection Dialect="http://www.w3.org/2001/XMLSchema" Identifier="http://schemas.datacontract.org/2004/07/" xmlns="">
<xs:schema elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.datacontract.org/2004/07/">
<xs:complexType name="dc">
<xs:sequence>
<xs:element minOccurs="0" name="foo" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="dc" nillable="true" type="tns:dc"/>
</xs:schema>
</wsx:MetadataSection>
</Metadata>