title: SOAP XML select Nodes
body: <p>I'm trying to get the SOAP XML Values in C# Objects but currently I can't select any node and so get no value. </p>
  
  <p>This is the XML : </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
  &lt;soap:Body&gt;
  &lt;AddTwoStr xmlns="http://cpu1147/AB_TestWebApp/"&gt;
  &lt;InputParameters&gt;
  &lt;Parameter&gt;
  &lt;DataType&gt;string&lt;/DataType&gt;
  &lt;Name&gt;String1&lt;/Name&gt;
  &lt;Value&gt;test&lt;/Value&gt;
  &lt;/Parameter&gt;
  &lt;Parameter&gt;
  &lt;DataType&gt;string&lt;/DataType&gt;
  &lt;Name&gt;String2&lt;/Name&gt;
  &lt;Value&gt;test&lt;/Value
  &gt;&lt;/Parameter&gt;
  &lt;/InputParameters&gt;
  &lt;/AddTwoStr&gt;
  &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>the XML is stored in the following c# Code : </p>
  
  <pre><code>// Get raw request body
              Stream receiveStream = HttpContext.Current.Request.InputStream;
              // Move to begining of input stream and read
              receiveStream.Position = 0;
              //Webrequest als StreamReader
              //StreamReader mystream = new StreamReader(receiveStream, Encoding.UTF8);
              StreamReader mystream = new StreamReader(receiveStream);
  
              string test = mystream.ReadToEnd();
  
              XmlDocument document = new XmlDocument();
              document.LoadXml(test);
  </code></pre>
  
  <p>Does anyone have a solution for me to select the Values of String1 and String2 ?? </p>
  
  <p>Thanks and Kind regards,
  Chris</p>