C CONNECTOR New Member Licensed User Oct 4, 2016 #1 Hi, I need to access a web service written in php and that has no WSDL. I'm able to access it from a php client page, but not from B4A. Could you help me ? Sample code of the web service : <?php class WsServer { function hello($name) { return "hello " . $name; } } try { $server = new SoapServer(Null, array('uri' => 'http://localhost/test/wsserver.php')); $server->setClass("WsServer"); $server->handle(); } catch(Exception $e) { echo "Exception: " . $e; } ?> Thank you in advance. Daniel
Hi, I need to access a web service written in php and that has no WSDL. I'm able to access it from a php client page, but not from B4A. Could you help me ? Sample code of the web service : <?php class WsServer { function hello($name) { return "hello " . $name; } } try { $server = new SoapServer(Null, array('uri' => 'http://localhost/test/wsserver.php')); $server->setClass("WsServer"); $server->handle(); } catch(Exception $e) { echo "Exception: " . $e; } ?> Thank you in advance. Daniel
Erel B4X founder Staff member Licensed User Longtime User Oct 4, 2016 #2 Do you control the server side? If so then I recommend you to switch to REST api. You will need to build the Soap message yourself. There are several examples in the forum: https://www.b4x.com/android/forum/threads/soap-textbox-info.19961/#post-155159 https://www.b4x.com/android/forum/t...es-to-your-android-application.27080/#content Upvote 0
Do you control the server side? If so then I recommend you to switch to REST api. You will need to build the Soap message yourself. There are several examples in the forum: https://www.b4x.com/android/forum/threads/soap-textbox-info.19961/#post-155159 https://www.b4x.com/android/forum/t...es-to-your-android-application.27080/#content