Sandy has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to access an exchange server (over the web) via Email::Folder::Exchange
While running the sample code, I run into the following error:
Can't call method "attr" on an undefined value at Email/Folder/Exchange/EWS.pm line 123.After a little investigation, it comes down to:
my code
Looking at the EWS.pm file, line 123 is:use Email::Folder::Exchange::EWS; my $folder = Email::Folder::Exchange::EWS->new('my_server', $user,$p +ass);
I inspected the $som object, and looked at some of the stuff in the code, and I think I can see where there might be an error, (and it is not with my credentials) but I am hesitant to start debugging all of this, when the point is to have a package that just works.$self->folder_id( $som->dataof('//FolderId')->attr->{Id} );
So, the question is: Is there an easy way to access an exchange server, via the web, with a perl program. What would be the best package?
Sandy
UPDATE:
Making a bit of progress... but can't seem to find the right credentials to log in.
Have established that the server is NOT https://exchange.domain.com/owa
as that is for the web-client not the soap client.Am able to login (via a browser) to https:://exchange.domain.com/EWS/Services.wsdl with my standard username password, but does not work when I am using this from a perl script.
Still stymied.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: email exchange
by parv (Parson) on Aug 28, 2015 at 21:07 UTC | |
by Sandy (Curate) on Aug 28, 2015 at 21:29 UTC |