ColdFusion Web Service Issue

Posted on 2011-05-12
Last Modified: 2013-12-24
Hi Experts,

I am trying to develop a ColdFusion Web Service and having an issue defining more than one <cfinvokeargument>.

Here is my CFM:

<cfinvoke method="listRecords"

   <cfinvokeargument name="project" value="msl"/>
   <cfinvokeargument name="status" value="open"/>


<cfset Records = XmlParse(rawXMLList)>
<cfdump var="#Records#">

Here is my CFC:

  <cffunction name="listRecords"

<cfargument name="project" type="string" required="yes"/>
<cfargument name="status" type="string" required="yes"/>

<cfset var Records = "">
<cfset var getall = "">

<cfquery name="getall" datasource="dsn">
select * from table
where upper(character4) = '#ucase(project)#'
and upper(character37) = '#ucase(status)#'

<cfsavecontent variable="Records">
<cfoutput query="getall">

<cfreturn Records>

When I run this, I am getting the following error: Web service operation listRecords with parameters {status={open},category={msl}} cannot be found.

Please advise,

Question by:ehart12
    1 Comment

    Accepted Solution

    Hi All,

    I will award myself the points ;)

    This issue has been resolved by simply adding refreshWSDL="yes" to the cfinvoke tag.



    Thank you,



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    This is an updated version of a post made on my blog over 3 years ago. It is unfortunately, still very relevant as we continue to see both SQLi (SQL injection) and XSS (cross site scripting) attacks hitting some of the most recognizable website and …
    Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now