You can delete/refresh services programmatically, like this:
<cfobject action="CREATE" type="JAVA"
class="coldfusion.server.ServiceFactory" name="factory">
<cfset xmlRpc = factory.getXMLRPCService()>
<cfset services = xmlRpc.mappings>
Then you can call either unregisterWebService() or refreshWebService() like
so:
<cfloop item="service" collection="#services#">
<cfset xmlRpc.unregisterWebService(service)>
</cfloop>
Or:
<cfloop item="service" collection="#services#">
<cfset xmlRpc.refreshWebService(service)>
</cfloop>
There are some caveats:
1. This is unsupported code
2. This won't work if the site is under Sandbox security
3. "Refresh" doesn't always seem to work(?)
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Houk, Gary
> Sent: Thursday, March 25, 2004 2:13 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [CFCDev] A WS not able to find a method...
>
> It looks like this is a caching issue. Once I deleted the
> cached wsdl url's in the cfamin and then stopped and
> restarted the server, it worked. That's definitely a pain to
> do everytime you need to make a change to a webservice
> though. Oh well, it works now!
>
> Adam - Good to hear from you, I'm doing well and there's a
> lot going on as usual. Drop me a line sometime!
>
> Thanks for your help guys,
>
> - Gary
>
>
>
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Adrocknaphobia
> Sent: Thursday, March 25, 2004 1:12 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [CFCDev] A WS not able to find a method...
>
> Gary,
>
> Who is throwing the error? JRUN/IIS or CFMX?
>
> btw. How are you doing these days?
>
> -adam
>
> > -----Original Message-----
> > From: Houk, Gary [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 24, 2004 09:04 PM
> > To: [EMAIL PROTECTED]
> > Subject: [CFCDev] A WS not able to find a method...
> >
> > I have a cfc with a method that works fine. When invoked as a WS, I
> get
> > an error:
> >
> > Web service operation "getGEOCodeTax" with parameters
> >
> {merchandiseAmount={33},strState={in},strCity={anderson},freig
> htAmount={
> > 4},} could not be found.
> >
> > The method is calling fine as a cfc, and the wsdl comes up
> fine. I'm
> > using 6.1. Does anyone have any ideas? I've stopped and restarted cf
> but
> > still no luck.
> >
> > Thanks,
> >
> > - Gary
> >
> >
> > ----------------------------------------------------------
> > You are subscribed to cfcdev. To unsubscribe, send an email to
> > [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
> > in the message of the email.
> >
> > CFCDev is run by CFCZone (www.cfczone.org) and supported by
> Mindtool,
> > Corporation (www.mindtool.com).
> >
> > An archive of the CFCDev list is available at
> www.mail-archive.com/[EMAIL PROTECTED]
> >
>
>
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email
> to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
> in the message of the email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported by
> Mindtool, Corporation (www.mindtool.com).
>
> An archive of the CFCDev list is available at
> www.mail-archive.com/[EMAIL PROTECTED]
>
>
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email
> to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
> in the message of the email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported by
> Mindtool, Corporation (www.mindtool.com).
>
> An archive of the CFCDev list is available at
> www.mail-archive.com/[EMAIL PROTECTED]
>
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]