Does anyone else have any thoughts on how to return an object directly
with a CF based web service without having to convert it to a
structure or query?

Thanks,

Dean

On 10/24/07, Dean Lawrence <[EMAIL PROTECTED]> wrote:
> Hi Brad,
>
> I'm running CF8 on Windows 2003 and yes it is a CFC. I can return
> structures, arrays, queries and single values, but I can't return the
> object itself. I can access the object from within the method and use
> it to populate the structures and values, but if I try to just return
> the object, it throws the error.
>
> Is there any additional attributes that I need to set to serialize the
> CFC in CF8?
>
> Thanks,
>
> Dean
>
> On 10/24/07, Brad Wood <[EMAIL PROTECTED]> wrote:
> > What version of CF?
> > Does the object happen to be a CFC?
> >
> > CFC's are not serializable in CF < 8.
> >
> > Try returning a struct of values if can.
> >
> > ~Brad
> >
> > -----Original Message-----
> > From: Dean Lawrence [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, October 24, 2007 4:30 PM
> > To: CF-Talk
> > Subject: Returning and object from a Web Service
> >
> > When calling a web service that I created (which is being used as a
> > gateway), if I try to return an object I get an error that states
> > "org.xml.sax.SAXException: No deserializer for" and then my object
> > name. If I get the object and then return individual values from that
> > object, it works fine. But if I try to return the whole object, I get
> > the error.
> >
> > From Googling, I believe that I somehow have to some additional
> > reference to the location of the object definition but I don't know
> > where that would be. In the wsdl file? If this is the case, where in
> > the file does it go? Can anyone point me in the right direction?
> >
> > Thanks,
> >
> > Dean
> >
> >
>


-- 
__________________________________________
Dean Lawrence, CIO/Partner
Internet Data Technology
888.GET.IDT1 ext. 701 * fax: 888.438.4381
http://www.idatatech.com/
Corporate Internet Development and Marketing Specialists

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292121
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to