BR99076095
G3 G3 CGH SDU 2007-02-07T00:00:00Z
#### /* * C# code that access the air company .NET werbservices */ using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Fly.FlighInformation; namespace Fly { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { Fly.FlighInformation.req_envelope Request = new req_envelope (); Fly.FlighInformation.resp_envelope Response = new resp_envelope(); Fly.FlighInformation.wsFlightInformation s = new wsFlightInformation(); Fly.FlighInformation.clsFlightInformationRequestHeader header = new clsFlightInformationRequestHeader(); Fly.FlighInformation.clsFlightInfoRequestInput body = new clsFlightInfoRequestInput(); Fly.FlighInformation.clsFlightInformationRequest inforequest = new clsFlightInformationRequest (); Fly.FlighInformation.clsFlightInformationRequestBody requestbody = new clsFlightInformationRequestBody(); header.CodAgency = "BR99076095"; body.CarrierAccount = "G3"; body.CarrierCode = "G3"; body.DepartureDate = "2007-02-07T00:00:00Z"; body.Origin = "CGH"; body.Destination = "SDU"; inforequest.input = body; requestbody.getFlightInfo = inforequest; Request.header = header; Request.body = requestbody; Response = s.FlightInformation( Request ); if (Response.body.getFlightInfoResponse.output.ResultCode == 0) { label1.Text = "Finish with sucess"; } else { label1.Text = "Failed"; } } } }