Note that there are some explanatory texts on larger screens.

plurals
  1. POSOAP Client php
    primarykey
    data
    text
    <p>I'm need a little help about WS SOAP Client in PHP.</p> <p>I have a WS SOAP, restrict to my IP, but I don know almost anything about SOAP, I've already use SOAP with rails a long time ago.</p> <p>If I access the SOAP server from my browser using this: <a href="http://thedomain.com/wssitedsv/site.asmx/RetornaGanhadores" rel="nofollow">http://thedomain.com/wssitedsv/site.asmx/RetornaGanhadores</a></p> <p>The server return me the correct XML.</p> <p>If I access the SOAP server from my browser using this: <a href="http://thedomain.com/wssitedsv/site.asmx?wsdl" rel="nofollow">http://thedomain.com/wssitedsv/site.asmx?wsdl</a></p> <p>The server return a xml with configuration of the SOAP</p> <p>In the PHP I'm doing it:</p> <pre><code>$url = "http://thedomain.com/wssitedsv/site.asmx?wsdl"; $client = new SoapClient($url); $return = $client-&gt;RetornaGanhadores(NULL); echo $return; </code></pre> <p>And I'm getting this error: </p> <pre><code>PHP Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in /Users/sidnei/Sites/suasorte/scripts/get_data.php:15 \\nStack trace: \\n#0 [internal function]: SoapClient-&gt;__doRequest('&lt;?xml version="...', 'http://192.168....', 'https://www.tte...', 1, 0) \\n#1 /Users/sidnei/Sites/suasorte/scripts/get_data.php(15): SoapClient-&gt;__call('RetornaGanhador...', Array) \\n#2 /Users/sidnei/Sites/suasorte/scripts/get_data.php(15): SoapClient-&gt;RetornaGanhadores(NULL) \\n#3 /Users/sidnei/Sites/suasorte/index.php(2): include('/Users/sidnei/S...') \\n#4 {main} \\n thrown in /Users/sidnei/Sites/suasorte/scripts/get_data.php on line 15 </code></pre> <p>I can get all methods from Server using this:</p> <pre><code>$url = "http://thedomain.com/wssitedsv/site.asmx?wsdl"; $client = new SoapClient($url); $return = $client-&gt;__getFunctions(); print_t $return; </code></pre> <p>What I am doing wrong to use this SOAP server?</p> <p>How use a SOAP Server in PHP?</p> <p>I appreciate any help.</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload