Send MMS thru SOAP MM7 interface - using php | Search |
NowSMS Support Forums ⬆ MMS & SMS Technical Discussions (unsupported) ⬆ Archive through February 03, 2005 ⬆ |
◄ ► |
Author | Message | |||
Eric Unregistered guest |
I'm trying to send an MMS thru my nowSms test server using the mm7 interface. I'm using php code. I've been looking around on the web to find infos, tutos, etc etc ... and made a few tests. I've written that small php script and, well, it doesn't work quite well. I got a HTTP Response 401 Authentication Failed include("SOAP/Client.php"); $endpoint = 'http://nowmms.dyndns.org:8080/mm7'; $soapclient = new SOAP_Client($endpoint); $method = 'SubmitReq'; $params = array( 'MM7Version'=>'5.6.0', 'SenderIdentification'=>array( 'VASPID'=>'vasacc','VASID'=>'vasacc','SenderAddress'=>array( 'RFC2822Address'=>'vasacc@nowmms.dyndns.org')), 'Recipients'=>array('To'=>array('Number'=>'11234567890'))); $soapheader = new SOAP_Header('{urn:http://schemas.xmlsoap.org/soap/envelope/}Header', NULL,array('TransactionID'=>'ID_1234')); $soapclient->addHeader($soapheader); $response = $soapclient->call($method,$params); print_r($response); ?> Do you have any idea where I'm wrong, I'd be really happy thank you} | |||
karan Unregistered guest |
|