Having upgraded to CF8 pretty much as soon as it came out, I believe I've
just run across a really obscure issue when consuming web services.

We have a hr-xml based webservice that had been running fine for months on
CFMX6.1. When we upgraded to CF8, everything remained fine and the service
continued to work with those servers that used it. As it happens, those
servers although not ours are also ColdFusion 6, 7 an 8. The issue arose
when the CF servers that consume the service had their webservice caches
cleared and slowly but surely, all the servers posting data to this service
began to fail one by one.

Obviously the guys that were looking at their servers posting debugged as
much as they could at their end of things but no progress was made. I was
testing the webservice using eclipse and everything was fine there too.
Everything looked fine.

Then I coded up a simple test to invoke the service and started to get the
file not found issues which pointed to a case sensitivity issue.

In the CFC, the cfcomponent declaration was as follows:

<cfcomponent name="hrxml" displayname="hrxml" output="false">

The filename is hrxml.cfc

Depending on the url used to invoke the service, CF8 was generating
different portType tags

http://..../svc/Hrxml.cfc?wsdl made the wsdl generate <wsdl:portType
name="hrxml"> http://..../svc/hrxml.cfc?wsdl made the wsdl generate
<wsdl:portType name="HRXML"> http://..../svc/HRXML.cfc?wsdl made the wsdl
generate <wsdl:portType name="Hrxml">

This seemingly random case generation ended up generating the file not found
errors at the point of consumption stating that hrxml.java or HRXML.java or
Hrxml.java could not be found.

I double checked that all references to "hrxml" in the CFC were lower case
which they were but it still didn't work. So, doing something totally
leftfield, I removed the displayname attribute from the <cfcomponent> tag
and up to now, it seems to be working reliably again but it was a pig of an
issue to debug...

Paul



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292876
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to