Prev: cfgrid cfgridupdate
Next: Denied Access
From: StokeyTCI on 5 Jun 2007 14:54 I'm getting java.lang.IllegalArgumentException: java.lang.ClassCastException(a)8d878a CFC <cfcomponent> <cfproperty name="serverID" type="string"> <cfproperty name="dealerNbr" type="numeric" > </cfcomponent> CFM <cfset aAppPing=CreateObject('component','/gateway/aAppPing')> <cfset aAppPing.serverID="test"> <cfset aAppPing.dealerNbr=111111> <cfset webService = CreateObject('webservice','http://10.20.1.247:8080/ws/servlet/aapplicping?wsdl') > <cfset testResult = webService.execute(aAppPing)> wsdl - <complexType name="AppPing"> - <all> <element name="ServerID" type="xsd:string" /> <element name="DealerNbr" type="xsd:int" /> </all> </complexType> Any ideas, I'm at my wits end, I have been trying and googleing for two weeks now
From: insuractive on 6 Jun 2007 12:14 Ah, fun with complex types in CF webservices! Try something like this: <cfset stArgs = StructNew()> <cfset stArgs.AppPing = StructNew()> <cfset stArgs.AppPing.ServerID = "test"> <cfset stArgs.AppPing.dealerNbr = 11111> <cfinvoke webservice="http://10.20.1.247:8080/ws/servlet/aapplicping?wsdl" returnvariable="objResponse" argumentcollection="#stArgs#">
From: StokeyTCI on 6 Jun 2007 12:23 that gives me the error Web service parameter name "parameters" could not be found in the provided parameters {APPPING}.
From: StokeyTCI on 6 Jun 2007 12:32 So I change it to <cfset stArgs = StructNew()> <cfset stArgs.AppPing = StructNew()> <cfset stArgs.AppPing.ServerID = "BIBNET"> <cfset stArgs.AppPing.dealerNbr = 3413454> <cfinvoke webservice="http://10.20.1.247:8080/ws/servlet/aapplicping?wsdl" method="execute" returnvariable="a_ApplicPingExecuteResponse" > <cfinvokeargument name="parameters" value="#stArgs#"/> </cfinvoke> Which gives me this error Web service operation "execute" with parameters {parameters={{APPPING={{DEALERNBR={3413454},SERVERID={BIBNET},}},}},} could not be found. Which was why I was using the CFC to pass a 2 part variable Parameters to the web service
From: insuractive on 6 Jun 2007 15:55
Can you post the entire WSDL? |