Solved

Exchange Web Services?

Posted on 2010-11-16
8
2,219 Views
Last Modified: 2012-06-27
Hello,

does Exchange Server 2007 and 2010 allows us to create Appointment, Emails, Contacts through EWS (Exchange Web Service)?

I'm truing using SoapUI to test that and I keep getting

   HTTP/1.1 405 Method Not Allowed Allow:

    GET, HEAD, OPTIONS, TRACE Server:

    Microsoft-IIS/7.0 X-Powered-By:

    ASP.NET Date: Tue, 16 Nov 2010

    14:05:48 GMT Content-Length: 0

any suggestions?

cheers
0
Comment
Question by:Data-Base
  • 4
  • 4
8 Comments
 
LVL 31

Expert Comment

by:LeeDerbyshire
ID: 34156427
Yes, E2007 and E2010 support EWS.  I don't know what SoapUI does, but GET, HEAD, OPTIONS and TRACE are not EWS verbs anyway.  With EWS you will only use POST.
0
 

Author Comment

by:Data-Base
ID: 34162067
Thanks

SoapUI is a tool to test SOAP
http://www.soapui.org/

do you know any other tool that we can test with?


cheers
0
 
LVL 31

Expert Comment

by:LeeDerbyshire
ID: 34163715
What do you want to test?  If you just want to make sure that EWS is up and running on the server, I have a simple test page here:
http://www.leederbyshire.com/EWS-FindItem-List-Inbox-Exchange-2007.asp
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

Author Comment

by:Data-Base
ID: 34170855
hello,

we have a software based on Oracle, and it communicate with different web services!
so now we want it to communicate with EWS

usualy with all other web services we use http://www.soapui.org/ to test our XML request (SOAP), and it works with no problems.

I do not know why we are stuck with EWS!

if you get back to my main post, I got really confused now when you wrote "With EWS you will only use POST." so why I got this message that it does not work!

is there some settings I need to change in exchange!?!
0
 
LVL 31

Expert Comment

by:LeeDerbyshire
ID: 34173365
Okay, I downloaded SoapUI.  I don't really know what to do with it (I do all my EWS coding using just Notepad), but I did manage to connect it to EWS on my server by entering a 'Initial WSDL/WADL' value of https://myservername/ews/services.wsdl (obviously I used a real server name).  Now, I can see a plus sign in the navigator window, an dif I expand it, I see the object ExchangeServiceBinding, and all the methods.  So, I assume that it's working.  What did you supply when it asked for your WSDL URL?
0
 

Author Comment

by:Data-Base
ID: 34183320
this part is working fine

take a look at this
 SoapUI with Exhange EWS
if you expand the "CreateItem" it shows you example or a template (request 1)
if you create a new request and add some cod from MS site
http://msdn.microsoft.com/en-us/library/dd633661%28EXCHG.80%29.aspx

modify it the way you like
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
               xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"       
               xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"       
               xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Header>
      <t:RequestServerVersion Version="Exchange2010" />
   </soap:Header>
   <soap:Body>
      <m:CreateItem SendMeetingInvitations="SendToAllAndSaveCopy">
         <m:Items>
            <t:CalendarItem>
               <t:Subject>Status Meeting</t:Subject>
               <t:Body BodyType="Text">The purpose of this meeting is to discuss project status.</t:Body>
               <t:Start>2009-03-01T17:00:00Z</t:Start>
               <t:End>2009-03-01T19:00:00Z</t:End>
               <t:Location>Conf Room</t:Location>
               <t:RequiredAttendees>
                  <t:Attendee>
                     <t:Mailbox>
                        <t:EmailAddress>user1@contoso.com</t:EmailAddress>
                     </t:Mailbox>
                  </t:Attendee>
                  <t:Attendee>
                     <t:Mailbox>
                        <t:EmailAddress>user2@contoso.com</t:EmailAddress>
                     </t:Mailbox>
                  </t:Attendee>
               </t:RequiredAttendees>
               <t:OptionalAttendees>
                  <t:Attendee>
                     <t:Mailbox>
                        <t:EmailAddress>user3@contoso.com</t:EmailAddress>
                     </t:Mailbox>
                  </t:Attendee>
               </t:OptionalAttendees>
            </t:CalendarItem>
         </m:Items>
      </m:CreateItem>
   </soap:Body>
</soap:Envelope>

Open in new window


and then add the end point (https://myservername/ews/services.wsdl)

then click on the green icon (run) you will get the results in a window
0
 
LVL 31

Accepted Solution

by:
LeeDerbyshire earned 500 total points
ID: 34188026
The endpoint document name should be exchange.asmx, not services.wsdl.
0
 

Author Closing Comment

by:Data-Base
ID: 34211261
Thanks allot :-)
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question