1
August 2005
CFMX7 WebService gotcha?
Post a Comment
Not exactly sure what ended up causing this but...
Scenario:
I have a <cfcomponent displayname="Survey"> with a few <cffunction access="remote" ....>s in it. Only problem is... when invoking the component from any client that can consume a webservice, I get some type of error about an invalid webservice.
Trying to invoke using a <cfinvoke webservice=""> I get something along the lines of "Can not generate stub objects".
Fix:
After talking with my hosting provider and them talking with Macromedia, I get a response saying delete everything under "<CFMX7 install directory>\stubs". Modify the CFC to show <cfcomponent displayname="Surveys"> and restart the CFMX service.
Not sure what exactly happened but... now I can invoke the webservice with no problem. Is "Survey" a reserved word in CFMX7?
Scenario:
- One Coldfusion MX7 instance running for multiple virtual hosts on the same server.
- CFMX7 Standard Edition
- IIS 6 / Win2k3.
- Worked on CFMX 6.1
I have a <cfcomponent displayname="Survey"> with a few <cffunction access="remote" ....>s in it. Only problem is... when invoking the component from any client that can consume a webservice, I get some type of error about an invalid webservice.
Trying to invoke using a <cfinvoke webservice=""> I get something along the lines of "Can not generate stub objects".
Fix:
After talking with my hosting provider and them talking with Macromedia, I get a response saying delete everything under "<CFMX7 install directory>\stubs". Modify the CFC to show <cfcomponent displayname="Surveys"> and restart the CFMX service.
Not sure what exactly happened but... now I can invoke the webservice with no problem. Is "Survey" a reserved word in CFMX7?
Posted by fwscott at 8:37 PM | Comments (3)
Subscription Options
You are not logged in, so your subscription status for this entry is unknown. You can login or register here.
Re: CFMX7 WebService gotcha?
I've had this problem too, however reset the webservice through the server factory works for me. Don't know if your provider blocks access to it. But if they don't here's the code for you:
<cfobject type="JAVA" action="Create" name="factory" class="coldfusion.server.ServiceFactory"> <cfset RpcService = factory.XmlRpcService> <cfset RpcService.refreshWebService("#webservice_name#")>
Posted by Terrence Ryan on August 28, 2005 at 1:03 PM
Re: CFMX7 WebService gotcha?
Ah, this is good to know in case I run into this again. Thanks!
Posted by fwscott on September 6, 2005 at 7:26 PM
Re: CFMX7 WebService gotcha?
Ummm - can you please contact me ASAP ? (I gather you can see my email).
There is something that I need to talk to you about urgently / privately and I cannot find your email address.
Posted by Someone on September 22, 2005 at 2:49 AM