//------------------------------------------------------------------------------
//
// 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.WSProductEnq {
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="ProductEnqSoap", Namespace="http://tempuri.org/")]
public partial class ProductEnq : System.Web.Services.Protocols.SoapHttpClientProtocol {
private System.Threading.SendOrPostCallback ProductEnqByCodeOperationCompleted;
private System.Threading.SendOrPostCallback ProductEnqByMultipleCodesOperationCompleted;
private bool useDefaultCredentialsSetExplicitly;
///
public ProductEnq() {
this.Url = global::TestDealerService.Properties.Settings.Default.TestDealerService_WSProductEnq_ProductEnq;
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 ProductEnqByCodeCompletedEventHandler ProductEnqByCodeCompleted;
///
public event ProductEnqByMultipleCodesCompletedEventHandler ProductEnqByMultipleCodesCompleted;
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/ProductEnqByCode", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public Product ProductEnqByCode(string Code) {
object[] results = this.Invoke("ProductEnqByCode", new object[] {
Code});
return ((Product)(results[0]));
}
///
public void ProductEnqByCodeAsync(string Code) {
this.ProductEnqByCodeAsync(Code, null);
}
///
public void ProductEnqByCodeAsync(string Code, object userState) {
if ((this.ProductEnqByCodeOperationCompleted == null)) {
this.ProductEnqByCodeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnProductEnqByCodeOperationCompleted);
}
this.InvokeAsync("ProductEnqByCode", new object[] {
Code}, this.ProductEnqByCodeOperationCompleted, userState);
}
private void OnProductEnqByCodeOperationCompleted(object arg) {
if ((this.ProductEnqByCodeCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ProductEnqByCodeCompleted(this, new ProductEnqByCodeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/ProductEnqByMultipleCodes", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public Product[] ProductEnqByMultipleCodes(string[] Codes) {
object[] results = this.Invoke("ProductEnqByMultipleCodes", new object[] {
Codes});
return ((Product[])(results[0]));
}
///
public void ProductEnqByMultipleCodesAsync(string[] Codes) {
this.ProductEnqByMultipleCodesAsync(Codes, null);
}
///
public void ProductEnqByMultipleCodesAsync(string[] Codes, object userState) {
if ((this.ProductEnqByMultipleCodesOperationCompleted == null)) {
this.ProductEnqByMultipleCodesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnProductEnqByMultipleCodesOperationCompleted);
}
this.InvokeAsync("ProductEnqByMultipleCodes", new object[] {
Codes}, this.ProductEnqByMultipleCodesOperationCompleted, userState);
}
private void OnProductEnqByMultipleCodesOperationCompleted(object arg) {
if ((this.ProductEnqByMultipleCodesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ProductEnqByMultipleCodesCompleted(this, new ProductEnqByMultipleCodesCompletedEventArgs(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 Product {
private string codeField;
private string nameField;
private string shortDescriptionField;
private string fullDescriptionField;
private string brandNameField;
private string uRLField;
private string imageURLField;
private StockItem stockInfoField;
private bool isNullField;
///
public string Code {
get {
return this.codeField;
}
set {
this.codeField = value;
}
}
///
public string Name {
get {
return this.nameField;
}
set {
this.nameField = value;
}
}
///
public string ShortDescription {
get {
return this.shortDescriptionField;
}
set {
this.shortDescriptionField = value;
}
}
///
public string FullDescription {
get {
return this.fullDescriptionField;
}
set {
this.fullDescriptionField = value;
}
}
///
public string BrandName {
get {
return this.brandNameField;
}
set {
this.brandNameField = value;
}
}
///
public string URL {
get {
return this.uRLField;
}
set {
this.uRLField = value;
}
}
///
public string ImageURL {
get {
return this.imageURLField;
}
set {
this.imageURLField = value;
}
}
///
public StockItem StockInfo {
get {
return this.stockInfoField;
}
set {
this.stockInfoField = value;
}
}
///
public bool IsNull {
get {
return this.isNullField;
}
set {
this.isNullField = value;
}
}
}
///
[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 decimal priceField;
private string availabilityField;
private bool isNullField;
///
public string Code {
get {
return this.codeField;
}
set {
this.codeField = 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 IsNull {
get {
return this.isNullField;
}
set {
this.isNullField = value;
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")]
public delegate void ProductEnqByCodeCompletedEventHandler(object sender, ProductEnqByCodeCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ProductEnqByCodeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ProductEnqByCodeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public Product Result {
get {
this.RaiseExceptionIfNecessary();
return ((Product)(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")]
public delegate void ProductEnqByMultipleCodesCompletedEventHandler(object sender, ProductEnqByMultipleCodesCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ProductEnqByMultipleCodesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ProductEnqByMultipleCodesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public Product[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((Product[])(this.results[0]));
}
}
}
}
#pragma warning restore 1591