var Basket=function() {
Basket.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Basket.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Basket._staticInstance.get_path();},
HelloWorld:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'HelloWorld',false,{},succeededCallback,failedCallback,userContext); },
AddPNOToBasket:function(pno,checkoutsequence,succeededCallback, failedCallback, userContext) {
/// <param name="pno" type="Number">System.Int32</param>
/// <param name="checkoutsequence" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'AddPNOToBasket',false,{pno:pno,checkoutsequence:checkoutsequence},succeededCallback,failedCallback,userContext); }}
Basket.registerClass('Basket',Sys.Net.WebServiceProxy);
Basket._staticInstance = new Basket();
Basket.set_path = function(value) {
Basket._staticInstance.set_path(value); }
Basket.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Basket._staticInstance.get_path();}
Basket.set_timeout = function(value) {
Basket._staticInstance.set_timeout(value); }
Basket.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Basket._staticInstance.get_timeout(); }
Basket.set_defaultUserContext = function(value) { 
Basket._staticInstance.set_defaultUserContext(value); }
Basket.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Basket._staticInstance.get_defaultUserContext(); }
Basket.set_defaultSucceededCallback = function(value) { 
 Basket._staticInstance.set_defaultSucceededCallback(value); }
Basket.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Basket._staticInstance.get_defaultSucceededCallback(); }
Basket.set_defaultFailedCallback = function(value) { 
Basket._staticInstance.set_defaultFailedCallback(value); }
Basket.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Basket._staticInstance.get_defaultFailedCallback(); }
Basket.set_path("/checkout/Basket.asmx");
Basket.HelloWorld= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Basket._staticInstance.HelloWorld(onSuccess,onFailed,userContext); }
Basket.AddPNOToBasket= function(pno,checkoutsequence,onSuccess,onFailed,userContext) {
/// <param name="pno" type="Number">System.Int32</param>
/// <param name="checkoutsequence" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Basket._staticInstance.AddPNOToBasket(pno,checkoutsequence,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(OrderDetails) === 'undefined') {
var OrderDetails=gtc("OrderDetails");
OrderDetails.registerClass('OrderDetails');
}
