SOAP Web service custom soap xml response
<p>This is my XML response soap (WS in c# ".asmx") : </p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;soap:Body&gt;
        &lt;TestrequestResponse xmlns="http://tempuri.org/"&gt;
            &lt;TestrequestResult&gt;
                &lt;name&gt;filename.xml&lt;/name&gt;
                &lt;code&gt;30&lt;/code&gt;
            &lt;/TestrequestResult&gt;
        &lt;/TestrequestResponse&gt;
    &lt;/soap:Body&gt;
&lt;/soap:Envelope&gt;</code></pre>
</div>
</div>
</p>

<p>I want to have a response  like this : </p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
    &lt;Response result=”KO”&gt;
  &lt;name&gt;filename.xml&lt;/name&gt;
  &lt;code&gt;30&lt;/code&gt;
    &lt;/Response&gt;</code></pre>
</div>
</div>
</p>

<p>how can I do this?</p>

<h2>Thank you very much for your help.</h2>

<p>edit : </p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>   [WebMethod]
        public Response Testrequest()
        {
            var r = new Response();
            r.name = "30";
            r.code = "0";

            return r;
        }</code></pre>
</div>
</div>
</p>

<p>object response : </p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code> public class Response
    {
        public string name { get; set; }
        public string code { get; set; }
        
        
    }</code></pre>
</div>
</div>
</p>