var BookService=function() {
BookService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
BookService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return BookService._staticInstance.get_path();},
RateBook:function(rating,bookID,succeededCallback, failedCallback, userContext) {
/// <param name="rating" type="Number">System.Double</param>
/// <param name="bookID" type="Number">System.Int32</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(), 'RateBook',false,{rating:rating,bookID:bookID},succeededCallback,failedCallback,userContext); },
GetSuggestBook:function(kw,succeededCallback, failedCallback, userContext) {
/// <param name="kw" 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(), 'GetSuggestBook',false,{kw:kw},succeededCallback,failedCallback,userContext); }}
BookService.registerClass('BookService',Sys.Net.WebServiceProxy);
BookService._staticInstance = new BookService();
BookService.set_path = function(value) {
BookService._staticInstance.set_path(value); }
BookService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return BookService._staticInstance.get_path();}
BookService.set_timeout = function(value) {
BookService._staticInstance.set_timeout(value); }
BookService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return BookService._staticInstance.get_timeout(); }
BookService.set_defaultUserContext = function(value) { 
BookService._staticInstance.set_defaultUserContext(value); }
BookService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return BookService._staticInstance.get_defaultUserContext(); }
BookService.set_defaultSucceededCallback = function(value) { 
 BookService._staticInstance.set_defaultSucceededCallback(value); }
BookService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return BookService._staticInstance.get_defaultSucceededCallback(); }
BookService.set_defaultFailedCallback = function(value) { 
BookService._staticInstance.set_defaultFailedCallback(value); }
BookService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return BookService._staticInstance.get_defaultFailedCallback(); }
BookService.set_path("/webservices/bookservice.asmx");
BookService.RateBook= function(rating,bookID,onSuccess,onFailed,userContext) {
/// <param name="rating" type="Number">System.Double</param>
/// <param name="bookID" type="Number">System.Int32</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>
BookService._staticInstance.RateBook(rating,bookID,onSuccess,onFailed,userContext); }
BookService.GetSuggestBook= function(kw,onSuccess,onFailed,userContext) {
/// <param name="kw" 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>
BookService._staticInstance.GetSuggestBook(kw,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(BookInfo) === 'undefined') {
var BookInfo=gtc("BookInfo");
BookInfo.registerClass('BookInfo');
}
