title: asmx HTTP Post request with parameters
body: <p>our company has a .net base website<br>
  a few days ago we request a webservice from our website programmer  and yesterday he sent me a URL<br>
  when i open the URL from localhost its shown a page that i can choose one of my four method (function) that we request to programming.<br>
  by choosing one of them a new page has boon shown as follow:  </p>
  
  <p>SOAP 1.1<br>
  The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.  </p>
  
  <blockquote>
    <p>POST /webservices/findstatus.asmx HTTP/1.1   Host: localhost<br>
    Content-Type: text/xml; charset=utf-8   Content-Length: length<br>
    SOAPAction: "<a href="http://tempuri.org/FindWith_CodeR_Serail" rel="nofollow noreferrer">http://tempuri.org/FindWith_CodeR_Serail</a>"</p>
  </blockquote>
  
  <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;FindWith_CodeR_Serail xmlns="http://tempuri.org/"&gt;  
        &lt;CodeReception&gt;int&lt;/CodeReception&gt;  
        &lt;Serial&gt;string&lt;/Serial&gt;  
      &lt;/FindWith_CodeR_Serail&gt;  
    &lt;/soap:Body&gt;  
  &lt;/soap:Envelope&gt;  
  </code></pre>
  
  <blockquote>
    <p>HTTP/1.1 200 OK   Content-Type: text/xml; charset=utf-8<br>
    Content-Length: length</p>
  </blockquote>
  
  <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;FindWith_CodeR_SerailResponse xmlns="http://tempuri.org/"&gt;  
        &lt;FindWith_CodeR_SerailResult&gt;string&lt;/FindWith_CodeR_SerailResult&gt;  
      &lt;/FindWith_CodeR_SerailResponse&gt;  
    &lt;/soap:Body&gt;  
  &lt;/soap:Envelope&gt; 
  </code></pre>
  
  <p>SOAP 1.2<br>
  The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.  </p>
  
  <blockquote>
    <p>POST /webservices/findstatus.asmx HTTP/1.1   Host: localhost<br>
    Content-Type: application/soap+xml; charset=utf-8   Content-Length:
    length</p>
  </blockquote>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;  
  &lt;soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"&gt;  
    &lt;soap12:Body&gt;  
      &lt;FindWith_CodeR_Serail xmlns="http://tempuri.org/"&gt;  
        &lt;CodeReception&gt;int&lt;/CodeReception&gt;  
        &lt;Serial&gt;string&lt;/Serial&gt;  
      &lt;/FindWith_CodeR_Serail&gt;  
    &lt;/soap12:Body&gt;  
  &lt;/soap12:Envelope&gt;  
  </code></pre>
  
  <blockquote>
    <p>HTTP/1.1 200 OK   Content-Type: application/soap+xml; charset=utf-8<br>
    Content-Length: length</p>
  </blockquote>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;  
  &lt;soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"&gt;  
    &lt;soap12:Body&gt;  
      &lt;FindWith_CodeR_SerailResponse xmlns="http://tempuri.org/"&gt;  
        &lt;FindWith_CodeR_SerailResult&gt;string&lt;/FindWith_CodeR_SerailResult&gt;  
      &lt;/FindWith_CodeR_SerailResponse&gt;  
    &lt;/soap12:Body&gt;  
  &lt;/soap12:Envelope&gt; 
  </code></pre>
  
  <p>HTTP POST<br>
  The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.  </p>
  
  <blockquote>
    <p>POST /webservices/findstatus.asmx/FindWith_CodeR_Serail HTTP/1.1<br>
    Host: localhost   Content-Type: application/x-www-form-urlencoded<br>
    Content-Length: length      CodeReception=string&amp;Serial=string<br>
    HTTP/1.1 200 OK   Content-Type: text/xml; charset=utf-8<br>
    Content-Length: length</p>
  </blockquote>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;  
  &lt;string xmlns="http://tempuri.org/"&gt;string&lt;/string&gt;  
  </code></pre>
  
  <p>Now i'm stock on php codes that call this web service with 2 parameter<br>
  please send me full code that i can paste it in a php file for test.
  no matter what kind of method is used : SOAP or HTTP POST</p>
  
  <p>please help me.</p>
  
  <p>i used this php code and every thing is OK:  </p>
  
  <pre><code>&lt;?php
  
  $client = new SoapClient("http://www.MyWebSite.com/webservices/findstatus.asmx?WSDL");
  $params=new stdClass();
  $params-&gt;CodeReception = '11111';
  $params-&gt;Serial = '22222222';    
  $result = $client-&gt;FindWith_CodeR_Serail($params)-&gt;FindWith_CodeR_SerailResult;
  echo  $result;
  ?&gt;
  </code></pre>