The response received from the service didn't contain valid XML

Error

​​​The response received from the service didn't contain valid XML.

Cause

This error is generic in nature and indicates that, instead of the expected XML response (for example: SOAP web service response), we received either:

  • an HTML error page.
  • a truncated XML response.

Resolution

Solve this issue by performing the following steps:

  1. Make sure the specified end user email address is correct.
  2. Check if there is any restriction (i.e., a firewall) that could truncate XML responses larger than a certain size, or a load balancer/packet accelerator that is interacting with the network traffic.
  3. Check that EWS access works:
  4. ​Make sure that the Exchange servers within the environment are fully up to date with all required Service Packs and patches​.

  5. Restart all Client Access Servers.
  6. Review IIS logs and system Event logs.

  7. Check the .config file under the /EWS IIS directory. You can use a free XML validation tool, such as http://www.xmlvalidation.com.
    • Check for duplicate XML nodes.
    • Check for unclosed XML nodes.
    • Check for references to local host names not reachable from the Internet.
    • Check for httpRedirect XML nodes.
  8. Recreate the EWS Virtual Directory within IIS.
Was this article helpful?
2 out of 8 found this helpful