public bool GetDetail(
            string connectionNumber,
            string flightDate,
            string noAvailability,
            string travelAgency)
        {
            _flightConnDetail     = new SAP_FLIGHTCONNDETAIL.BAPI_FLCONN_GETDETAILService();
            _flightConnDetail.Url =
                Properties.Settings.Default.ContosoTours_SAPServices_SAP_FLIGHTCONNDETAIL_BAPI_FLCONN_GETDETAILService;
            _flightConnDetail.Credentials = SAPIdentity;

            _bapiAvailability = new SAP_FLIGHTCONNDETAIL.BAPISCOAVA[0];
            _bapiHopList      = new SAP_FLIGHTCONNDETAIL.BAPISCOHOP[0];
            _bapiPrice        = new SAP_FLIGHTCONNDETAIL.BAPISCOPRI();

            SAP_FLIGHTCONNDETAIL.BAPIPAREX[] bapiExtensionIn  = new SAP_FLIGHTCONNDETAIL.BAPIPAREX[0];
            SAP_FLIGHTCONNDETAIL.BAPIPAREX[] bapiExtensionOut = new SAP_FLIGHTCONNDETAIL.BAPIPAREX[0];
            _bapiReturnDetail = new SAP_FLIGHTCONNDETAIL.BAPIRET2[0];

            _flightConnDetail.BAPI_FLCONN_GETDETAIL(
                ref _bapiAvailability,
                connectionNumber,
                ref bapiExtensionIn,
                ref bapiExtensionOut,
                flightDate,
                ref _bapiHopList,
                noAvailability,
                ref _bapiReturnDetail,
                travelAgency,
                out _bapiPrice);

            return(_bapiReturnDetail.Length == 1);
        }
        public BAPISCODAT BAPI_FLCONN_GETDETAIL([System.Xml.Serialization.XmlArrayAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)][System.Xml.Serialization.XmlArrayItemAttribute("item", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = false)] ref BAPISCOAVA[] AVAILIBILITY, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string CONNECTIONNUMBER, [System.Xml.Serialization.XmlArrayAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)][System.Xml.Serialization.XmlArrayItemAttribute("item", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = false)] ref BAPIPAREX[] EXTENSION_IN, [System.Xml.Serialization.XmlArrayAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)][System.Xml.Serialization.XmlArrayItemAttribute("item", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = false)] ref BAPIPAREX[] EXTENSION_OUT, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string FLIGHTDATE, [System.Xml.Serialization.XmlArrayAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)][System.Xml.Serialization.XmlArrayItemAttribute("item", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = false)] ref BAPISCOHOP[] FLIGHT_HOP_LIST, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string NO_AVAILIBILITY, [System.Xml.Serialization.XmlArrayAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)][System.Xml.Serialization.XmlArrayItemAttribute("item", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = false)] ref BAPIRET2[] RETURN, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string TRAVELAGENCYNUMBER, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] out BAPISCOPRI PRICE_INFO)
        {
            object[] results = this.Invoke("BAPI_FLCONN_GETDETAIL", new object[] {
                AVAILIBILITY,
                CONNECTIONNUMBER,
                EXTENSION_IN,
                EXTENSION_OUT,
                FLIGHTDATE,
                FLIGHT_HOP_LIST,
                NO_AVAILIBILITY,
                RETURN,
                TRAVELAGENCYNUMBER
            });

            AVAILIBILITY    = ((BAPISCOAVA[])(results[1]));
            EXTENSION_IN    = ((BAPIPAREX[])(results[2]));
            EXTENSION_OUT   = ((BAPIPAREX[])(results[3]));
            FLIGHT_HOP_LIST = ((BAPISCOHOP[])(results[4]));
            RETURN          = ((BAPIRET2[])(results[5]));
            PRICE_INFO      = ((BAPISCOPRI)(results[6]));
            return((BAPISCODAT)(results[0]));
        }