var Service=function() {
Service.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Service.prototype={
GetBook:function(book,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'GetBook',false,{book:book},succeededCallback,failedCallback,userContext); },
GetPictureImageAndCode:function(image,maxWidth,maxHeight,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'GetPictureImageAndCode',false,{image:image,maxWidth:maxWidth,maxHeight:maxHeight},succeededCallback,failedCallback,userContext); }}
Service.registerClass('Service',Sys.Net.WebServiceProxy);
Service._staticInstance = new Service();
Service.set_path = function(value) { Service._staticInstance._path = value; }
Service.get_path = function() { return Service._staticInstance._path; }
Service.set_timeout = function(value) { Service._staticInstance._timeout = value; }
Service.get_timeout = function() { return Service._staticInstance._timeout; }
Service.set_defaultUserContext = function(value) { Service._staticInstance._userContext = value; }
Service.get_defaultUserContext = function() { return Service._staticInstance._userContext; }
Service.set_defaultSucceededCallback = function(value) { Service._staticInstance._succeeded = value; }
Service.get_defaultSucceededCallback = function() { return Service._staticInstance._succeeded; }
Service.set_defaultFailedCallback = function(value) { Service._staticInstance._failed = value; }
Service.get_defaultFailedCallback = function() { return Service._staticInstance._failed; }
Service.set_path("/services/service.asmx");
Service.GetBook= function(book,onSuccess,onFailed,userContext) {Service._staticInstance.GetBook(book,onSuccess,onFailed,userContext); }
Service.GetPictureImageAndCode= function(image,maxWidth,maxHeight,onSuccess,onFailed,userContext) {Service._staticInstance.GetPictureImageAndCode(image,maxWidth,maxHeight,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Pieroni');
if (typeof(Pieroni.Book) === 'undefined') {
Pieroni.Book=gtc("Pieroni.Book");
Pieroni.Book.registerClass('Pieroni.Book');
}
