Further to the previous question: when you prepare the return data for
a function where access="remote" would you build an XML document and
return it or would you just return the data in whatever datatype is
required e.g. string, numeric, array, struct etc. Then the underlying
CF builds it into an XML soap packet to send it back to the caller/
client? It just seems crazy to me to do all the dusiness work of your
function and then have to additionally build an XML packet for
returning. The whole point of CF is to make life easy so you just
return the array or whatever and CF converts it into XML.

Are both options correct?

NOTE: I'm aware that in some scenarios you would want to return an XML
document as part of the return package but lets keep it to returning
simple strings, numbers, arrarys for now.

Cheers
Matthew

On Nov 11, 1:41 pm, Matthew <[EMAIL PROTECTED]> wrote:
> @Steve, Thanks for the response but I don't think you've understood me
> correctly. I'll try to explain myself again.
>
> Perhaps there is a CF web service guru out there that can help?
>
> When building a web service, should the input arguments be a single
> XML document (which defines the input parameters) or should you just
> have an argument for each parameter. Or are both options acceptable?
> It makes more sense to me to have a argument for each parameter
> otherwise if you have an XML doc as the input you have to write your
> own XML parser / validator. This is all built right into CF when you
> choose access="remote".
>
> I've been doing a little more reading and noted that you can
> distribute your web service as an RPC (default in CF) or as "document-
> literal style". I think the RPC system is the way I've been discussing
> and the "document-literal style" option is the alternative where you
> pass in a full XML document. Is RPC easier but compatible with fewer
> technologies?
>
> Cheers
> Matthew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to