Can anybody point to a good resource or two on the fine details on what
one can and can not do with publishing and consuming web services with
ColdFusion. Particularly web services the require or produce complex
data types such as other objects|components as well as structures,
arrays and|or queries. Also details about sharing these web services
with other languages as well as ColdFusion.
In other words, well beyond the basic details of just putting a
"access='remote'" property into a components function.
I am experimenting with changing a group of components into a web
service and I am experiencing some unexpected errors that provide little
details on what the actual problems are.
For example I am currently getting this error with code that initially
worked without producing any exceptions.
----------
Cannot perform web service invocation getUser.
The fault returned when invoking the web service operation is:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: coldfusion.xml.rpc.CFCInvocationException:
[java.lang.ClassCastException : common_cfc.ldap_security.user]
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:coldfusion.xml.rpc.CFCInvocationException:
[java.lang.ClassCastException : common_cfc.ldap_security.user]
at
coldfusion.xml.rpc.CFComponentSkeleton.__createCFCInvocationException(CFComponentSkeleton.java:723)
at
coldfusion.xml.rpc.CFComponentSkeleton.__cast(CFComponentSkeleton.java:408)
at
common.cfc.ldap_security.ldap.getUser(C:\Development\ColdFusion\Common\cfc\ldap_security\ldap.cfc)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.axis.provider... ''
The error occurred in
C:\Development\wwwRoot\ColdFusion\playground\securityWS.cfm: line 3
1 : <cfsilent>
2 : <cfset ws =
createObject("webservice","http://localhost/common/cfc/ldap_security/ldap.cfc?wsdl")>
3 : <cfset userObj = ws.getUser('iskinner')>
4 :
5 : <cffunction name="list" returntype="string" output="no">
Thank You
Ian
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302505
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4