//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version: 1.0.3705.0
//
//     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.0.3705.0.
// 
namespace JBoss_Net_Sample.businessPartner {
    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="BusinessPartnerServiceSoapBinding", Namespace="http://localhost/axis/services/BusinessPartnerService")]
    public class BusinessPartnerServiceService : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        /// <remarks/>
        public BusinessPartnerServiceService() {
            this.Url = "http://localhost/axis/services/BusinessPartnerService";
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace="http://localhost/axis/services/BusinessPartnerService", ResponseNamespace="http://localhost/axis/services/BusinessPartnerService")]
        [return: System.Xml.Serialization.SoapElementAttribute("return")]
        public BusinessPartner create(string in0) {
            object[] results = this.Invoke("create", new object[] {
                        in0});
            return ((BusinessPartner)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult Begincreate(string in0, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("create", new object[] {
                        in0}, callback, asyncState);
        }
        
        /// <remarks/>
        public BusinessPartner Endcreate(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((BusinessPartner)(results[0]));
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace="http://localhost/axis/services/BusinessPartnerService", ResponseNamespace="http://localhost/axis/services/BusinessPartnerService")]
        public void delete(BusinessPartner in0) {
            this.Invoke("delete", new object[] {
                        in0});
        }
        
        /// <remarks/>
        public System.IAsyncResult Begindelete(BusinessPartner in0, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("delete", new object[] {
                        in0}, callback, asyncState);
        }
        
        /// <remarks/>
        public void Enddelete(System.IAsyncResult asyncResult) {
            this.EndInvoke(asyncResult);
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace="http://localhost/axis/services/BusinessPartnerService", ResponseNamespace="http://localhost/axis/services/BusinessPartnerService")]
        [return: System.Xml.Serialization.SoapElementAttribute("return")]
        public BusinessPartner[] findAll() {
            object[] results = this.Invoke("findAll", new object[0]);
            return ((BusinessPartner[])(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginfindAll(System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("findAll", new object[0], callback, asyncState);
        }
        
        /// <remarks/>
        public BusinessPartner[] EndfindAll(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((BusinessPartner[])(results[0]));
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace="http://localhost/axis/services/BusinessPartnerService", ResponseNamespace="http://localhost/axis/services/BusinessPartnerService")]
        public void update(BusinessPartner in0) {
            this.Invoke("update", new object[] {
                        in0});
        }
        
        /// <remarks/>
        public System.IAsyncResult Beginupdate(BusinessPartner in0, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("update", new object[] {
                        in0}, callback, asyncState);
        }
        
        /// <remarks/>
        public void Endupdate(System.IAsyncResult asyncResult) {
            this.EndInvoke(asyncResult);
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace="http://localhost/axis/services/BusinessPartnerService", ResponseNamespace="http://localhost/axis/services/BusinessPartnerService")]
        [return: System.Xml.Serialization.SoapElementAttribute("return")]
        public BusinessPartner findByName(string in0) {
            object[] results = this.Invoke("findByName", new object[] {
                        in0});
            return ((BusinessPartner)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginfindByName(string in0, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("findByName", new object[] {
                        in0}, callback, asyncState);
        }
        
        /// <remarks/>
        public BusinessPartner EndfindByName(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((BusinessPartner)(results[0]));
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.SoapTypeAttribute("BusinessPartner", "http://net.jboss.org/samples/store")]
    public class BusinessPartner {
        
        /// <remarks/>
        public string name;
        
        /// <remarks/>
        public Address address;
    }
    
    /// <remarks/>
    [System.Xml.Serialization.SoapTypeAttribute("Address", "http://net.jboss.org/samples/store")]
    public class Address {
        
        /// <remarks/>
        public int streetNum;
        
        /// <remarks/>
        public string streetName;
        
        /// <remarks/>
        public string city;
        
        /// <remarks/>
        public StateType state;
        
        /// <remarks/>
        public int zip;
        
        /// <remarks/>
        public Phone phoneNumber;
    }
    
    /// <remarks/>
    [System.Xml.Serialization.SoapTypeAttribute("StateType", "http://net.jboss.org/samples/store")]
    public enum StateType {
        
        /// <remarks/>
        TX,
        
        /// <remarks/>
        IN,
        
        /// <remarks/>
        OH,
    }
    
    /// <remarks/>
    [System.Xml.Serialization.SoapTypeAttribute("Phone", "http://net.jboss.org/samples/store")]
    public class Phone {
        
        /// <remarks/>
        public int areaCode;
        
        /// <remarks/>
        public string exchange;
        
        /// <remarks/>
        public string number;
    }
}
