Type.registerNamespace('Services');
Services.Communication=function() {
Services.Communication.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Services.Communication.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Services.Communication._staticInstance.get_path();},
DoWork:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DoWork',false,{},succeededCallback,failedCallback,userContext); },
GetShipCodeList:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetShipCodeList',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
GetShipCodeListTest:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetShipCodeListTest',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
PlaceBid:function(productNumber,desiredQuantity,desiredPrice,emailAddress,phoneNumber,notes,userName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'PlaceBid',false,{productNumber:productNumber,desiredQuantity:desiredQuantity,desiredPrice:desiredPrice,emailAddress:emailAddress,phoneNumber:phoneNumber,notes:notes,userName:userName},succeededCallback,failedCallback,userContext); },
SendEmail:function(productDescription,fullName,emailSubject,phoneNumber,emailAddress,emailMessage,userName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SendEmail',false,{productDescription:productDescription,fullName:fullName,emailSubject:emailSubject,phoneNumber:phoneNumber,emailAddress:emailAddress,emailMessage:emailMessage,userName:userName},succeededCallback,failedCallback,userContext); },
SubcribeToMailingList:function(emailAddress,userName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SubcribeToMailingList',false,{emailAddress:emailAddress,userName:userName},succeededCallback,failedCallback,userContext); },
AddProductToShoppingCart:function(productId,productNumber,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddProductToShoppingCart',false,{productId:productId,productNumber:productNumber},succeededCallback,failedCallback,userContext); }}
Services.Communication.registerClass('Services.Communication',Sys.Net.WebServiceProxy);
Services.Communication._staticInstance = new Services.Communication();
Services.Communication.set_path = function(value) { Services.Communication._staticInstance.set_path(value); }
Services.Communication.get_path = function() { return Services.Communication._staticInstance.get_path(); }
Services.Communication.set_timeout = function(value) { Services.Communication._staticInstance.set_timeout(value); }
Services.Communication.get_timeout = function() { return Services.Communication._staticInstance.get_timeout(); }
Services.Communication.set_defaultUserContext = function(value) { Services.Communication._staticInstance.set_defaultUserContext(value); }
Services.Communication.get_defaultUserContext = function() { return Services.Communication._staticInstance.get_defaultUserContext(); }
Services.Communication.set_defaultSucceededCallback = function(value) { Services.Communication._staticInstance.set_defaultSucceededCallback(value); }
Services.Communication.get_defaultSucceededCallback = function() { return Services.Communication._staticInstance.get_defaultSucceededCallback(); }
Services.Communication.set_defaultFailedCallback = function(value) { Services.Communication._staticInstance.set_defaultFailedCallback(value); }
Services.Communication.get_defaultFailedCallback = function() { return Services.Communication._staticInstance.get_defaultFailedCallback(); }
Services.Communication.set_path("/Services/Communication.svc");
Services.Communication.DoWork= function(onSuccess,onFailed,userContext) {Services.Communication._staticInstance.DoWork(onSuccess,onFailed,userContext); }
Services.Communication.GetShipCodeList= function(prefixText,count,onSuccess,onFailed,userContext) {Services.Communication._staticInstance.GetShipCodeList(prefixText,count,onSuccess,onFailed,userContext); }
Services.Communication.GetShipCodeListTest= function(prefixText,count,onSuccess,onFailed,userContext) {Services.Communication._staticInstance.GetShipCodeListTest(prefixText,count,onSuccess,onFailed,userContext); }
Services.Communication.PlaceBid= function(productNumber,desiredQuantity,desiredPrice,emailAddress,phoneNumber,notes,userName,onSuccess,onFailed,userContext) {Services.Communication._staticInstance.PlaceBid(productNumber,desiredQuantity,desiredPrice,emailAddress,phoneNumber,notes,userName,onSuccess,onFailed,userContext); }
Services.Communication.SendEmail= function(productDescription,fullName,emailSubject,phoneNumber,emailAddress,emailMessage,userName,onSuccess,onFailed,userContext) {Services.Communication._staticInstance.SendEmail(productDescription,fullName,emailSubject,phoneNumber,emailAddress,emailMessage,userName,onSuccess,onFailed,userContext); }
Services.Communication.SubcribeToMailingList= function(emailAddress,userName,onSuccess,onFailed,userContext) {Services.Communication._staticInstance.SubcribeToMailingList(emailAddress,userName,onSuccess,onFailed,userContext); }
Services.Communication.AddProductToShoppingCart= function(productId,productNumber,onSuccess,onFailed,userContext) {Services.Communication._staticInstance.AddProductToShoppingCart(productId,productNumber,onSuccess,onFailed,userContext); }
