﻿function registerDef(){
Type.registerNamespace('VELUX.VCMS.DreamWeb.WebServices');
VELUX.VCMS.DreamWeb.WebServices.DreamWebItems=function() {
VELUX.VCMS.DreamWeb.WebServices.DreamWebItems.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
VELUX.VCMS.DreamWeb.WebServices.DreamWebItems.prototype={
GetItems:function(step,filter,list,view,valuesList,xslt,currentSiteId,currentWebId,localeId,succeededCallback, failedCallback, userContext) {
return this._invoke(VELUX.VCMS.DreamWeb.WebServices.DreamWebItems.get_path(), 'GetItems',false,{step:step,filter:filter,list:list,view:view,valuesList:valuesList,xslt:xslt,currentSiteId:currentSiteId,currentWebId:currentWebId,localeId:localeId},succeededCallback,failedCallback,userContext); },
GetResult:function(id,isBeforeAfter,list,view,valuesList,xslt,currentSiteId,currentWebId,localeId,succeededCallback, failedCallback, userContext) {
return this._invoke(VELUX.VCMS.DreamWeb.WebServices.DreamWebItems.get_path(), 'GetResult',false,{id:id,isBeforeAfter:isBeforeAfter,list:list,view:view,valuesList:valuesList,xslt:xslt,currentSiteId:currentSiteId,currentWebId:currentWebId,localeId:localeId},succeededCallback,failedCallback,userContext); },
GetResultWithItems:function(sequence,filter,list,view,valuesList,xslt,currentSiteId,currentWebId,localeId,succeededCallback, failedCallback, userContext) {
return this._invoke(VELUX.VCMS.DreamWeb.WebServices.DreamWebItems.get_path(), 'GetResultWithItems',false,{sequence:sequence,filter:filter,list:list,view:view,valuesList:valuesList,xslt:xslt,currentSiteId:currentSiteId,currentWebId:currentWebId,localeId:localeId},succeededCallback,failedCallback,userContext); }}
VELUX.VCMS.DreamWeb.WebServices.DreamWebItems.registerClass('VELUX.VCMS.DreamWeb.WebServices.DreamWebItems',Sys.Net.WebServiceProxy);
VELUX.VCMS.DreamWeb.WebServices.DreamWebItems._staticInstance = new VELUX.VCMS.DreamWeb.WebServices.DreamWebItems();
VELUX.VCMS.DreamWeb.WebServices.DreamWebItems.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; VELUX.VCMS.DreamWeb.WebServices.DreamWebItems._staticInstance._path = value; }
VELUX.VCMS.DreamWeb.WebServices.DreamWebItems.get_path = function() { return VELUX.VCMS.DreamWeb.WebServices.DreamWebItems._staticInstance._path; }
VELUX.VCMS.DreamWeb.WebServices.DreamWebItems.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
VELUX.VCMS.DreamWeb.WebServices.DreamWebItems._staticInstance._timeout = value; }
VELUX.VCMS.DreamWeb.WebServices.DreamWebItems.get_timeout = function() { 
return VELUX.VCMS.DreamWeb.WebServices.DreamWebItems._staticInstance._timeout; }
VELUX.VCMS.DreamWeb.WebServices.DreamWebItems.set_defaultUserContext = function(value) { 
VELUX.VCMS.DreamWeb.WebServices.DreamWebItems._staticInstance._userContext = value; }
VELUX.VCMS.DreamWeb.WebServices.DreamWebItems.get_defaultUserContext = function() { 
return VELUX.VCMS.DreamWeb.WebServices.DreamWebItems._staticInstance._userContext; }
VELUX.VCMS.DreamWeb.WebServices.DreamWebItems.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; VELUX.VCMS.DreamWeb.WebServices.DreamWebItems._staticInstance._succeeded = value; }
VELUX.VCMS.DreamWeb.WebServices.DreamWebItems.get_defaultSucceededCallback = function() { 
return VELUX.VCMS.DreamWeb.WebServices.DreamWebItems._staticInstance._succeeded; }
VELUX.VCMS.DreamWeb.WebServices.DreamWebItems.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; VELUX.VCMS.DreamWeb.WebServices.DreamWebItems._staticInstance._failed = value; }
VELUX.VCMS.DreamWeb.WebServices.DreamWebItems.get_defaultFailedCallback = function() { 
return VELUX.VCMS.DreamWeb.WebServices.DreamWebItems._staticInstance._failed; }
VELUX.VCMS.DreamWeb.WebServices.DreamWebItems.set_path("/_vti_bin/velux/dreamwebitems.asmx");
VELUX.VCMS.DreamWeb.WebServices.DreamWebItems.GetItems= function(step,filter,list,view,valuesList,xslt,currentSiteId,currentWebId,localeId,onSuccess,onFailed,userContext) {VELUX.VCMS.DreamWeb.WebServices.DreamWebItems._staticInstance.GetItems(step,filter,list,view,valuesList,xslt,currentSiteId,currentWebId,localeId,onSuccess,onFailed,userContext); }
VELUX.VCMS.DreamWeb.WebServices.DreamWebItems.GetResult= function(id,isBeforeAfter,list,view,valuesList,xslt,currentSiteId,currentWebId,localeId,onSuccess,onFailed,userContext) {VELUX.VCMS.DreamWeb.WebServices.DreamWebItems._staticInstance.GetResult(id,isBeforeAfter,list,view,valuesList,xslt,currentSiteId,currentWebId,localeId,onSuccess,onFailed,userContext); }
VELUX.VCMS.DreamWeb.WebServices.DreamWebItems.GetResultWithItems= function(sequence,filter,list,view,valuesList,xslt,currentSiteId,currentWebId,localeId,onSuccess,onFailed,userContext) {VELUX.VCMS.DreamWeb.WebServices.DreamWebItems._staticInstance.GetResultWithItems(sequence,filter,list,view,valuesList,xslt,currentSiteId,currentWebId,localeId,onSuccess,onFailed,userContext); }
}