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