From: StokeyTCI on
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
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
that gives me the error

Web service parameter name "parameters" could not be found in the provided parameters {APPPING}.
From: StokeyTCI on
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
Can you post the entire WSDL?
 |  Next  |  Last
Pages: 1 2
Prev: cfgrid cfgridupdate
Next: Denied Access