Type.registerNamespace('ecShop.Web.Soap');
ecShop.Web.Soap.ecShopWS=function() {
ecShop.Web.Soap.ecShopWS.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ecShop.Web.Soap.ecShopWS.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return ecShop.Web.Soap.ecShopWS._staticInstance.get_path();},
GetCaptcha:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCaptcha',false,{},succeededCallback,failedCallback,userContext); },
ecWebLogin:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ecWebLogin',false,{},succeededCallback,failedCallback,userContext); },
GetAddress:function(addressId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAddress',false,{addressId:addressId},succeededCallback,failedCallback,userContext); },
GetAddresses:function(userId,pageType,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAddresses',false,{userId:userId,pageType:pageType},succeededCallback,failedCallback,userContext); },
CreateAddressField:function(name,order,lineBreak,xml,validate,maxLength,defaultValue,isReadOnly,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateAddressField',false,{name:name,order:order,lineBreak:lineBreak,xml:xml,validate:validate,maxLength:maxLength,defaultValue:defaultValue,isReadOnly:isReadOnly},succeededCallback,failedCallback,userContext); },
DeleteAddressField:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteAddressField',false,{id:id},succeededCallback,failedCallback,userContext); },
UpdateAddressFields:function(idArray,nameArray,orderArray,breakArray,xmlArray,validationArray,maxArray,defaultArray,readonlyArray,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateAddressFields',false,{idArray:idArray,nameArray:nameArray,orderArray:orderArray,breakArray:breakArray,xmlArray:xmlArray,validationArray:validationArray,maxArray:maxArray,defaultArray:defaultArray,readonlyArray:readonlyArray},succeededCallback,failedCallback,userContext); },
CreateAddress:function(userId,idArray,valueArray,pageType,isPrimary,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateAddress',false,{userId:userId,idArray:idArray,valueArray:valueArray,pageType:pageType,isPrimary:isPrimary},succeededCallback,failedCallback,userContext); },
CreateAddressInCheckout:function(userId,addressArray,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateAddressInCheckout',false,{userId:userId,addressArray:addressArray},succeededCallback,failedCallback,userContext); },
EditAddress:function(addressId,userId,idArray,valueArray,pageType,isPrimary,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'EditAddress',false,{addressId:addressId,userId:userId,idArray:idArray,valueArray:valueArray,pageType:pageType,isPrimary:isPrimary},succeededCallback,failedCallback,userContext); },
DeleteAddress:function(addressId,pageType,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteAddress',false,{addressId:addressId,pageType:pageType},succeededCallback,failedCallback,userContext); },
GetAddressForm:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAddressForm',false,{},succeededCallback,failedCallback,userContext); },
GetPosts:function(productId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPosts',false,{productId:productId},succeededCallback,failedCallback,userContext); },
PostComment:function(productId,catName,subject,postText,userName,email,customProperties,fromEditor,status,firstPost,captchaHash,captchaInput,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'PostComment',false,{productId:productId,catName:catName,subject:subject,postText:postText,userName:userName,email:email,customProperties:customProperties,fromEditor:fromEditor,status:status,firstPost:firstPost,captchaHash:captchaHash,captchaInput:captchaInput},succeededCallback,failedCallback,userContext); },
UpdateProductRating:function(oldTotalRating,oldTotalVotes,vote,productId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateProductRating',false,{oldTotalRating:oldTotalRating,oldTotalVotes:oldTotalVotes,vote:vote,productId:productId},succeededCallback,failedCallback,userContext); },
TransformBasketXml:function(soapXml,xslt,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'TransformBasketXml',false,{soapXml:soapXml,xslt:xslt},succeededCallback,failedCallback,userContext); },
TransformToXml:function(xml,xslt,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'TransformToXml',false,{xml:xml,xslt:xslt},succeededCallback,failedCallback,userContext); },
UpdateOrderComments:function(shopId,orderId,comments,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateOrderComments',false,{shopId:shopId,orderId:orderId,comments:comments},succeededCallback,failedCallback,userContext); },
UpdateWebpaymentOrderComments:function(shopId,orderId,cookieName,extraComments,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateWebpaymentOrderComments',false,{shopId:shopId,orderId:orderId,cookieName:cookieName,extraComments:extraComments},succeededCallback,failedCallback,userContext); },
UpdateShopSettings:function(keys,values,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateShopSettings',false,{keys:keys,values:values},succeededCallback,failedCallback,userContext); },
ReserveShopSettings:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ReserveShopSettings',false,{},succeededCallback,failedCallback,userContext); },
ReleaseShopSettings:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ReleaseShopSettings',false,{},succeededCallback,failedCallback,userContext); },
DeleteWebpaymentOrder:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteWebpaymentOrder',false,{id:id},succeededCallback,failedCallback,userContext); },
ConvertWebpaymentOrders:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ConvertWebpaymentOrders',false,{},succeededCallback,failedCallback,userContext); },
GetShippingRate:function(agent,postcode,products,quantities,orderPrice,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetShippingRate',false,{agent:agent,postcode:postcode,products:products,quantities:quantities,orderPrice:orderPrice},succeededCallback,failedCallback,userContext); },
GetShippingCost:function(agent,postcode,kg,m3,orderPrice,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetShippingCost',false,{agent:agent,postcode:postcode,kg:kg,m3:m3,orderPrice:orderPrice},succeededCallback,failedCallback,userContext); },
GetSearchFromSession:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetSearchFromSession',false,{},succeededCallback,failedCallback,userContext); },
SearchProducts:function(RowFrom,RowTo,SortBy1,SortBy2,ProductCategory,SearchKeyWord,columns,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SearchProducts',false,{RowFrom:RowFrom,RowTo:RowTo,SortBy1:SortBy1,SortBy2:SortBy2,ProductCategory:ProductCategory,SearchKeyWord:SearchKeyWord,columns:columns},succeededCallback,failedCallback,userContext); },
UpdateIndex:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateIndex',false,{},succeededCallback,failedCallback,userContext); },
GetRelatedProducts:function(products,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetRelatedProducts',false,{products:products},succeededCallback,failedCallback,userContext); },
FormatNumberByCulture:function(culture,number,decimalDigits,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'FormatNumberByCulture',false,{culture:culture,number:number,decimalDigits:decimalDigits},succeededCallback,failedCallback,userContext); }}
ecShop.Web.Soap.ecShopWS.registerClass('ecShop.Web.Soap.ecShopWS',Sys.Net.WebServiceProxy);
ecShop.Web.Soap.ecShopWS._staticInstance = new ecShop.Web.Soap.ecShopWS();
ecShop.Web.Soap.ecShopWS.set_path = function(value) { ecShop.Web.Soap.ecShopWS._staticInstance.set_path(value); }
ecShop.Web.Soap.ecShopWS.get_path = function() { return ecShop.Web.Soap.ecShopWS._staticInstance.get_path(); }
ecShop.Web.Soap.ecShopWS.set_timeout = function(value) { ecShop.Web.Soap.ecShopWS._staticInstance.set_timeout(value); }
ecShop.Web.Soap.ecShopWS.get_timeout = function() { return ecShop.Web.Soap.ecShopWS._staticInstance.get_timeout(); }
ecShop.Web.Soap.ecShopWS.set_defaultUserContext = function(value) { ecShop.Web.Soap.ecShopWS._staticInstance.set_defaultUserContext(value); }
ecShop.Web.Soap.ecShopWS.get_defaultUserContext = function() { return ecShop.Web.Soap.ecShopWS._staticInstance.get_defaultUserContext(); }
ecShop.Web.Soap.ecShopWS.set_defaultSucceededCallback = function(value) { ecShop.Web.Soap.ecShopWS._staticInstance.set_defaultSucceededCallback(value); }
ecShop.Web.Soap.ecShopWS.get_defaultSucceededCallback = function() { return ecShop.Web.Soap.ecShopWS._staticInstance.get_defaultSucceededCallback(); }
ecShop.Web.Soap.ecShopWS.set_defaultFailedCallback = function(value) { ecShop.Web.Soap.ecShopWS._staticInstance.set_defaultFailedCallback(value); }
ecShop.Web.Soap.ecShopWS.get_defaultFailedCallback = function() { return ecShop.Web.Soap.ecShopWS._staticInstance.get_defaultFailedCallback(); }
ecShop.Web.Soap.ecShopWS.set_path("/portfarma/upload/files/templates/soap/ecShopWS.asmx");
ecShop.Web.Soap.ecShopWS.GetCaptcha= function(onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.GetCaptcha(onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.ecWebLogin= function(onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.ecWebLogin(onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.GetAddress= function(addressId,onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.GetAddress(addressId,onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.GetAddresses= function(userId,pageType,onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.GetAddresses(userId,pageType,onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.CreateAddressField= function(name,order,lineBreak,xml,validate,maxLength,defaultValue,isReadOnly,onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.CreateAddressField(name,order,lineBreak,xml,validate,maxLength,defaultValue,isReadOnly,onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.DeleteAddressField= function(id,onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.DeleteAddressField(id,onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.UpdateAddressFields= function(idArray,nameArray,orderArray,breakArray,xmlArray,validationArray,maxArray,defaultArray,readonlyArray,onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.UpdateAddressFields(idArray,nameArray,orderArray,breakArray,xmlArray,validationArray,maxArray,defaultArray,readonlyArray,onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.CreateAddress= function(userId,idArray,valueArray,pageType,isPrimary,onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.CreateAddress(userId,idArray,valueArray,pageType,isPrimary,onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.CreateAddressInCheckout= function(userId,addressArray,onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.CreateAddressInCheckout(userId,addressArray,onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.EditAddress= function(addressId,userId,idArray,valueArray,pageType,isPrimary,onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.EditAddress(addressId,userId,idArray,valueArray,pageType,isPrimary,onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.DeleteAddress= function(addressId,pageType,onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.DeleteAddress(addressId,pageType,onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.GetAddressForm= function(onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.GetAddressForm(onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.GetPosts= function(productId,onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.GetPosts(productId,onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.PostComment= function(productId,catName,subject,postText,userName,email,customProperties,fromEditor,status,firstPost,captchaHash,captchaInput,onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.PostComment(productId,catName,subject,postText,userName,email,customProperties,fromEditor,status,firstPost,captchaHash,captchaInput,onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.UpdateProductRating= function(oldTotalRating,oldTotalVotes,vote,productId,onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.UpdateProductRating(oldTotalRating,oldTotalVotes,vote,productId,onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.TransformBasketXml= function(soapXml,xslt,onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.TransformBasketXml(soapXml,xslt,onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.TransformToXml= function(xml,xslt,onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.TransformToXml(xml,xslt,onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.UpdateOrderComments= function(shopId,orderId,comments,onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.UpdateOrderComments(shopId,orderId,comments,onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.UpdateWebpaymentOrderComments= function(shopId,orderId,cookieName,extraComments,onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.UpdateWebpaymentOrderComments(shopId,orderId,cookieName,extraComments,onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.UpdateShopSettings= function(keys,values,onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.UpdateShopSettings(keys,values,onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.ReserveShopSettings= function(onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.ReserveShopSettings(onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.ReleaseShopSettings= function(onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.ReleaseShopSettings(onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.DeleteWebpaymentOrder= function(id,onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.DeleteWebpaymentOrder(id,onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.ConvertWebpaymentOrders= function(onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.ConvertWebpaymentOrders(onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.GetShippingRate= function(agent,postcode,products,quantities,orderPrice,onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.GetShippingRate(agent,postcode,products,quantities,orderPrice,onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.GetShippingCost= function(agent,postcode,kg,m3,orderPrice,onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.GetShippingCost(agent,postcode,kg,m3,orderPrice,onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.GetSearchFromSession= function(onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.GetSearchFromSession(onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.SearchProducts= function(RowFrom,RowTo,SortBy1,SortBy2,ProductCategory,SearchKeyWord,columns,onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.SearchProducts(RowFrom,RowTo,SortBy1,SortBy2,ProductCategory,SearchKeyWord,columns,onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.UpdateIndex= function(onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.UpdateIndex(onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.GetRelatedProducts= function(products,onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.GetRelatedProducts(products,onSuccess,onFailed,userContext); }
ecShop.Web.Soap.ecShopWS.FormatNumberByCulture= function(culture,number,decimalDigits,onSuccess,onFailed,userContext) {ecShop.Web.Soap.ecShopWS._staticInstance.FormatNumberByCulture(culture,number,decimalDigits,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('ecShop.Data.Core');
if (typeof(ecShop.Data.Core.ShippingPrice) === 'undefined') {
ecShop.Data.Core.ShippingPrice=gtc("ecShop.Data.Core.ShippingPrice");
ecShop.Data.Core.ShippingPrice.registerClass('ecShop.Data.Core.ShippingPrice');
}
