Note that there are some explanatory texts on larger screens.

plurals
  1. POObjective-C: send/recieve SOAP for Iphone with php webservice
    primarykey
    data
    text
    <p>i started programming with Objective-C some days ago, so im a beginner and also never made a webservice. So i made a webservice with php with help of some tutorials. The php file looks like this:</p> <pre><code>&lt;?php function name($a){ $db = "app"; $verbindung = mysql_connect("localhost", "******", "******"); mysql_select_db($db); $zeile = mysql_fetch_array(mysql_query("SELECT * FROM player Where Player_ID like $a")); mysql_close(); return $zeile[1]; } $server=new SoapServer("profil.wsdl"); $server-&gt;addFunction("name"); $server-&gt;handle(); ?&gt; </code></pre> <p>And i also got a wsdl file.</p> <p>When i test my webservice here : <a href="http://www.soapclient.com/soaptest.html" rel="nofollow">http://www.soapclient.com/soaptest.html</a> i get the following response:</p> <pre><code>&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:profil" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP- ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP- ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"&gt; &lt;SOAP-ENV:Body&gt; &lt;ns1:nameResponse&gt; &lt;Result xsi:type="xsd:string"&gt;Test123&lt;/Result&gt; &lt;/ns1:nameResponse&gt; &lt;/SOAP-ENV:Body&gt; &lt;/SOAP-ENV:Envelope&gt; </code></pre> <p>The Result Test123 is exactly what i want to get inside my Objective-C program as a String, but i dont know how to do it. I already checked a lot of tutorials but i didnt get it. I just need to post 1 int value and get my string: "test123" back.</p> <p>I hope someone can help me, that would be great.</p>
    singulars
    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.
 

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