Advertisement
Guest User

mason malone

a guest
Dec 21st, 2009
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.64 KB | None | 0 0
  1. $request = '<?xml version="1.0" encoding="utf-8"?><soap:Envelope
  2. xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><m:SendNotificat
  5. ion xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
  6. xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"><
  7. m:ResponseMessages><m:SendNotificationResponseMessage
  8. ResponseClass="Success"><m:ResponseCode>NoError</m:ResponseCode><m:Notif
  9. ication><t:SubscriptionId>FgBleDA3c3AxLmxpdHdhcmVpbmMuY29tEAAAABJAlgb9bH
  10. JPjOSIOHbadcA=</t:SubscriptionId><t:PreviousWatermark>AQAAAKBgA1CARqtBm1
  11. sPvLCyqCvNaQAAAAAAAAE=</t:PreviousWatermark><t:MoreEvents>false</t:MoreE
  12. vents><t:ModifiedEvent><t:Watermark>AQAAAKBgA1CARqtBm1sPvLCyqCvUaQAAAAAA
  13. AAE=</t:Watermark><t:TimeStamp>2009-12-21T07:10:06Z</t:TimeStamp><t:Item
  14. Id
  15. Id="AAAWAG1tYWxvbmVAbGl0d2FyZWluYy5jb20ARgAAAAAAAoypmxk6K0mPSfdXOELPmwcA
  16. KnuHVTIh8kKtS0vk2Ng8DALEfnSYPwAAKnuHVTIh8kKtS0vk2Ng8DALQCov5BwAA"
  17. ChangeKey="DwAAAA==" /><t:ParentFolderId
  18. Id="AAAWAG1tYWxvbmVAbGl0d2FyZWluYy5jb20ALgAAAAAAAoypmxk6K0mPSfdXOELPmwEA
  19. KnuHVTIh8kKtS0vk2Ng8DALEfnSYPwAA" ChangeKey="AQAAAA=="
  20. /></t:ModifiedEvent></m:Notification></m:SendNotificationResponseMessage
  21. ></m:ResponseMessages></m:SendNotification></soap:Body></soap:Envelope>'
  22. ;
  23.  
  24. function SendNotification($response) {
  25.     print_r($response); die;
  26. }
  27.  
  28. $server = new SoapServer(NULL, array('soap_version' => SOAP_1_2, 'uri'
  29. => 'http://192.68.1.27/api/v1/exchange'));
  30. $server->addFunction('SendNotification');
  31. $server->handle($request);
  32. ~                                              
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement