I added wsdl reference in my project. The following code is there in Refrence.cs file:
- public partial class MainRequest : object, System.ComponentModel.INotifyPropertyChanged
- {
- private test[] metadata;
- private string name;
- }
- public partial class test : object, System.ComponentModel.INotifyPropertyChanged
- {
- private string key1;
- private string value1;
- [System.Xml.Serialization.XmlAttributeAttribute()]
- public string Key {
- get {
- return this.key1;
- }
- set {
- this.key1 = value1;
- this.RaisePropertyChanged("Key");
- }
- }
I have written code in my project like this:
- myReference.MainRequest objMyReq = new myReference.MainRequest();
- objMyReq.name = "CompanyName";
- objMyReq.metadata = How can I give key and values in this?