Exchange Web Services Deserialization Error RRS feed

  • Question

  • I've set up a Push Notification client to receive messages from Exchange Server.  When I receive a message I deserialize it into a SendNotificationResponseType object.  However, when I try to do this I get the exception: There is an error in XML document (1, 2). --->  System.InvalidOperationException: <SendNotificationResponseType xmlns=''> was not expected..

    I've attached the document below.  I've tried unit testing this by saving the xml to a file and loading it directly and I get the same error.  I removed the xmlns:m="" and just get a different error.  I've also tried renaming the outside tags from SendNotification to SendNotificationResponseType in case it was an issue of the tags not matching the class name and it still failed.

    Any ideas?

    <m:SendNotification xmlns:t="" xmlns:m="">
      <m:SendNotificationResponseMessage ResponseClass="Success">
    Monday, March 9, 2009 3:25 PM


  • Hi,

    Thank you for contacting us and your interest in Exchange Development using Exchange Web Services (EWS).

    This forum is specific to the technical discussion around the content of the Exchange Server Protocols documentation

    There is a helpful technical community on the Microsoft TechNet that is focused on Exchange Server development found here. The Exchange Server development forum would be a better place to ask your question.
    The forum covers topics such as web services, APIs, application conversion and general application development against Exchange Server.

    Developer Consultant
    Monday, March 9, 2009 5:33 PM