KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am having a minor problem with WCF service proxies where the message contains List<string> as a parameter. I am using the 'Add Service reference' in Visual Studio to generate a reference to my service. // portion of my web service message public List<SubscribeInfo> Subscribe { get; set; } public List<string> Unsubscribe { get; set; } These are the generated properties on my MsgIn for one of my web methods. You can see it used ArrayOfString when I am using List<string> , and the other takes List<SubscribeInfo> - which matches my original C# object above. [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] public System.Collections.Generic.List<DataAccess.MailingListWSReference.SubscribeInfo> Subscribe { get { return this.SubscribeField; } set { if ((object.ReferenceEquals(this.SubscribeField, value) != true)) { this.SubscribeField = value; this.RaisePropertyChanged("Subscribe"); } } } [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] publicDataAccess.MailingListWSReference.ArrayOfString Unsubscribe { get { return this.UnsubscribeField; } set { if ((object.ReferenceEquals(this.UnsubscribeField, value) != true)) { this.UnsubscribeField = value; this.RaisePropertyChanged("Unsubscribe"); } } } The ArrayOfString class generated looks like this. This is a class generated in my code - its not a .NET class. It actually generated me a class that inherits from List, but didn't have the 'decency' to create me any constructors. [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] [System.Runtime.Serial
Tags (comma-separated)
Save Edits
Cancel