CF10 WSDL

613 views
Skip to first unread message

Dale Fraser

unread,
Aug 17, 2012, 12:54:27 AM8/17/12
to cfau...@googlegroups.com

Bare with me, Im just a noob.

 

I have a simple (in theory) webservice to test my issue out or produce a test case.

 

<cfcomponent>

      <cffunction name="saveData" access="remote" returntype="boolean">

            <cfargument name="stack" />

            <cfargument name="data" />

           

            <cfset local.me = 'hello' />

           

            <cfreturn false />

      </cffunction>

</cfcomponent>

 

 

I can call this as a component, but cant call it as a webservice, in fact I cant even browse to the wsdl

 

This is a brand new standalone ColdFusion 10 install.

 

http://localhost:8500/test.cfc?wsdl

 

What I get is

HTTP Status 500 - The web service operation caused an invocation exception.


type Status report

message The web service operation caused an invocation exception.

description The server encountered an internal error (The web service operation caused an invocation exception.) that prevented it from fulfilling this request.


Apache Tomcat/7.0.23

I've tried everything I can think of but I figure I'm doing something stupid or don't understand something.

 

Regards

Dale Fraser

 

http://dale.fraser.id.au

 

Zac Spitzer

unread,
Aug 17, 2012, 12:55:46 AM8/17/12
to cfau...@googlegroups.com
is stack or data a reserved word?
> --
> You received this message because you are subscribed to the Google Groups
> "cfaussie" group.
> To post to this group, send email to cfau...@googlegroups.com.
> To unsubscribe from this group, send email to
> cfaussie+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cfaussie?hl=en.



--
Zac Spitzer
Solution Architect / Director
Ennoble Consultancy Australia
http://www.ennoble.com.au
http://zacster.blogspot.com
+61 405 847 168

Andrew Scott

unread,
Aug 17, 2012, 1:03:21 AM8/17/12
to cfau...@googlegroups.com
Anything in the logs that might help?


-- 
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/



On Fri, Aug 17, 2012 at 2:54 PM, Dale Fraser <da...@fraser.id.au> wrote:

--

AJ Mercer

unread,
Aug 17, 2012, 1:07:21 AM8/17/12
to cfau...@googlegroups.com
dropped your code into my web root and runs fine
ACF10 and railo 4

Is your code in the webroot?
Is it a mapped location?

Maybe try deleting from cf admin


Failing that - a reboot ??


--
You received this message because you are subscribed to the Google Groups "cfaussie" group.
To post to this group, send email to cfau...@googlegroups.com.
To unsubscribe from this group, send email to cfaussie+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.

Dale Fraser

unread,
Aug 17, 2012, 1:45:38 AM8/17/12
to cfau...@googlegroups.com

Worked it out,

 

This has to be a bug.

 

The webservice was called Test.cfc

 

Test is apparently reserved or something, won't work, soon as I used a different name worked.

 

The log looked like this

 

The web service operation caused an invocation exception.The root cause was that: org.apache.axis2.AxisFault: Error attempting to create Java skeleton for CFC web service. The specific sequence of files included or processed is: C:\ColdFusion10\cfusion\wwwroot\Test.cfc

 

Regards

Dale Fraser

 

http://dale.fraser.id.au

Charlie Arehart

unread,
Aug 17, 2012, 2:04:56 AM8/17/12
to cfau...@googlegroups.com

I’m fairly confident that “test” is not a reserved word in CF. :-)

Instead, I would suspect case sensitivity to the problem (not that you should have expected it on a Windows box, of course). You said you were calling it as http://localhost:8500/test.cfc?wsdl. But the error (and your 3d sentence below) refer to it being Test.cfc. If you renamed it back to that, and changed the url to name it that way, I wonder if it would work.

If so, I’ll just note that many have indeed tripped over some other case sensitivity issues (with respect to file naming) in CF10, even on Windows.

 

/charlie

Dale Fraser

unread,
Aug 17, 2012, 4:01:36 AM8/17/12
to cfau...@googlegroups.com

I 100% tried it for both and it just doesn't work, I even thought it might be cached etc, turned off all caching, restarted the server.

 

Give it a try, be interested if its just me.

From: cfau...@googlegroups.com [mailto:cfau...@googlegroups.com] On Behalf Of Charlie Arehart
Sent: Friday, 17 August 2012 4:05 PM
To: cfau...@googlegroups.com
Subject: RE: [cfaussie] CF10 WSDL

 

I’m fairly confident that “test” is not a reserved word in CF. :-)

Instead, I would suspect case sensitivity to the problem (not that you should have expected it on a Windows box, of course). You said you were calling it as http://localhost:8500/test.cfc?wsdl. But the error (and your 3d sentence below) refer to it being Test.cfc. If you renamed it back to that, and changed the url to name it that way, I wonder if it would work.

If so, I’ll just note that many have indeed tripped over some other case sensitivity issues (with respect to file naming) in CF10, even on Windows.

 

/charlie

 

From: cfau...@googlegroups.com [mailto:cfau...@googlegroups.com] On Behalf Of Dale Fraser
Sent: Friday, August 17, 2012 1:46 AM
To: cfau...@googlegroups.com
Subject: RE: [cfaussie] CF10 WSDL

 

Worked it out,

 

This has to be a bug.

 

The webservice was called Test.cfc

 

Test is apparently reserved or something, won't work, soon as I used a different name worked.

 

The log looked like this

 

The web service operation caused an invocation exception.The root cause was that: org.apache.axis2.AxisFault: Error attempting to create Java skeleton for CFC web service. The specific sequence of files included or processed is: C:\ColdFusion10\cfusion\wwwroot\Test.cfc

 

Regards

Dale Fraser

 

--

Charlie Arehart

unread,
Aug 17, 2012, 2:25:32 PM8/17/12
to cfau...@googlegroups.com

Well, AJ already did, so that would seem to confirm that it’s not a generic issue. That said,  he said he ran it in “his web root” and you show using the CF10 internal web server root.

So first, AJ, was your request in an external web server? And for Dale, have you tried the request via an external web server and in its docroot? (I’m afraid I have to run now and can’t do any testing myself.)

Just trying to help. Sorry if I may be forgetting that you’ve already covered this somehow, but I looked quickly at the past notes in the thread and didn’t see it readily, so seemed worth a shot.

 

/charlie

 

From: cfau...@googlegroups.com [mailto:cfau...@googlegroups.com] On Behalf Of Dale Fraser
Sent: Friday, August 17, 2012 4:02 AM
To: cfau...@googlegroups.com
Subject: RE: [cfaussie] CF10 WSDL

 

I 100% tried it for both and it just doesn't work, I even thought it might be cached etc, turned off all caching, restarted the server.

AJ Mercer

unread,
Aug 17, 2012, 6:56:36 PM8/17/12
to cfau...@googlegroups.com
my ACF10 is the dev version and I was running it on port 8500

my Railo 4 is on tomcat connected to IIS (on another machine)

I did the tests at work, so can not check the casing of the file name.

--
You received this message because you are subscribed to the Google Groups "cfaussie" group.
To post to this group, send email to cfau...@googlegroups.com.
To unsubscribe from this group, send email to cfaussie+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.

Dale Fraser

unread,
Aug 17, 2012, 9:23:13 PM8/17/12
to cfau...@googlegroups.com

I still believe this is a bug.

 

I just completely uninstalled and deleted everything in the ColdFusion10 directory and did it again, and can reproduce it

 

1.  Install ColdFusion 10 Enterprise internal server on Windows 7, change no settings

2.  Create a Test.cfc in C:\ColdFusion10\cfusion\wwwroot with the code below

3.  Browse to the WSDL http://localhost:8500/Test.cfc?wsdl

4.  You will get an error 500

5.  Create a TestWS.cfc in same location with same code below

6.  Browse to the WSDL http://localhost:8500/TestWS.cfc?wsdl

7.  Works fine

 

<cfcomponent>

     <cffunction name="saveData" returntype="boolean">

    <cfargument name="data" type="string" />

       

        <cfreturn true />

     </cffunction>

</cfcomponent>

From: cfau...@googlegroups.com [mailto:cfau...@googlegroups.com] On Behalf Of AJ Mercer
Sent: Saturday, 18 August 2012 8:57 AM
To: cfau...@googlegroups.com
Subject: Re: [cfaussie] CF10 WSDL

 

my ACF10 is the dev version and I was running it on port 8500

Andrew Scott

unread,
Aug 17, 2012, 10:00:54 PM8/17/12
to cfau...@googlegroups.com
Looks like that issue is related to internal webserver, aka Tomcat then. I tried it with IIS and it works for me.

-- 
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/


Charlie Arehart

unread,
Aug 17, 2012, 10:34:53 PM8/17/12
to cfau...@googlegroups.com

Sad news: I did that, and do not get the error. Here are a few ideas (#megraspingatstraws):

First, do you have any mappings in CF that may point the root (\) to somewhere else? I just wonder if it’s picking up some other Test.cfc in your environment. #graspingatstraws

Second, how about taking a look in C:\ColdFusion10\cfusion\wwwroot\WEB-INF\cfc-skeletons. What do you see there? There should be a Test.class and TestBeanInfo.class. If they’re there with another case, perhaps delete them and try again. And though I know you say this is an a brand new install, you may want to also try clearing the template cache just to see if it helps.

Third, if you make any such changes above and still get the error, you may want to make sure you’re not seeing cached output in your browser. You could clear the template cache. Sadly, the trick of adding another random query string var to the URL doesn’t work with these wsdl URLs. You could also try your browser request in a browser where you’ve never visited this page before. And of course you could turn on any browser developer tool that shows client/server communications, to be sure you see this error coming back from the server.

Better still, and in addition, you could look in the CF error logs and make sure you really are getting the error logged there when you make the request (I know in the first message of the thread you confirmed you do get the error. I mean, confirm that you get it on each page request now, if you make any changes such as I suggest above, to ensure you really are still getting the error, rather than risk browser caching issues.)

Hope that helps.

/charlie

 

From: cfau...@googlegroups.com [mailto:cfau...@googlegroups.com] On Behalf Of Dale Fraser
Sent: Friday, August 17, 2012 9:23 PM
To: cfau...@googlegroups.com
Subject: RE: [cfaussie] CF10 WSDL

 

I still believe this is a bug.

Dale Fraser

unread,
Aug 18, 2012, 10:08:27 AM8/18/12
to cfau...@googlegroups.com

Tried all those suggestions, still get the error.

 

There is no Test.class or TestBeanInfo.class in C:\ColdFusion10\cfusion\wwwroot\WEB-INF\cfc-skeletons

 

There is however a Test2, TestWS version, which are my attempts when I rename it. So its not generating the Skeleton as the error suggests

 

Tried all caching settings also.

--

MrBuzzy

unread,
Aug 18, 2012, 10:34:43 AM8/18/12
to cfau...@googlegroups.com, <cfaussie@googlegroups.com>
OMFG it would be easier if we came to your office and fixed your shit :( 

Dale Fraser

unread,
Aug 18, 2012, 9:47:06 PM8/18/12
to cfau...@googlegroups.com

Its actually not a problem for us, it was just a test case that highlights a potential bug.

 

The workaround is to not use Test.cfc

From: cfau...@googlegroups.com [mailto:cfau...@googlegroups.com] On Behalf Of MrBuzzy
Sent: Sunday, 19 August 2012 12:35 AM
To: cfau...@googlegroups.com
Cc: <cfau...@googlegroups.com>
Subject: Re: [cfaussie] CF10 WSDL

 

OMFG it would be easier if we came to your office and fixed your shit :( 

shellw...@gmail.com

unread,
Aug 22, 2012, 1:21:01 AM8/22/12
to cfau...@googlegroups.com
We had the same problem - went in to CFAdmin and changed 'Web Service Version' to 1 instead of 2 (seems to be the default) - I haven't read the docs on what the difference is..............
Maybe someone else can help us there....

Kai Koenig

unread,
Aug 22, 2012, 2:06:37 AM8/22/12
to cfau...@googlegroups.com
It essentially means that you're now using Apache Axis1 instead of Apache Axis2. Axis1 is the SOAP web service engine that CF used to use since support for web services was added. For a variety of backwards compatibility reasons it has been left in the product and can be enabled through the admin and (I think, but I might be wrong) also through an attribute in code.

Cheers
Kai


We had the same problem - went in to CFAdmin and changed 'Web Service Version' to 1 instead of 2 (seems to be the default) - I haven't read the docs on what the difference is..............
Maybe someone else can help us there....



--
Kai Koenig - Ventego Creative Ltd
ph: +64 4 476 6781 - mob: +64 21 928 365 /  +61 435 179 091
web: http://www.ventego-creative.co.nz

Blog in Black: http://www.bloginblack.de
2DDU Podcast: http://www.2ddu.com/
Twitter: @AgentK
--

Gavin Baumanis

unread,
Aug 22, 2012, 2:19:02 AM8/22/12
to cfau...@googlegroups.com

Hi Kai,

You are correct.

You can override the CFADMIN setting in code via an Application.cfc setting or as CFC metadata.

 

 

 

From: cfau...@googlegroups.com [mailto:cfau...@googlegroups.com] On Behalf Of Kai Koenig


Sent: Wednesday, 22 August 2012 16:07
To: cfau...@googlegroups.com

--

Charlie Arehart

unread,
Aug 23, 2012, 1:06:28 PM8/23/12
to cfau...@googlegroups.com

You can indeed override it many ways, and another is on the call to the web service itself (such as in cfinvoke, createobject, etc.)

For more on all this (beyond the docs) see this article:

http://www.adobe.com/devnet/coldfusion/articles/axis2-web-services.html

 

/charlie

 

From: cfau...@googlegroups.com [mailto:cfau...@googlegroups.com] On Behalf Of Gavin Baumanis


Sent: Wednesday, August 22, 2012 2:19 AM
To: cfau...@googlegroups.com

Subject: RE: [cfaussie] Re: CF10 WSDL

Reply all
Reply to author
Forward
0 new messages