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