Need help debugging a web service error

onaled777
onaled777 used Ask the Experts™
on
Can you help me debug this error:

 Web service parameter name myRequestParams cannot be found in the provided parameters {myRequestParams }.
 
The error occurred in C:\nwmdev\apache\htdocs\workspace\test\BRW-56.cfm: line 9

7 :
8 : <cfinvoke webservice="http://service.familytree.com/familytree_service.cfc?wsdl" method="getObjectPreviewSystemCarrier" returnvariable="getObjectResults">
9 :       <cfinvokeargument name="myRequestParams " value="#myRequestParams#"/>
10 : </cfinvoke>
11 :



It is called when a cfml file containing the top script calls the method in a webservice shown in the bottom script below.
<!--- Code to call the web service --->

<cfset myRequestParams = structNew() />
<cfset myRequestParams.partnerkey = "NNN-NNN-NNNN" />
<cfset myRequestParams.btn = "5873520769" />
<cfset myRequestParams.productcode = "9000" />
<cfset myRequestParams.carrierID = "22" />

<cfinvoke webservice="http://service.familytree.com/familytree_service.cfc?wsdl" method="getObjectPreviewSystemCarrier" returnvariable="getObjectResults">
	<cfinvokeargument name="myRequestParams " value="#myRequestParams#"/>
</cfinvoke>

<cfoutput>
BTN: #getObjectResults.btn# <br />
Carrier ID: #getObjectResults.carrierid# <br />
Carrier Name: #getObjectResults.carriername# <br />
Approved Carrier: #getObjectResults.approvedcarrier# <br />
Response Code: #getObjectResults.responsecode# <br />
Response Reason: #getObjectResults.responsereason# <br />
</cfoutput>



<!--- Web service method code --->

	<cffunction name="getObjectPreviewSystemCarrier" access="remote" returnType="previewResponseObject" output="no">
		<cfargument name="myRequestParams" type="any" required="true" />

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
thanks I fixed the error.  issues was that space in the invoke argument name

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial