calling wcf service with parameter from silverlight4

Posted by punam on Stack Overflow See other posts from Stack Overflow or by punam
Published on 2010-06-12T09:25:49Z Indexed on 2010/06/12 9:33 UTC
Read the original article Hit count: 268

Filed under:

I write WCF as follows

namespace EventViewer.Web { [ServiceContract(Namespace = "")] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] public class EventVwrService { [OperationContract] public IEnumerable GetFieldValues(FieldType field) { switch (field) { case FieldType.Source: return new List() { "SQL Server", "BizTalk Server", "MSIInstaller", "ADV", "SQLAgent" }; case FieldType.EventId: return new List() { "10115", "20988", "23434", "12323", "890099" };
default: throw new Exception ("Unknown type"); } } } }

I have to call WCf according to combobox selectied items.

Please help me

© Stack Overflow or respective owner

Related posts about wcf-binding