I have 2 web services I set up. One takes no parameters and
works fine. The
other takes arguments and it tells me the method cannot be
found. What am I
missing? What is the magic bullet to invoke a web service
that takes
arguments and have it work? I have all the web service's
arguments set to
'required="yes"' and I set up another 'no argument function'
in the
SearchProperty.cfc to make sure it also works and it did
fine, so I know the
web service exists and is accessible.
I tried both createObject in my contoller and cfinvoke. Both
work fine for
the web service that takes no arguments and neither work for
the one that
does.
Here is my controller blocks (please excuse the Model-Glue)
This works fine
<!---Get All Cities For Search Engine--->
<cffunction name="getCities" access="public"
returntype="void"
output="false" hint="I displays all the cities for the front
page">
<cfargument name="event" type="ModelGlue.Core.Event"
required="yes">
<cfset Cities = createObject("webservice",
"
http://74.86.90.210/realitorToolBox/model/webservices/CityGateway.cfc?wsdl")/>
<cfset allCities = Cities.getCities() />
<cfset arguments.event.setValue("getAllCities",
allCities)/>
</cffunction>
This cannot be found:
<!---Search Residentual Properties--->
<cffunction name="SearchProperties" access="public"
returntype="void"
output="false" hint="I displays all the cities for the front
page">
<cfargument name="event" type="ModelGlue.Core.Event"
required="yes">
<cfset userID = 555555>
<cfset bedrooms =
arguments.event.getValue("bedrooms")/>
<cfset bathrooms =
arguments.event.getValue("bathrooms")/>
<cfset footage = arguments.event.getValue("footage")/>
<cfset minprice =
arguments.event.getValue("minprice")/>
<cfset maxprice =
arguments.event.getValue("maxprice")/>
<cfset basement =
arguments.event.getValue("basement")/>
<cfset garage = arguments.event.getValue("garage")/>
<cfset CITIES = arguments.event.getValue("CITIES")/>
<cfset Search = createObject("webservice",
"
http://74.86.90.210/realitorToolBox/model/webservices/SearchProperty.cfc?wsdl")/>
<cfset searchAll = Search.SearchProperty(#userID#,
#bedrooms#,
#bathrooms#, #footage#, #minprice#, #maxprice#, #basement#,
#garage#,
#CITIES#) />
<cfset arguments.event.setValue("Results",
searchAll)/>
</cffunction>
Any ideas? My client is getting anxious and I hope to offer
this service to
other developers to use for their client's site.