Posted: Thu May 28, 2009 9:18 pm Post subject: SOAP Web Services
Hi Andrew,
I'd appreciate a little help using the WSDL web service if you please.
I'm trying to implement an all-in-one billing/provisioning system.
I've settled for using the PHP Extension for SOAP to get this going, but I'm having trouble making heads or tails of the API (http://doc.gamecreate.com/ManualWebService)
Fatal error: Uncaught SoapFault exception: [soap:Server] Argument 2 is not valid in SqlBuilder in /var/www/soaptest/test.php:6 Stack trace: #0 [internal function]: SoapClient->__call('login', Array) #1 /var/www/soaptest/test.php(6): SoapClient->login('nssb', '*****') #2 {main} thrown in /var/www/soaptest/test.php on line 6
I've masked out my password naturally.....
Its quite possible I'm not doing this right from the start, do you have any pointers?
I had only just finished reading your python fix before I refreshed mine to see had suggested it already. I am not sure of how to implement the same thing in PHP and have tried using both PHP SOAP Extension and currently trying the nuSOAP version, to no avail.
I'm pretty sure its something simple.....just need the right advice from the devs.
So you would be changing... $result = $client->call('Login', array('parameters' => $param), '', '', false, true);$param), '', '', false, true); is how to expose the chosen method (i.e Login in this case)
$param = array('username' => 'nssb', 'password' => '********'); is the associative array of method properties you need to provide.
If anyone needs anything else explaining, I'll be happy to try. Hope this helps more people.
Thanks to GC and crew for a great product.
NssB
Quick edit: Please note that most of the code in the above snippet is error checking. This if kept in your code will provide very good feedback as to where you are going wrong.
Sorry to revive an old thread, but I have been working on a set of PHP classes which can make the process of building a custom web-based front end to the SOAP Services provided by Gamecreate, relatively simple.
I have not quite finished them as of yet as I have been focusing on a desktop AIR app which does pretty much the same stuff. If there is any interest in the PHP Classes, please let me know and I'll be happy to finish them off and post them up.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum