//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version: 1.1.4322.573
//
//     Changes to this file may cause incorrect behavior and will be lost if 
//     the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

// 
// This source code was auto-generated by Microsoft.VSDesigner, Version 1.1.4322.573.
// 
namespace CommerceApp.CommerceWS {
    using System.Diagnostics;
    using System.Xml.Serialization;
    using System;
    using System.Web.Services.Protocols;
    using System.ComponentModel;
    using System.Web.Services;
    
    
    /// <remarks/>
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="InstantOrderSoap", Namespace="http://tempuri.org/")]
    public class InstantOrder : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        /// <remarks/>
        public InstantOrder() {
            this.Url = "http://localhost/CommerceCSVS/InstantOrder.asmx";
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/OrderItem", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public OrderDetails OrderItem(string userName, string password, int productID, int quantity) {
            object[] results = this.Invoke("OrderItem", new object[] {
                        userName,
                        password,
                        productID,
                        quantity});
            return ((OrderDetails)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginOrderItem(string userName, string password, int productID, int quantity, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("OrderItem", new object[] {
                        userName,
                        password,
                        productID,
                        quantity}, callback, asyncState);
        }
        
        /// <remarks/>
        public OrderDetails EndOrderItem(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((OrderDetails)(results[0]));
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/CheckStatus", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public OrderDetails CheckStatus(string userName, string password, int orderID) {
            object[] results = this.Invoke("CheckStatus", new object[] {
                        userName,
                        password,
                        orderID});
            return ((OrderDetails)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginCheckStatus(string userName, string password, int orderID, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("CheckStatus", new object[] {
                        userName,
                        password,
                        orderID}, callback, asyncState);
        }
        
        /// <remarks/>
        public OrderDetails EndCheckStatus(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((OrderDetails)(results[0]));
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
    public class OrderDetails {
        
        /// <remarks/>
        public System.DateTime OrderDate;
        
        /// <remarks/>
        public System.DateTime ShipDate;
        
        /// <remarks/>
        public System.Decimal OrderTotal;
        
        /// <remarks/>
        public System.Data.DataSet OrderItems;
    }
}
