Error converting CFML arguments to Java classes for web service invocation.
Hello all.
I am working on writting a small application that will use a web service that is provided by our IVR (Angel.com). I am able to login, however when I attempt to do anything with complex objects, I get the error stated in the title.
It seems to be having a problem with the array, because when I remove it, or turn it into a simple string, i get errors about the function not being found. I am fairly new to web services, and especially dealing with complex data types, so any help would be much appreciated.
You can see my testing page at
http://webservices.fpitesters.com/AngelCalls.cfm
The WSDL I am using can be found at
http://www.angel.com/outbound/wsdl/OutboundCallService.wsdl
Here is sample code that does what I want it to do in Java / Apache Axis
http://www.socialtext.net/ivrwiki/index.cgi?java_sample_code
Here is a description of the function I am having problems with
http://www.socialtext.net/ivrwiki/index.cgi?placecall
And attached is my code.
<cfset email = "xxxxxxxxxxxxxxxxxx">
<cfset pin = "xxxxxxxxxxxx">
<cfinvoke webservice="http://www.angel.com/outbound/wsdl/OutboundCallService.wsdl" method="login" returnvariable="login">
<cfinvokeargument name="email" value="#email#"/>
<cfinvokeargument name="pin" value="#pin#"/>
</cfinvoke>
<cfdump var="#login#">
<cfset Token = login.getToken()>
<cfdump var="#token#">
<cfset CallItem.maxWaitTime = 100>
<cfset CallItem.phoneNumbers[1] = "7632344306">
<cfset CallItem.siteNumber = 100041>
<cfinvoke webservice="http://www.angel.com/outbound/wsdl/OutboundCallService.wsdl" method="placeCall" returnvariable="call">
<cfinvokeargument name="Token" value="#Token#"/>
<cfinvokeargument name="CallItem" value="#CallItem#"/>
</cfinvoke>
<cfdump var="#call#">
