Hello all

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

use Email::Folder::Exchange::EWS; my $folder = Email::Folder::Exchange::EWS->new('my_server', $user,$p +ass);
Looking at the EWS.pm file, line 123 is:
$self->folder_id( $som->dataof('//FolderId')->attr->{Id} );
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.

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.


In reply to email exchange by Sandy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.