troubleshooting Question

Web Service Error

Avatar of nmarano
nmarano asked on
ColdFusion Language
5 Comments1 Solution487 ViewsLast Modified:
Hello Experts-

I am using the attached cfc as a web service.  When I pass this single argument,

   <cfinvokeargument name="cid" value="6">
    <cfinvokeargument name="ccid" value="1014684">

Everything works fine and I receive the XML packet back.  When I add other argument that is commented out in the code above, I get the following error message....

"Web service operation landingPageAssets with parameters {ccid={1014684},cid={6}} cannot be found."

Can someone tell me what I am doing wrong here?  Any help would be appreciated.  I've attached the cfc below...


  <cffunction name="landingPageAssets"

    <cfargument name="cid"
          <cfargument name="ccid"

    <cfset Var campaignInfo = "">
    <cfset Var getCampaignInfo = "">
    <cfquery name="getCampaignInfo" datasource="#application.dsn#">
       select as ct_id
            , as ct_name
            ,ct.location as ct_location
            ,ct.offer as ct_offer
            ,ct.headline as ct_headline
            ,ct.defaultState as ct_state
            ,ct.content1 as ct_content1
            ,ct.content2 as ct_content2
            ,ct.image1 as ct_image1
            ,ct.isAllowAppointment as ct_isAllowAppointment
            ,cy.cityID as googlecityid
      		,cy.cityName as googlecityname
      		,cy.state as googlestate
      		,cy.cityAbb as googlecityabb
      		,    as googleactive          
            from clients ct, google_cityID cy
            where = #arguments.cid#
            and cy.cityID =  #arguments.ccid#

    <cfsavecontent variable="CampaignInfo">
        <cfoutput query="getCampaignInfo">
          <campaign id="#ct_id#">

    <cfreturn campaignInfo>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros