//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:2.0.50727.4927
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
//
// This source code was auto-generated by Microsoft.VSDesigner, Version 2.0.50727.4927.
//
#pragma warning disable 1591
namespace TestDealerService.WSStockEnq {
using System.Diagnostics;
using System.Web.Services;
using System.ComponentModel;
using System.Web.Services.Protocols;
using System;
using System.Xml.Serialization;
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="StockEnqSoap", Namespace="http://tempuri.org/")]
public partial class StockEnq : System.Web.Services.Protocols.SoapHttpClientProtocol {
private System.Threading.SendOrPostCallback HelloWorldOperationCompleted;
private System.Threading.SendOrPostCallback StockItemEnqByCodeOperationCompleted;
private System.Threading.SendOrPostCallback StockItemEnqByMultipleCodesOperationCompleted;
private System.Threading.SendOrPostCallback StockItemEnqByBrandNameOperationCompleted;
private System.Threading.SendOrPostCallback StockItemEnqUpdatedByDateOperationCompleted;
private System.Threading.SendOrPostCallback StockItemEnqNewByDateOperationCompleted;
private System.Threading.SendOrPostCallback StockItemEnqFromAllBranchesByCodeOperationCompleted;
private bool useDefaultCredentialsSetExplicitly;
///
public StockEnq() {
this.Url = global::TestDealerService.Properties.Settings.Default.TestDealerService_WSStockEnq_StockEnq;
if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
this.UseDefaultCredentials = true;
this.useDefaultCredentialsSetExplicitly = false;
}
else {
this.useDefaultCredentialsSetExplicitly = true;
}
}
public new string Url {
get {
return base.Url;
}
set {
if ((((this.IsLocalFileSystemWebService(base.Url) == true)
&& (this.useDefaultCredentialsSetExplicitly == false))
&& (this.IsLocalFileSystemWebService(value) == false))) {
base.UseDefaultCredentials = false;
}
base.Url = value;
}
}
public new bool UseDefaultCredentials {
get {
return base.UseDefaultCredentials;
}
set {
base.UseDefaultCredentials = value;
this.useDefaultCredentialsSetExplicitly = true;
}
}
///
public event HelloWorldCompletedEventHandler HelloWorldCompleted;
///
public event StockItemEnqByCodeCompletedEventHandler StockItemEnqByCodeCompleted;
///
public event StockItemEnqByMultipleCodesCompletedEventHandler StockItemEnqByMultipleCodesCompleted;
///
public event StockItemEnqByBrandNameCompletedEventHandler StockItemEnqByBrandNameCompleted;
///
public event StockItemEnqUpdatedByDateCompletedEventHandler StockItemEnqUpdatedByDateCompleted;
///
public event StockItemEnqNewByDateCompletedEventHandler StockItemEnqNewByDateCompleted;
///
public event StockItemEnqFromAllBranchesByCodeCompletedEventHandler StockItemEnqFromAllBranchesByCodeCompleted;
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/HelloWorld", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string HelloWorld() {
object[] results = this.Invoke("HelloWorld", new object[0]);
return ((string)(results[0]));
}
///
public void HelloWorldAsync() {
this.HelloWorldAsync(null);
}
///
public void HelloWorldAsync(object userState) {
if ((this.HelloWorldOperationCompleted == null)) {
this.HelloWorldOperationCompleted = new System.Threading.SendOrPostCallback(this.OnHelloWorldOperationCompleted);
}
this.InvokeAsync("HelloWorld", new object[0], this.HelloWorldOperationCompleted, userState);
}
private void OnHelloWorldOperationCompleted(object arg) {
if ((this.HelloWorldCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.HelloWorldCompleted(this, new HelloWorldCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/StockItemEnqByCode", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public StockItem StockItemEnqByCode(string Code) {
object[] results = this.Invoke("StockItemEnqByCode", new object[] {
Code});
return ((StockItem)(results[0]));
}
///
public void StockItemEnqByCodeAsync(string Code) {
this.StockItemEnqByCodeAsync(Code, null);
}
///
public void StockItemEnqByCodeAsync(string Code, object userState) {
if ((this.StockItemEnqByCodeOperationCompleted == null)) {
this.StockItemEnqByCodeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnStockItemEnqByCodeOperationCompleted);
}
this.InvokeAsync("StockItemEnqByCode", new object[] {
Code}, this.StockItemEnqByCodeOperationCompleted, userState);
}
private void OnStockItemEnqByCodeOperationCompleted(object arg) {
if ((this.StockItemEnqByCodeCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.StockItemEnqByCodeCompleted(this, new StockItemEnqByCodeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/StockItemEnqByMultipleCodes", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public StockItem[] StockItemEnqByMultipleCodes(string[] Codes) {
object[] results = this.Invoke("StockItemEnqByMultipleCodes", new object[] {
Codes});
return ((StockItem[])(results[0]));
}
///
public void StockItemEnqByMultipleCodesAsync(string[] Codes) {
this.StockItemEnqByMultipleCodesAsync(Codes, null);
}
///
public void StockItemEnqByMultipleCodesAsync(string[] Codes, object userState) {
if ((this.StockItemEnqByMultipleCodesOperationCompleted == null)) {
this.StockItemEnqByMultipleCodesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnStockItemEnqByMultipleCodesOperationCompleted);
}
this.InvokeAsync("StockItemEnqByMultipleCodes", new object[] {
Codes}, this.StockItemEnqByMultipleCodesOperationCompleted, userState);
}
private void OnStockItemEnqByMultipleCodesOperationCompleted(object arg) {
if ((this.StockItemEnqByMultipleCodesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.StockItemEnqByMultipleCodesCompleted(this, new StockItemEnqByMultipleCodesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/StockItemEnqByBrandName", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public StockItem[] StockItemEnqByBrandName(string BrandName) {
object[] results = this.Invoke("StockItemEnqByBrandName", new object[] {
BrandName});
return ((StockItem[])(results[0]));
}
///
public void StockItemEnqByBrandNameAsync(string BrandName) {
this.StockItemEnqByBrandNameAsync(BrandName, null);
}
///
public void StockItemEnqByBrandNameAsync(string BrandName, object userState) {
if ((this.StockItemEnqByBrandNameOperationCompleted == null)) {
this.StockItemEnqByBrandNameOperationCompleted = new System.Threading.SendOrPostCallback(this.OnStockItemEnqByBrandNameOperationCompleted);
}
this.InvokeAsync("StockItemEnqByBrandName", new object[] {
BrandName}, this.StockItemEnqByBrandNameOperationCompleted, userState);
}
private void OnStockItemEnqByBrandNameOperationCompleted(object arg) {
if ((this.StockItemEnqByBrandNameCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.StockItemEnqByBrandNameCompleted(this, new StockItemEnqByBrandNameCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/StockItemEnqUpdatedByDate", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public StockItem[] StockItemEnqUpdatedByDate(System.DateTime FromDate) {
object[] results = this.Invoke("StockItemEnqUpdatedByDate", new object[] {
FromDate});
return ((StockItem[])(results[0]));
}
///
public void StockItemEnqUpdatedByDateAsync(System.DateTime FromDate) {
this.StockItemEnqUpdatedByDateAsync(FromDate, null);
}
///
public void StockItemEnqUpdatedByDateAsync(System.DateTime FromDate, object userState) {
if ((this.StockItemEnqUpdatedByDateOperationCompleted == null)) {
this.StockItemEnqUpdatedByDateOperationCompleted = new System.Threading.SendOrPostCallback(this.OnStockItemEnqUpdatedByDateOperationCompleted);
}
this.InvokeAsync("StockItemEnqUpdatedByDate", new object[] {
FromDate}, this.StockItemEnqUpdatedByDateOperationCompleted, userState);
}
private void OnStockItemEnqUpdatedByDateOperationCompleted(object arg) {
if ((this.StockItemEnqUpdatedByDateCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.StockItemEnqUpdatedByDateCompleted(this, new StockItemEnqUpdatedByDateCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/StockItemEnqNewByDate", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public StockItem[] StockItemEnqNewByDate(System.DateTime FromDate) {
object[] results = this.Invoke("StockItemEnqNewByDate", new object[] {
FromDate});
return ((StockItem[])(results[0]));
}
///
public void StockItemEnqNewByDateAsync(System.DateTime FromDate) {
this.StockItemEnqNewByDateAsync(FromDate, null);
}
///
public void StockItemEnqNewByDateAsync(System.DateTime FromDate, object userState) {
if ((this.StockItemEnqNewByDateOperationCompleted == null)) {
this.StockItemEnqNewByDateOperationCompleted = new System.Threading.SendOrPostCallback(this.OnStockItemEnqNewByDateOperationCompleted);
}
this.InvokeAsync("StockItemEnqNewByDate", new object[] {
FromDate}, this.StockItemEnqNewByDateOperationCompleted, userState);
}
private void OnStockItemEnqNewByDateOperationCompleted(object arg) {
if ((this.StockItemEnqNewByDateCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.StockItemEnqNewByDateCompleted(this, new StockItemEnqNewByDateCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/StockItemEnqFromAllBranchesByCode", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string StockItemEnqFromAllBranchesByCode(string Code) {
object[] results = this.Invoke("StockItemEnqFromAllBranchesByCode", new object[] {
Code});
return ((string)(results[0]));
}
///
public void StockItemEnqFromAllBranchesByCodeAsync(string Code) {
this.StockItemEnqFromAllBranchesByCodeAsync(Code, null);
}
///
public void StockItemEnqFromAllBranchesByCodeAsync(string Code, object userState) {
if ((this.StockItemEnqFromAllBranchesByCodeOperationCompleted == null)) {
this.StockItemEnqFromAllBranchesByCodeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnStockItemEnqFromAllBranchesByCodeOperationCompleted);
}
this.InvokeAsync("StockItemEnqFromAllBranchesByCode", new object[] {
Code}, this.StockItemEnqFromAllBranchesByCodeOperationCompleted, userState);
}
private void OnStockItemEnqFromAllBranchesByCodeOperationCompleted(object arg) {
if ((this.StockItemEnqFromAllBranchesByCodeCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.StockItemEnqFromAllBranchesByCodeCompleted(this, new StockItemEnqFromAllBranchesByCodeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
public new void CancelAsync(object userState) {
base.CancelAsync(userState);
}
private bool IsLocalFileSystemWebService(string url) {
if (((url == null)
|| (url == string.Empty))) {
return false;
}
System.Uri wsUri = new System.Uri(url);
if (((wsUri.Port >= 1024)
&& (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
return true;
}
return false;
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.4927")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
public partial class StockItem {
private string codeField;
private string descriptionField;
private string vendorCodeField;
private decimal priceField;
private string availabilityField;
private bool activeField;
private bool isNullField;
///
public string Code {
get {
return this.codeField;
}
set {
this.codeField = value;
}
}
///
public string Description {
get {
return this.descriptionField;
}
set {
this.descriptionField = value;
}
}
///
public string VendorCode {
get {
return this.vendorCodeField;
}
set {
this.vendorCodeField = value;
}
}
///
public decimal Price {
get {
return this.priceField;
}
set {
this.priceField = value;
}
}
///
public string Availability {
get {
return this.availabilityField;
}
set {
this.availabilityField = value;
}
}
///
public bool Active {
get {
return this.activeField;
}
set {
this.activeField = value;
}
}
///
public bool IsNull {
get {
return this.isNullField;
}
set {
this.isNullField = value;
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")]
public delegate void HelloWorldCompletedEventHandler(object sender, HelloWorldCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class HelloWorldCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal HelloWorldCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")]
public delegate void StockItemEnqByCodeCompletedEventHandler(object sender, StockItemEnqByCodeCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class StockItemEnqByCodeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal StockItemEnqByCodeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public StockItem Result {
get {
this.RaiseExceptionIfNecessary();
return ((StockItem)(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")]
public delegate void StockItemEnqByMultipleCodesCompletedEventHandler(object sender, StockItemEnqByMultipleCodesCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class StockItemEnqByMultipleCodesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal StockItemEnqByMultipleCodesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public StockItem[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((StockItem[])(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")]
public delegate void StockItemEnqByBrandNameCompletedEventHandler(object sender, StockItemEnqByBrandNameCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class StockItemEnqByBrandNameCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal StockItemEnqByBrandNameCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public StockItem[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((StockItem[])(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")]
public delegate void StockItemEnqUpdatedByDateCompletedEventHandler(object sender, StockItemEnqUpdatedByDateCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class StockItemEnqUpdatedByDateCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal StockItemEnqUpdatedByDateCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public StockItem[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((StockItem[])(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")]
public delegate void StockItemEnqNewByDateCompletedEventHandler(object sender, StockItemEnqNewByDateCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class StockItemEnqNewByDateCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal StockItemEnqNewByDateCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public StockItem[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((StockItem[])(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")]
public delegate void StockItemEnqFromAllBranchesByCodeCompletedEventHandler(object sender, StockItemEnqFromAllBranchesByCodeCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class StockItemEnqFromAllBranchesByCodeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal StockItemEnqFromAllBranchesByCodeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
}
#pragma warning restore 1591