title: WCF Webservice with PHP
body: <p>I have a web service , which method accepts xml data as parameter</p>
  
  <pre><code>http://xxx.xxx.xxx/MainService.svc?wsdl
  </code></pre>
  
  <p>And for the connection i have a sample code in PHP as</p>
  
  <pre><code>$client = new SoapClient('http://xxxx.xxx.xxx/MainService.svc?wsdl');
  
  $xml = '&lt;InternalTransferModel&gt; 
  &lt;SendingShopID&gt;15&lt;/SendingShopID&gt;  
  &lt;SendingChainId&gt;1&lt;/SendingChainId&gt;
  &lt;/InternalTransferModel&gt;';
  
  $retval = $client-&gt;GetShopsDetails($xml);
  
  var_dump($retval);
  </code></pre>
  
  <p>But this returns </p>
  
  <pre><code>WCF Test object(stdClass)#3 (1) { ["GetShopsDetailsResult"]=&gt; string(0) "" }
  </code></pre>
  
  <p>Why does it return NULL,</p>
  
  <p>Do we have any procedure to debug the WCF service .
  And Also some procedures to check where is it going wrong</p>