Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try saving the WSDL to a local file, and reference that in your constructor...</p> <pre><code>$client = new SoapClient('/local/path/to/wsdlfile.wsdl'); </code></pre> <p>Edit: if you're getting http errors while using the filesystem, you're doing something wrong :-)</p> <p>Tried to run this myself, and these are my responses. Note: I've had trouble connecting to the orange server as well, might be that their https connection is somewhat smelly...</p> <p>Var-dump a fresh SoapClient:</p> <pre><code>$&gt; php -r "var_dump(new SoapClient('https://m2mconnect.orange.co.uk/orange-soap/services/MessageServiceByCountry?wsdl'));" PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://m2mconnect.orange.co.uk/orange-soap/services/MessageServiceByCountry?wsdl' : failed to load external entity "https://m2mconnect.orange.co.uk/orange-soap/services/MessageServiceByCountry?wsdl" in Command line code on line 1 PHP Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://m2mconnect.orange.co.uk/orange-soap/services/MessageServiceByCountry?wsdl' : failed to load external entity "https://m2mconnect.orange.co.uk/orange-soap/services/MessageServiceByCountry?wsdl" in Command line code:1 Stack trace: #0 Command line code(1): SoapClient-&gt;SoapClient('https://m2mconn...') #1 {main} thrown in Command line code on line 1 Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://m2mconnect.orange.co.uk/orange-soap/services/MessageServiceByCountry?wsdl' : failed to load external entity "https://m2mconnect.orange.co.uk/orange-soap/services/MessageServiceByCountry?wsdl" in Command line code:1 Stack trace: #0 Command line code(1): SoapClient-&gt;SoapClient('https://m2mconn...') #1 {main} thrown in Command line code on line 1 </code></pre> <p>Wget'ing the WSDL:</p> <pre><code>$&gt; wget https://m2mconnect.orange.co.uk/orange-soap/services/MessageServiceByCountry?wsdl -O MSBC.wsdl --19:41:45-- https://m2mconnect.orange.co.uk/orange-soap/services/MessageServiceByCountry?wsdl =&gt; `MSBC.wsdl' Resolving m2mconnect.orange.co.uk... done. Connecting to m2mconnect.orange.co.uk[213.52.171.155]:443... connected. Unable to establish SSL connection. Unable to establish SSL connection. </code></pre> <p>Downloading WSDL through browser, and using that one:</p> <pre><code>$&gt; php -r "$s = new SoapClient('MSBC2.wsdl');var_dump($s, $s-&gt;__getFunctions());" object(SoapClient)#1 (2) { ["_soap_version"]=&gt; int(1) ["sdl"]=&gt; resource(6) of type (Unknown) } array(11) { [0]=&gt; string(133) "int sendMessage(string $username, string $password, string $deviceMSISDN, string $message, boolean $deliveryReport, string $mtBearer)" [1]=&gt; string(116) "ArrayOf_xsd_string getDeliveryReports(string $username, string $password, string $deviceMSISDN, string $countryCode)" [2]=&gt; string(122) "ArrayOf_xsd_string readMessages(string $username, string $password, int $count, string $deviceMsisdn, string $countryCode)" [3]=&gt; string(100) "boolean flushMessages(string $username, string $password, string $deviceMSISDN, string $countryCode)" [4]=&gt; string(139) "ArrayOf_xsd_string waitForMessage(string $username, string $password, int $timeout, string $deviceMSISDN, int $msgref, string $countryCode)" [5]=&gt; string(204) "int sendMessageWithValidityPeriod(string $username, string $password, string $deviceMSISDN, string $message, boolean $deliveryReport, string $mtBearer, string $binarySmsDcs, string $validityDaysHoursMins)" [6]=&gt; string(164) "int sendBinarySmsMessage(string $username, string $password, string $deviceMSISDN, string $message, boolean $deliveryReport, string $mtBearer, string $binarySmsDcs)" [7]=&gt; string(162) "ArrayOf_xsd_string sendAndWait(string $username, string $password, int $timeout, string $deviceMSISDN, string $message, boolean $deliveryReport, string $mtBearer)" [8]=&gt; string(193) "ArrayOf_xsd_string sendBinarySmsAndWait(string $username, string $password, int $timeout, string $deviceMSISDN, string $message, boolean $deliveryReport, string $mtBearer, string $binarySmsDcs)" [9]=&gt; string(122) "ArrayOf_xsd_string peekMessages(string $username, string $password, int $count, string $deviceMsisdn, string $countryCode)" [10]=&gt; string(142) "ArrayOf_xsd_string getDeliveryReportsFromDate(string $username, string $password, string $deviceMSISDN, string $countryCode, string $fromDate)" } $&gt; </code></pre> <p>Please note that I can't call any of the methods, since I don't have valid details for it.</p>
    singulars
    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