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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
wickass
Forum Newbie
Posts: 1
Joined: Wed Jul 25, 2007 1:10 am

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

Post 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.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
Post Reply