var WebService=function() {
WebService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
WebService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return WebService._staticInstance.get_path();},
sendEmail:function(from,subject,message,succeededCallback, failedCallback, userContext) {
/// <param name="from" type="String">System.String</param>
/// <param name="subject" type="String">System.String</param>
/// <param name="message" 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(), 'sendEmail',false,{from:from,subject:subject,message:message},succeededCallback,failedCallback,userContext); },
savePage:function(text,succeededCallback, failedCallback, userContext) {
/// <param name="text" 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(), 'savePage',false,{text:text},succeededCallback,failedCallback,userContext); },
recallPage: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(), 'recallPage',false,{},succeededCallback,failedCallback,userContext); }}
WebService.registerClass('WebService',Sys.Net.WebServiceProxy);
WebService._staticInstance = new WebService();
WebService.set_path = function(value) {
WebService._staticInstance.set_path(value); }
WebService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return WebService._staticInstance.get_path();}
WebService.set_timeout = function(value) {
WebService._staticInstance.set_timeout(value); }
WebService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return WebService._staticInstance.get_timeout(); }
WebService.set_defaultUserContext = function(value) { 
WebService._staticInstance.set_defaultUserContext(value); }
WebService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return WebService._staticInstance.get_defaultUserContext(); }
WebService.set_defaultSucceededCallback = function(value) { 
 WebService._staticInstance.set_defaultSucceededCallback(value); }
WebService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return WebService._staticInstance.get_defaultSucceededCallback(); }
WebService.set_defaultFailedCallback = function(value) { 
WebService._staticInstance.set_defaultFailedCallback(value); }
WebService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return WebService._staticInstance.get_defaultFailedCallback(); }
WebService.set_path("/sandyplumb/WebService.asmx");
WebService.sendEmail= function(from,subject,message,onSuccess,onFailed,userContext) {
/// <param name="from" type="String">System.String</param>
/// <param name="subject" type="String">System.String</param>
/// <param name="message" 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>
WebService._staticInstance.sendEmail(from,subject,message,onSuccess,onFailed,userContext); }
WebService.savePage= function(text,onSuccess,onFailed,userContext) {
/// <param name="text" 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>
WebService._staticInstance.savePage(text,onSuccess,onFailed,userContext); }
WebService.recallPage= 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>
WebService._staticInstance.recallPage(onSuccess,onFailed,userContext); }
