Return to Snippet

Revision: 48399
at June 30, 2011 19:09 by patriksvenssonmpsbroadbandcom


Initial Code
//GetContent (for external ID)

$contentClient = new SoapClient("http://cs2.acme.com/ContentService.svc?wsdl", 
						 array('location' => "http://cs2.acme.com/ContentService.svc/basic"));
$contentParams = array("ExternalID" => 'abc123', "ServiceID" => 123, "SessionContext" => $sessionContext);
$contentResponse = $contentClient->GetContent(array('parameters'=>$contentParams)); 
$content = $contentResponse->GetContentResult;


//Register Subscriber

$subscriberClient = new SoapClient("http://cs2.acme.com/SubscriberService.svc?wsdl", 
						 array('location' => "http://cs2.acme.com/SubscriberService.svc/basic"));
$subscriberVO = array ("UserName" => 'patriksuser', "Password" => 'abc123', "Email" => '[email protected]'); 
$subscriberParams = array("NewSubscriber" => $subscriberVO, "SessionContext" => $sessionContext);
$subscriberResponse = $subscriberClient->RegisterSubscriber(array('parameters'=>$subscriberParams)); 
$newsubscriber = $subscriberResponse->RegisterSubscriberResult;

Initial URL

                                

Initial Description
Misc operations

Initial Title
PHP SOAP Gerrit

Initial Tags
php

Initial Language
PHP