locked
XML serialize EntityCollection in WCF RRS feed

  • Question

  • Dear all,

    i am writing a WCF application which will be reutrning entity  collections from queries on CRM.

    below is a snippet.

     EntityCollection branchresult = _service.RetrieveMultiple(qe);

    however i want to serialize the entities into xml...so that the return type of the method will be xml, which can be used by the client.

    How can I acheive this in WCF, i have read the datacontractserializer but am not getting anything tangible, please kindly help.

    Tuesday, May 27, 2014 8:12 AM

All replies

  • Check this sample code from Microsoft

    http://msdn.microsoft.com/en-us/library/hh675409.aspx

    Wednesday, May 28, 2014 6:57 PM