Tech Off Post

Single Post Permalink

View Thread: Expose a class defined in System.AddIn to WCF
  • User profile image
    Oggelito

    Allright, thanks for the information.

    edit: I don't think I can conform to pure messages.

    I have a feeling it means getting rid of the self-referenced array

    This is my "object graph" (simplified but still) :

    namespace ImportExport.ServiceContracts
    {
        [DataContract]
        public class DataResult
        {
            [DataMember]
            public string Name { get; set; }

            [DataMember]
            public float Value { get; set; }

            [DataMember]
            public DataResult[] Children { get; set; }

        }
    }

    I will make both the abstract host view class and interface class conform to a xsd-schema and serialize/deserialize in the webmethod.

    that will have to do...