/ Published in: PHP
Misc operations
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//GetContent (for external ID) $contentClient = new SoapClient("http://cs2.acme.com/ContentService.svc?wsdl", $contentParams = array("ExternalID" => 'abc123', "ServiceID" => 123, "SessionContext" => $sessionContext); $content = $contentResponse->GetContentResult; //Register Subscriber $subscriberClient = new SoapClient("http://cs2.acme.com/SubscriberService.svc?wsdl", $subscriberVO = array ("UserName" => 'patriksuser', "Password" => 'abc123', "Email" => '[email protected]'); $subscriberResponse = $subscriberClient->RegisterSubscriber(array('parameters'=>$subscriberParams)); $newsubscriber = $subscriberResponse->RegisterSubscriberResult;