I agree with Viswanathan, your return value must match your return
type. try <cfreturn "false"> instead of <cfreturn false>

On Mon, Apr 21, 2008 at 5:14 PM,  <[EMAIL PROTECTED]> wrote:
>
> maybe, I am way off, but function returntype is string, while it seems to
> return boolean
>
>
>  Jay Jayaraman
>  Central Billing Services
>  Financial Management and Planning
>  (404) 498-8453 (W)
>  (404) 273-7131 (C)
>
>
>
>
> "Kevin Hellriegel" <[EMAIL PROTECTED]>
> Sent by: [EMAIL PROTECTED]
>
> 04/21/2008 04:59 PM
>
> Please respond to
>  [email protected]
>
>
> To [email protected]
>
> cc
>
> Subject [ACFUG Discuss] Creating a web service
>
>
>
>
>
>
> I'm having a slight problem with a web service I'm trying to create. I have
> a cfc that looks similar to this:
>
>  <cffunction name="Import" access="remote" returntype="string" output="no">
>     <cfargument name="SenderID" type="string" required="yes">
>     <cfargument name="PickupDoc" type="string" required="yes">
>
>     ....
>     [Lots of code to validate the PickupDoc]
>     ....
>
>     <cfif Everything goes well>
>        <cfreturn true>
>     <cfelse>
>        <cfreturn false>
>      </cfif>
>
>  </cffunction>
>
>  I created a simple cfm page that tries to use the cfc as a webservice:
>
>  <cfinvoke method="Import" returnvariable="results"
> webservice="http://dev/import.cfc?wsdl";>
>     <cfinvokeargument name="SenderID" value="Test"/>
>     <cfinvokeargument name="PickupDoc" value="Hello my baby, hello my
> honey"/>
>  </cfinvoke>
>
>  The web service *should* return false, but instead I get the error message:
>
> Web service operation "Import" with parameters {PickupDoc={Hello my baby,
> hello my honey},SenderID={Test}} could not be found.
>
>  I can see the wsdl when I copy the url and put it into my browser. If I
> change the cfinvoke to use it as a component instead of a webservice it
> works fine. I must be missing something. Any ideas? This is in CFMX 7.0.2.
>
>  Thanks,
>  Kevin
>
>
>
>  -------------------------------------------------------------
>  Annual Sponsor - Figleaf Software
>
>  To unsubscribe from this list, manage your profile @
>  http://www.acfug.org?fa=login.edituserform
>
>  For more info, see http://www.acfug.org/mailinglists
>  Archive @ http://www.mail-archive.com/discussion%40acfug.org/
>  List hosted by FusionLink
>  -------------------------------------------------------------
>
> -------------------------------------------------------------
> Annual Sponsor - Figleaf Software
>
> To unsubscribe from this list, manage your profile @
> http://www.acfug.org?fa=login.edituserform
>
> For more info, see http://www.acfug.org/mailinglists
> Archive @ http://www.mail-archive.com/discussion%40acfug.org/
> List hosted by FusionLink
> -------------------------------------------------------------



-- 
Darin Kohles
RIA Application Developer


-------------------------------------------------------------
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------



Reply via email to