Glad to help.

/charlie


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Darin Kohles
Sent: Monday, April 21, 2008 9:31 PM
To: [email protected]
Subject: Re: [ACFUG Discuss] Creating a web service

good tip Charlie!

I had a similar issue in try to generate some xml returns from a
webservice call - I ended up simply creating a cfm page that formed it
since my attempts at resolving the issue didn't seem to take - now I
know why....

On Mon, Apr 21, 2008 at 9:19 PM, Charlie Arehart <[EMAIL PROTECTED]>
wrote:
>
>
>
>
> Kevin, if you hadn't written your second sentence, I was going to say that
> the problem is that CF had cached the java stubs it created to call the
web
> service (you're using CF both to publish and consume the web service, and
> this is an issue related to the consumption half of the conversation). I
> would have pointed you to a blog entry I did:
>
>
>
> Reloading CF web services programmatically, using the CF7 Admin API
>
>
http://carehart.org/blog/client/index.cfm/2006/12/12/refreshing_web_services
_programmatically
>
>
>
> CF8 Hidden Gem: Refreshing Web Service WSDL and CF proxy/stub with new
> RefreshWSDL option
>
>
http://carehart.org/blog/client/index.cfm/2007/9/3/cf8_hiddengem_refreshwsdl
>
>
>
> But then you say you "solved" it by changing the CFINVOKE to use the IP
> address rather than server name. The fact that it worked is, then, not a
bug
> but rather simply a confirmation (I'm betting) of what I say above. When
you
> changed the IP address of the CFINVOKE, you changed the java stub created
by
> CF. You can confirm this by looking in the CF Admin for the "web services"
> page, where I'm betting you will see entries for both the domain and the
IP
> address. (Note that you could also have refreshed the caching in CF of the
> web service stub by a refrsh icon in that Admin interface.)
>
>
>
> It's an oft-missed aspect of CF's web services processing that it's cached
> (which is a good thing, because it stops CF checking and building that
stub
> on each call). But you need to be able to refresh it when the web service
> creator changes the API, whether to fix errors, like you did, or just to
add
> functionality.
>
>
>
> Hope that helps.
>
>
>
> /charlie
>
>
>
>
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin
Hellriegel
>  Sent: Monday, April 21, 2008 8:39 PM
>  To: [email protected]
>  Subject: Re: [ACFUG Discuss] Creating a web service
>
>
>
>
>
> Thanks for your suggestions, guys. I changed the return type to a boolean
> and also changed the function's name. Unfortunately, I kept getting the
same
> error.
>
>  On hunch, I changed the cfinvoke to use the server's IP address instead
of
> the hostname and it worked! Has anyone encountered this before? Is this a
> bug in cfinvoke?
>
>  Kevin
>
>
> On Mon, Apr 21, 2008 at 7:56 PM, Darin Kohles <[EMAIL PROTECTED]> wrote:
>
> 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
>  -------------------------------------------------------------
>
>
>
>
>
>
>  -------------------------------------------------------------
>  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
-------------------------------------------------------------






-------------------------------------------------------------
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