Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $request = '<?xml version="1.0" encoding="utf-8"?><soap:Envelope
- xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><m:SendNotificat
- ion xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
- xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"><
- m:ResponseMessages><m:SendNotificationResponseMessage
- ResponseClass="Success"><m:ResponseCode>NoError</m:ResponseCode><m:Notif
- ication><t:SubscriptionId>FgBleDA3c3AxLmxpdHdhcmVpbmMuY29tEAAAABJAlgb9bH
- JPjOSIOHbadcA=</t:SubscriptionId><t:PreviousWatermark>AQAAAKBgA1CARqtBm1
- sPvLCyqCvNaQAAAAAAAAE=</t:PreviousWatermark><t:MoreEvents>false</t:MoreE
- vents><t:ModifiedEvent><t:Watermark>AQAAAKBgA1CARqtBm1sPvLCyqCvUaQAAAAAA
- AAE=</t:Watermark><t:TimeStamp>2009-12-21T07:10:06Z</t:TimeStamp><t:Item
- Id
- Id="AAAWAG1tYWxvbmVAbGl0d2FyZWluYy5jb20ARgAAAAAAAoypmxk6K0mPSfdXOELPmwcA
- KnuHVTIh8kKtS0vk2Ng8DALEfnSYPwAAKnuHVTIh8kKtS0vk2Ng8DALQCov5BwAA"
- ChangeKey="DwAAAA==" /><t:ParentFolderId
- Id="AAAWAG1tYWxvbmVAbGl0d2FyZWluYy5jb20ALgAAAAAAAoypmxk6K0mPSfdXOELPmwEA
- KnuHVTIh8kKtS0vk2Ng8DALEfnSYPwAA" ChangeKey="AQAAAA=="
- /></t:ModifiedEvent></m:Notification></m:SendNotificationResponseMessage
- ></m:ResponseMessages></m:SendNotification></soap:Body></soap:Envelope>'
- ;
- function SendNotification($response) {
- print_r($response); die;
- }
- $server = new SoapServer(NULL, array('soap_version' => SOAP_1_2, 'uri'
- => 'http://192.68.1.27/api/v1/exchange'));
- $server->addFunction('SendNotification');
- $server->handle($request);
- ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement