Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP method input parameters
    text
    copied!<p>I don't know PHP, just the basics (if so...).</p> <p>I have a method in my web service like this:</p> <pre><code>$server-&gt;register( 'registerDeviceOnServer', //method name array('uniqueIdentifier' =&gt; 'xsd:string','deviceName' =&gt; 'xsd:string', 'systemVersion' =&gt; 'xsd:string', 'deviceModel' =&gt; 'xsd:string', 'userLocation_Locality' =&gt; 'xsd:string', 'userLocation_CountryCode' =&gt; 'xsd:string' ), //input data array('xmlReturn' =&gt; 'xsd:string'), //output data 'urn:server.AAAA', //namespace 'urn:server.AAAA#registerDeviceOnServer', //soapaction 'rpc', //style 'encoded', //use 'regista o iDevice' //info for documentation ); function registerDeviceOnServer($uniqueIdentifier,$deviceName,$systemVersion,$deviceModel,$userLocation_Locality,$userLocation_CountryCode) { //some code that talks to the database //inserting the data into a table // //the SQL code works fine. I've tested. } </code></pre> <p>When I call the web service, the data does not come in that exact order as it is declared in the php method. Does it have to come in that order, or does PHP assign the data to the vars?</p> <p>SOAP request:</p> <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;registerDeviceOnServer xmlns="urn:server.AAAA"&gt; &lt;uniqueIdentifier&gt;VVVVVVVVVVVVWWWWWWWW&lt;/uniqueIdentifier&gt; &lt;userLocation_CountryCode&gt;n/a&lt;/userLocation_CountryCode&gt;&lt;deviceModel&gt;iPhone Simulator&lt;/deviceModel&gt;&lt;systemVersion&gt;4.0&lt;/systemVersion&gt;&lt;deviceName&gt;iPhone OS&lt;/deviceName&gt;&lt;userLocation_Locality&gt;n/a&lt;/userLocation_Locality&gt; &lt;/registerDeviceOnServer&gt; &lt;/soap:Body&gt; &lt;/soap:Envelope&gt; </code></pre> <p>So, how can I work this out?</p> <p>Thanks,</p> <p>RL</p>
 

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