/// <remarks/>
 public void setRequestFieldsAsync(setRequestFields setRequestFields1) {
     this.setRequestFieldsAsync(setRequestFields1, null);
 }
 /// <remarks/>
 public void setRequestFieldsAsync(setRequestFields setRequestFields1, object userState) {
     if ((this.setRequestFieldsOperationCompleted == null)) {
         this.setRequestFieldsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnsetRequestFieldsOperationCompleted);
     }
     this.InvokeAsync("setRequestFields", new object[] {
                 setRequestFields1}, this.setRequestFieldsOperationCompleted, userState);
 }
        static void SetRequestFields(string requestId)
        {
            Console.WriteLine("\nIn SetRequestFields");

            //Set Identifier
            localhostDemandService.Identifier reqId = new localhostDemandService.Identifier();
            reqId.id = requestId;

            //Set Fields
            SimpleField[] fields = new SimpleField[3];
            //Description
            fields[0] = new SimpleField();
            fields[0].token = "REQ.DESCRIPTION";
            fields[0].stringValue = new String[] { "WebService Test Update" };

            //Department
            fields[1] = new SimpleField();
            fields[1].token = "REQ.DEPARTMENT_NAME";
            fields[1].stringValue = new String[] { "Manufacturing" };

            //Module
            fields[2] = new SimpleField();
            fields[2].token = "REQD.VP.MODULE";
            fields[2].stringValue = new String[] { "Module B" };

            //Set the dateValue for each field to a valid value instead of NULL.
            foreach (SimpleField field in fields)
                field.dateValue = DateTime.Now;

            //Call Webservice
            setRequestFields srf = new setRequestFields();
            srf.requestId = reqId;
            srf.fields = fields;
            setRequestFieldsResponse response = serviceProxy.setRequestFields(srf);

            Console.WriteLine("SetRequestFields Succeeded");
            Console.WriteLine("Return Code: " + response.@return);
        }