Test autodiscover Services with WcfTestClient

Hi , 

how can i call Autodiscover Web service, https://myserver.xxxxx.com/autodiscover/autodiscover.svc by using Wcf Test client?

When i try to call a web service i get the following error: The request failed with HTTP status 401: Unauthorized.

I get the same error when i call EWS Exchange web Service.

thank you for your help.


June 4th, 2015 1:30pm

Hi,

If you want to test Autodiscover service, you can browse Autodisver URL in IE. If it return error 600, it indicate that it works as expected.
Meanwhile, we can use ExRCA(https://testconnectivity.microsoft.com/) to test your environment.

For WCF, I find some article about it. For your convenience:
http://blogs.msdn.com/b/wcftoolsteamblog/archive/2010/01/04/tips-for-launching-wcf-test-client.aspx
https://msdn.microsoft.com/en-us/library/ff648431.aspx

Thanks

Free Windows Admin Tool Kit Click here and download it now
June 8th, 2015 5:52am

hi all, 

Thank you for your answers which put me on a tracks.

Finaly the error "The request failed with HTTP status 401: Unauthorized." is due to user rights and credentiels . The user session was not is the same domain as my Exchange server. By switching the server (user and exchange in the same domain), WCf was able to connect to the autodiscover and also EWS. I used these adresses:

  • https://computer.domain.xxx/autodiscover/autodiscover.svc
  • https://computer.domain.xxx/EWS/Exchange.asmx.

I was not sure for the url to use, so by checking this page  I set the right service URL .

You can also use PowerShell commande to get the EWS url: 

Get-WebServicesVirtualDirectory |fl identity,internalurl,externalurl

here  more details.

Hope it can help some one .

++

Thim

  

June 8th, 2015 11:57am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics