Having problem passing complex data (i.e. an array) to a web service authored
in .NET that expects data of type "array".
Code:
<h1>passing array to web service</h1>
<cfparam name="arguments.strId" default="1786850">
<cfset arguments.arrSubProdCollection = ArrayNew(1)>
<cfset variables.result = ArraySet(arguments.arrSubProdCollection,1,3, "")>
<cfset arguments.arrSubProdCollection[1] = "BASIC">
<cfset arguments.arrSubProdCollection[2] = "CHAPT/CO">
<cfset arguments.arrSubProdCollection[3] = "ME">
<cfdump var="#arguments#" label="arguments">
<cfinvoke webservice="webservicesTestProcess_Membership"
method="ProcessMemberIbo" returnvariable="dummy">
<cfinvokeargument name="contactId" value="#arguments.strId#">
<cfinvokeargument name="arrSubProdCollection"
value=#arguments.arrSubProdCollection#>
</cfinvoke>
==========================================
keep getting the famous error - Web service operation ProcessMemberIbo with
parameters {contactId={1786850},arrSubProdCollection={[BASIC, CHAPT/CO, ME]}}
cannot be found.
Have found this error message to be extremely misleading - really means the web
service being called is not receiving a parameter correctly. Found other
articles that document exact same phenomenon, but (unfortunately) no straight
forward work around.
Any ideas MUCH appreciated :) -j
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311530
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4