Web Service - Response is a custom class.

View: New views
5 Messages — Rating Filter:   Alert me  

Web Service - Response is a custom class.

by Bosky, Dave :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Are there any examples of CF invoking web services and returning custom
classes as the response?

How would you extract the data from the response?

 

Seems like I can only return String values as the response when using
CF, no problem in Java.

 

Thanks,

Dave

 

 


**********************************************************************
HTC Disclaimer:  The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.  If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer.  Thank you.
**********************************************************************



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324408
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4

Re: Web Service - Response is a custom class.

by John M Bliss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


What do you see when you cfdump the result of the webservice call?

On Thu, Jul 9, 2009 at 1:05 PM, Bosky, Dave <Dave.Bosky@...> wrote:

>
> Are there any examples of CF invoking web services and returning custom
> classes as the response?
>
> How would you extract the data from the response?
>
>
>
> Seems like I can only return String values as the response when using
> CF, no problem in Java.
>
>
>
> Thanks,
>
> Dave
>
>
>
>
>
>
> **********************************************************************
> HTC Disclaimer:  The information contained in this message may be
> privileged and confidential and protected from disclosure. If the reader of
> this message is not the intended recipient, or an employee or agent
> responsible for delivering this message to the intended recipient, you are
> hereby notified that any dissemination, distribution or copying of this
> communication is strictly prohibited.  If you have received this
> communication in error, please notify us immediately by replying to the
> message and deleting it from your computer.  Thank you.
> **********************************************************************
>
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324409
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4

RE: Web Service - Response is a custom class.

by Bosky, Dave :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Cfdump displays the class name, methods, and return type for each
method.

-----Original Message-----
From: John M Bliss [mailto:bliss.john@...]
Sent: Thursday, July 09, 2009 2:08 PM
To: cf-talk
Subject: Re: Web Service - Response is a custom class.


What do you see when you cfdump the result of the webservice call?

On Thu, Jul 9, 2009 at 1:05 PM, Bosky, Dave <Dave.Bosky@...>
wrote:

>
> Are there any examples of CF invoking web services and returning
custom

> classes as the response?
>
> How would you extract the data from the response?
>
>
>
> Seems like I can only return String values as the response when using
> CF, no problem in Java.
>
>
>
> Thanks,
>
> Dave
>
>
>
>
>
>
> **********************************************************************
> HTC Disclaimer:  The information contained in this message may be
> privileged and confidential and protected from disclosure. If the
reader of
> this message is not the intended recipient, or an employee or agent
> responsible for delivering this message to the intended recipient, you
are
> hereby notified that any dissemination, distribution or copying of
this
> communication is strictly prohibited.  If you have received this
> communication in error, please notify us immediately by replying to
the
> message and deleting it from your computer.  Thank you.
> **********************************************************************
>
>
>
>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324411
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4

Re: Web Service - Response is a custom class.

by John M Bliss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


So then you should be able to call from CFML:

YourWebserviceVar.SomeMethod()
YourWebserviceVar.SomeAttribute
etc

...or am I not understanding what you're trying to do...?

On Thu, Jul 9, 2009 at 1:26 PM, Bosky, Dave <Dave.Bosky@...> wrote:

>
> Cfdump displays the class name, methods, and return type for each
> method.
>
> -----Original Message-----
> From: John M Bliss [mailto:bliss.john@...]
> Sent: Thursday, July 09, 2009 2:08 PM
> To: cf-talk
> Subject: Re: Web Service - Response is a custom class.
>
>
> What do you see when you cfdump the result of the webservice call?
>
> On Thu, Jul 9, 2009 at 1:05 PM, Bosky, Dave <Dave.Bosky@...>
> wrote:
>
> >
> > Are there any examples of CF invoking web services and returning
> custom
> > classes as the response?
> >
> > How would you extract the data from the response?
> >
> >
> >
> > Seems like I can only return String values as the response when using
> > CF, no problem in Java.
> >
> >
> >
> > Thanks,
> >
> > Dave
> >
> >
> >
> >
> >
> >
> > **********************************************************************
> > HTC Disclaimer:  The information contained in this message may be
> > privileged and confidential and protected from disclosure. If the
> reader of
> > this message is not the intended recipient, or an employee or agent
> > responsible for delivering this message to the intended recipient, you
> are
> > hereby notified that any dissemination, distribution or copying of
> this
> > communication is strictly prohibited.  If you have received this
> > communication in error, please notify us immediately by replying to
> the
> > message and deleting it from your computer.  Thank you.
> > **********************************************************************
> >
> >
> >
> >
>
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324412
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4

RE: Web Service - Response is a custom class.

by Bosky, Dave :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Yeah, your right. It worked after I posted this msg. I swore I tried
that earlier and it was blowing up on me.
Thanks!

-----Original Message-----
From: John M Bliss [mailto:bliss.john@...]
Sent: Thursday, July 09, 2009 2:29 PM
To: cf-talk
Subject: Re: Web Service - Response is a custom class.


So then you should be able to call from CFML:

YourWebserviceVar.SomeMethod()
YourWebserviceVar.SomeAttribute
etc

...or am I not understanding what you're trying to do...?

On Thu, Jul 9, 2009 at 1:26 PM, Bosky, Dave <Dave.Bosky@...>
wrote:

>
> Cfdump displays the class name, methods, and return type for each
> method.
>
> -----Original Message-----
> From: John M Bliss [mailto:bliss.john@...]
> Sent: Thursday, July 09, 2009 2:08 PM
> To: cf-talk
> Subject: Re: Web Service - Response is a custom class.
>
>
> What do you see when you cfdump the result of the webservice call?
>
> On Thu, Jul 9, 2009 at 1:05 PM, Bosky, Dave <Dave.Bosky@...>
> wrote:
>
> >
> > Are there any examples of CF invoking web services and returning
> custom
> > classes as the response?
> >
> > How would you extract the data from the response?
> >
> >
> >
> > Seems like I can only return String values as the response when
using

> > CF, no problem in Java.
> >
> >
> >
> > Thanks,
> >
> > Dave
> >
> >
> >
> >
> >
> >
> >
**********************************************************************
> > HTC Disclaimer:  The information contained in this message may be
> > privileged and confidential and protected from disclosure. If the
> reader of
> > this message is not the intended recipient, or an employee or agent
> > responsible for delivering this message to the intended recipient,
you
> are
> > hereby notified that any dissemination, distribution or copying of
> this
> > communication is strictly prohibited.  If you have received this
> > communication in error, please notify us immediately by replying to
> the
> > message and deleting it from your computer.  Thank you.
> >
**********************************************************************
> >
> >
> >
> >
>
>
>
>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324413
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4