Page 1 of 1

.::PHP SOAP ::. PLease HELP!!

Posted: Wed Jul 25, 2007 1:17 am
by wickass
Hi
I need to write a script to send TExt msq to a mobile Phone, using soap and PHP. I Have no clue where to start and the tutorials i have found on the web make no sense.

This is the wsdl file supplied by the service provider.

http://www.exactmobile.co.za/interactiv ... .asmx?wsdl

PLease!!!! any help will be appreciated.

Posted: Wed Jul 25, 2007 3:29 am
by volka
Install php5, enable the soap extension and try

Code: Select all

<?php
$client = new SoapClient('http://www.exactmobile.co.za/interactive/interactivewebservice.asmx?wsdl');
$response = $client->SubmitMessage(array(
	'Username'=>'user',
	'Password'=>'pass',
	'Reference'=>'ref',
	'MobileNumber'=>'number',
	'Message'=>'message'
));
var_dump($response);
see also:
http://de2.php.net/soap
http://devzone.zend.com/node/view/id/689