<cfcomponent
displayname="BaseWebService"
output="false"
hint="This handles core web service features.">
<cffunction
name="Init"
access="public"
returntype="any"
output="false"
hint="Returns an initialized web service instance.">
<cfreturn THIS />
</cffunction>
<cffunction
name="RebuildStubFile"
access="remote"
returntype="void"
output="false"
hint="Rebuilds the WSDL file at the given url.">
<cfargument name="Password" type="string" required="true" />
<cfif NOT Compare( ARGUMENTS.Password, "sweetlegs!" )>
<cfset CreateObject( "java", "coldfusion.server.ServiceFactory" ).XmlRpcService.RefreshWebService(
GetPageContext().GetRequest().GetRequestUrl().Append( "?wsdl" ).ToString()
) />
</cfif>
<cfreturn />
</cffunction>
</cfcomponent>