title: What is the correct format of a SOAP response
body: <p>I'm working with a Web Service that i didn't make and i'm getting two different responses from the same method, data is the same but format changes and that crashes my app</p>
  
  <p>Response 1:</p>
  
  <pre><code>&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV=...&gt;
  &lt;SOAP-ENV:Body SOAP-ENV:encodingStyle="..." xmlns:NS1="..." xmlns:NS2="..."&gt;
    &lt;NS1:...&gt;
  &lt;return href="#1"/&gt;
    &lt;/NS1:...&gt;
  &lt;NS2:..." xsi:type="NS2:..."&gt;    
  &lt;/NS2:...&gt;
  &lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  
  <p>Response 2:</p>
  
  <pre><code>&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV=...&gt;
  &lt;SOAP-ENV:Body SOAP-ENV:encodingStyle="..." xmlns:NS1="..." xmlns:NS2="..."&gt;
  &lt;NS1:...&gt;    
  &lt;NS2:..." xsi:type="NS2:..."&gt;    
  &lt;/NS2:...&gt;
  &lt;return href="#1"/&gt;
  &lt;/NS1:...&gt;
  &lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  
  <p>The only diference are this lines</p>
  
  <pre><code>&lt;return href="#1"/&gt;
  &lt;/NS1:...&gt; 
  </code></pre>
  
  <p>When I get the second one I cannot read the data, so my question is: Is the second way wrong?</p>
  
  <p>EDIT:</p>
  
  <p>This is the error message i get</p>
  
  <pre><code>System.Web.Services.Protocols.SoapException: El servidor no puede procesar la       
  solicitud.
  ---&gt; System.InvalidOperationException: Error en el documento XML (2, 3726). ---&gt;   
  System.InvalidOperationException: No se encontró en el documento el elemento con id '2' 
  al que se hace referencia.
  en System.Xml.Serialization.XmlSerializationReader.GetTarget(String id)
  en System.Xml.Serialization.XmlSerializationReader.FixupArrayRefs(Object fixup)
  en System.Xml.Serialization.XmlSerializationReader.DoFixups()
  en System.Xml.Serialization.XmlSerializationReader.ReadReferencedElements()
  </code></pre>
  
  <p>it says "Can't find the element with id 2"</p>
  
  <p>the second response was made because <code>UTF8InHeader = TRUE</code> anyway I'm curious about if it is a valid soap response</p>