Solved

Exchange Web Services?

Posted on 2010-11-16
8
2,166 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
 

Author Comment

by:Data-Base
Comment Utility
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
Shouldn't all users have the same email signature?

You wouldn't let your users design their own business cards, would you? So, why do you let them design their own email signatures? Think of the damage they could be doing to your brand reputation! Choose the easy way to manage set up and add email signatures for all users.

 
LVL 31

Expert Comment

by:LeeDerbyshire
Comment Utility
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
Comment Utility
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
Comment Utility
The endpoint document name should be exchange.asmx, not services.wsdl.
0
 

Author Closing Comment

by:Data-Base
Comment Utility
Thanks allot :-)
0

Featured Post

The curse of the end user strikes again      

You’ve updated all your end user’s email signatures. Hooray! But guess what? They’re playing around with the HTML, adding stupid taglines and ruining the imagery. Find out how you can save your signatures from end users today.

Join & Write a Comment

Resolve DNS query failed errors for Exchange
Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now