Comments (12)
Can you show me your code? I'm not really sure what a DTD is. Also, are you able to tell me what version of the library you're using it? Line 128 should just be a }
, but like 127
should look like return parent::__call($name, $args);
, which is where I would expect the error to be thrown.
The actual link shouldn't work, because it's a reference, like a namespace for XML. You can see that if you look at Resources/wsdl/types.xsd
from php-ews.
That is really interesting. Quick fix though, change that to outlook.office365.com
from php-ews.
No problems. I test against outlook365 myself, so you saying you were having an issue with it sparked something
from php-ews.
Thanks sir for reply
Yes, Here is my code:
require_once "vendor/autoload.php";
//Include the API
use garethp\ews\API;
use garethp\ews\API\ExchangeWebServices;
use garethp\ews\API\Enumeration;
use garethp\ews\API\Type;
//Create and build the client
$server = "outlook.office.com";
$username = "MYEMAIL";
$password = "PSSWORD";
$api = API::withUsernameAndPassword($server, $username, $password);
$calendar = $api->getCalendar();
$start = new DateTime('2016-05-11 8:00 AM');
$end = new DateTime('2016-05-11 9:00 AM');
$createdItemIds = $calendar->createCalendarItems(array(
'Subject' => 'Test BY API',
'Start' => $start->format('c'),
'End' => $end->format('c')
));
echo "Event is created <br/>";
echo "<pre> <strong>EVENT ID:: </strong>"; print_r($createdItemIds[0]->getId());
exit;
I have installed this repository though composer.
from php-ews.
In NTLMSoapClient
, can you do a var_dump($request)
on line 212
and past the XML output either here or in a gist?
from php-ews.
Here is XML output
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/messages"><SOAP-ENV:Header><ns1:RequestServerVersion Version="Exchange2010"/></SOAP-ENV:Header><SOAP-ENV:Body><ns2:GetFolder><ns2:FolderShape><ns1:BaseShape>Default</ns1:BaseShape></ns2:FolderShape><ns2:FolderIds><ns1:DistinguishedFolderId Id="calendar"/></ns2:FolderIds></ns2:GetFolder></SOAP-ENV:Body></SOAP-ENV:Envelope>
from php-ews.
Can you confirm that you have the Resources/wsdl/services.wsdl file?
from php-ews.
<-- xml was here -->
from php-ews.
Thanks for that. What's the URL that you enter in your $server
variable
from php-ews.
$server = "outlook.office.com";
from php-ews.
Actually, I've a 365 office account and i am trying to create event in my calendar with this library.. It's works fine before but have issues since yesterday.. I have tried code in two different server.. But have same problem. Since then, I'm trying to find solution but hard luck :(
from php-ews.
OMG!!!
Yay!! It's works.. Thank you so much for helping me to find it.. 👍
from php-ews.
Related Issues (20)
- Create a contact
- internetMessageHeaders HOT 1
- BUG FreeBusyResponse array HOT 1
- toRecipients getting null values for inplace archive mails
- Update Mail Item -> Categorize Email HOT 1
- PHP 8.2 - Deprecated dynamic properties HOT 5
- Oauth is not working with Exchange 2013
- Issue with using toRecipients property in EWS restriction HOT 2
- Daylight Savings
- How to get medias appointment
- Update contact with ExtendedProperty
- Exceptions
- Set a calendar event with custom identifier, so that I can (later on) GET an event by the same identifier HOT 3
- Change "busy" status for event. HOT 2
- Checking if an item exists (by $itemId and $changeKey) results in FATAL ERROR if the object is not found - How to handle this? HOT 1
- Also delete recurring events when master event is deleted? HOT 1
- getLegacyFreeBusyStatus() does not return WorkingElsewhere HOT 1
- Authentication error after Exchange Extended Protection was enabled HOT 2
- Add Kerberos support
- How to forward an Email
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-ews.