Skip to content

Instantly share code, notes, and snippets.

<?php
/*
test.php
Proof of concept testing to see if we can get
PHP/SOAP talking to EWS. Thanks to Thomas Rabaix
for his documentation on NTLM auth in SOAP and to
Erik Cederstrand for his article on SOAP/Exchange.
<?php namespace Acme\Backend\VSM;
use Acme\Backend\BackendService;
use Exception;
class VSMService extends BackendService {
private $wsdl_url = 'http://dev/address/ServiceManager.svc?wsdl';
private $wsdl_user = 'user';
private $wsdl_pass = 'password';
Array
(
[0] => UNKNOWN AttributeDelete(UNKNOWN $parameters)
[1] => UNKNOWN AttributeRetrieve(UNKNOWN $parameters)
[2] => UNKNOWN TaskRetrieve(UNKNOWN $parameters)
[3] => UNKNOWN TaskForwardInt(UNKNOWN $parameters)
[4] => UNKNOWN TaskTimesheetCreate(UNKNOWN $parameters)
[5] => UNKNOWN TaskTimesheetUpdate(UNKNOWN $parameters)
[6] => UNKNOWN TaskTimesheetDelete(UNKNOWN $parameters)
[7] => UNKNOWN TaskCreateOutage(UNKNOWN $parameters)
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:tns="urn:emc.com:Ionix:ServiceManager:API:v9.0" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" name="InfraAPI" targetNamespace="urn:emc.com:Ionix:ServiceManager:API:v9.0">
<wsp:Policy wsu:Id="BasicHttpBinding_IServiceManager_