<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.m1
        {mso-style-name:m1;
        color:blue;}
span.pi1
        {mso-style-name:pi1;
        color:blue;}
span.t1
        {mso-style-name:t1;
        color:#990000;}
span.ns1
        {mso-style-name:ns1;
        color:red;}
span.b1
        {mso-style-name:b1;
        font-family:"Courier New";
        color:red;
        font-weight:bold;
        text-decoration:none none;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";
        mso-fareast-language:EN-GB;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am still trying to write a unit test for a bug fix (16256) where parameters are missing in WSDL using MessageContracts. I am trying to access the wsdl you would get with “?xsd=xsd1” to check, in my example, that “Result” is in AddResponse
 (previously missing), i.e.:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-indent:-12.0pt"><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><?</span></span><span class="pi1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">xml version="1.0" encoding="utf-8"
</span></span><span class="m1"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">?></span></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-24.0pt"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><a href="http://192.168.0.138:8010/?xsd=xsd1"><b><span style="font-family:"Courier New";color:red">-</span></b></a>
<span class="m1"><</span><span class="t1">xs:schema</span><span class="ns1"> xmlns:tns</span><span class="m1">="</span><b><span style="color:red">urn:Test</span></b><span class="m1">"</span><span class="t1"> elementFormDefault</span><span class="m1">="</span><b>qualified</b><span class="m1">"</span><span class="t1">
 targetNamespace</span><span class="m1">="</span><b>urn:Shout</b><span class="m1">"</span><span class="ns1"> xmlns:xs</span><span class="m1">="</span><b><span style="color:red">http://www.w3.org/2001/XMLSchema</span></b><span class="m1">"></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-24.0pt"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><a href="http://192.168.0.138:8010/?xsd=xsd1"><b><span style="font-family:"Courier New";color:red">-</span></b></a>
<span class="m1"><</span><span class="t1">xs:element name</span><span class="m1">="</span><b>Add</b><span class="m1">"></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-24.0pt"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><a href="http://192.168.0.138:8010/?xsd=xsd1"><b><span style="font-family:"Courier New";color:red">-</span></b></a>
<span class="m1"><</span><span class="t1">xs:complexType</span><span class="m1">></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-24.0pt"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><a href="http://192.168.0.138:8010/?xsd=xsd1"><b><span style="font-family:"Courier New";color:red">-</span></b></a>
<span class="m1"><</span><span class="t1">xs:sequence</span><span class="m1">></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-24.0pt"><span class="b1"><span style="font-size:10.0pt"> </span></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
<span class="m1"><</span><span class="t1">xs:element</span> <span class="t1">minOccurs</span><span class="m1">="</span><b>0</b><span class="m1">"</span><span class="t1"> name</span><span class="m1">="</span><b>n1</b><span class="m1">"</span><span class="t1">
 type</span><span class="m1">="</span><b>xs:double</b><span class="m1">" /></span>
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-24.0pt"><span class="b1"><span style="font-size:10.0pt"> </span></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
<span class="m1"><</span><span class="t1">xs:element</span> <span class="t1">minOccurs</span><span class="m1">="</span><b>0</b><span class="m1">"</span><span class="t1"> name</span><span class="m1">="</span><b>n2</b><span class="m1">"</span><span class="t1">
 type</span><span class="m1">="</span><b>xs:double</b><span class="m1">" /></span>
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-12.0pt"><span class="b1"><span style="font-size:10.0pt"> </span></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
<span class="m1"></</span><span class="t1">xs:sequence</span><span class="m1">></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-12.0pt"><span class="b1"><span style="font-size:10.0pt"> </span></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
<span class="m1"></</span><span class="t1">xs:complexType</span><span class="m1">></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-12.0pt"><span class="b1"><span style="font-size:10.0pt"> </span></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
<span class="m1"></</span><span class="t1">xs:element</span><span class="m1">></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-24.0pt"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><a href="http://192.168.0.138:8010/?xsd=xsd1"><b><span style="font-family:"Courier New";color:red">-</span></b></a>
<span class="m1"><</span><span class="t1">xs:element name</span><span class="m1">="</span><b>AddResponse</b><span class="m1">"></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-24.0pt"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><a href="http://192.168.0.138:8010/?xsd=xsd1"><b><span style="font-family:"Courier New";color:red">-</span></b></a>
<span class="m1"><</span><span class="t1">xs:complexType</span><span class="m1">></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-24.0pt"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><a href="http://192.168.0.138:8010/?xsd=xsd1"><b><span style="font-family:"Courier New";color:red">-</span></b></a>
<span class="m1"><</span><span class="t1">xs:sequence</span><span class="m1">></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-24.0pt"><span class="b1"><span style="font-size:10.0pt"> </span></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
<span class="m1"><</span><span class="t1">xs:element</span> <span class="t1">minOccurs</span><span class="m1">="</span><b>0</b><span class="m1">"</span><span class="t1"> name</span><span class="m1">="</span><b>Result</b><span class="m1">"</span><span class="t1">
 type</span><span class="m1">="</span><b>xs:double</b><span class="m1">" /></span>
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-12.0pt"><span class="b1"><span style="font-size:10.0pt"> </span></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
<span class="m1"></</span><span class="t1">xs:sequence</span><span class="m1">></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-12.0pt"><span class="b1"><span style="font-size:10.0pt"> </span></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
<span class="m1"></</span><span class="t1">xs:complexType</span><span class="m1">></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-12.0pt"><span class="b1"><span style="font-size:10.0pt"> </span></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
<span class="m1"></</span><span class="t1">xs:element</span><span class="m1">></span><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<pre style="background:white"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";mso-fareast-language:EN-US">In WsdlExporterTest.cs I can retrieve a schema, of two available, (using GetXmlSchema()) that has elements “Add” and “AddResponse” (and only these). But these are XmlSchemaElements (as opposed to say, XmlSchemaComplexType) and I can dig no further into the parameters above (assuming this is right). Is this test possible to write? Should I submit the fix for consideration anyway?<o:p></o:p></span></pre>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Peter<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>