/// <remarks/>
 public void createRequestAsync(createRequest createRequest1) {
     this.createRequestAsync(createRequest1, null);
 }
 /// <remarks/>
 public void createRequestAsync(createRequest createRequest1, object userState) {
     if ((this.createRequestOperationCompleted == null)) {
         this.createRequestOperationCompleted = new System.Threading.SendOrPostCallback(this.OncreateRequestOperationCompleted);
     }
     this.InvokeAsync("createRequest", new object[] {
                 createRequest1}, this.createRequestOperationCompleted, userState);
 }
        static string CreateRequest()
        {
            Console.WriteLine("\nIn CreateRequest");

            //Convert request bean to the client stub
            Request request = new Request();
            request.requestType = "Bug";

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

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

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

            //Platform
            fields[3] = new SimpleField();
            fields[3].token = "REQD.VP.PLATFORM";
            fields[3].stringValue = new String[] { "Unix" };

            //Impact
            fields[4] = new SimpleField();
            fields[4].token = "REQD.VP.IMPACT";
            fields[4].stringValue = new String[] { "Warning" };

            //Reproducible
            fields[5] = new SimpleField();
            fields[5].token = "REQD.VP.REPRO";
            fields[5].stringValue = new String[] { "Y" };

            //Add fields to request
            request.simpleFields = fields;

            //Set Notes
            Note[] notes = new Note[1];
            notes[0] = new Note();
            notes[0].author =  "admin";
            notes[0].content = "WebService Test Note";
            notes[0].creationDate = DateTime.Now;

            //Add notes to request
            request.notes = notes;

            //Call Webservice
            createRequest cr = new createRequest();
            cr.requestObj = request;
            createRequestResponse response = serviceProxy.createRequest(cr);

            Console.WriteLine("createRequest Succeeded");
            Console.WriteLine("Request: " + [email protected] + " Status: " + [email protected]);
            return [email protected];
        }