how can I programatically connect to Exchange Server thru windows phone 7 RRS feed

  • Question

  • I am going to write a WP7 program to connect to exchange server and sync tasks. I get stuck at the first step when trying to add a proxy to exchange server. first of first, EWS managed API doesn't support wp7; And then, in VS 2010, I cannot add a web reference to my company thru; Anybody could shed some lights on this issue? Thx in advance!!
    Sunday, February 27, 2011 11:18 AM


All replies

  • ping ...
    Tuesday, March 1, 2011 8:17 AM
  • In regards to visual studio if you step through the 2008 instructions in as long as you have trusted the certifcates and you are using the correct URL to your CAS server it should work okay otherwise you could just use wdsl.exe to generate your proxies.


    Wednesday, March 2, 2011 6:32 AM
  • Glen, thanks for reply. I can add service reference successfully thru a console application of VS2010. But the "Add Web Reference" button is disabled in the VS2010 windows phone 7 template.

    Isn't wp7 allowed to connect to exchange server?

    Wednesday, March 2, 2011 1:10 PM
  • Ok, in the "Add Service Reference" dialog, typing the Microsoft (for example), "VS2010 Expression for Windows Phone" can generate proxy now, but the service binding class ExchangeServiceBinding is not generated, so I tried to use BasicHttpBinding. The most courious thing is we have to place to input credential, neither BasicHttpBinding or ExchangeServicePortTypeClient has a place to input my credential, please see code below (still take Microsoft as example)

                string url = "https://" + "" + "/EWS/exchange.asmx";
                var remoteAddress = new System.ServiceModel.EndpointAddress(url);
                BasicHttpBinding binding = new BasicHttpBinding(BasicHttpSecurityMode.Transport);
                var client = new ExchangeServicePortTypeClient(binding, remoteAddress);

    Is WCF API incomplete for wp7 platform? I do see ExchangeServiceBinding tag in the WSDL, but why isn't it generated?

    Thursday, March 3, 2011 3:32 AM
  • Adding a service referance won't work because EWS isn't a WCF service i don't really do any WM 7 development but from the looks you may have to use raw xml to do this you can post the question to one of the WM7 dev forums to confirm.



    • Marked as answer by Yun-Rui SiMa Monday, March 7, 2011 7:48 AM
    Thursday, March 3, 2011 6:04 AM