On Wed, 2011-01-05 at 22:18 -0800, Matthew Woodward wrote:
> On Wed, Jan 5, 2011 at 4:27 AM, Victor Balada Diaz
> <[email protected]> wrote:
>         I'm starting to play with web services and i would like to
>         publish
>         a web service with a custom XSD with a few complex types.
> 
> My strong, strong recommendation if you at all have a choice would be
> to use REST instead of SOAP. SOAP is dying a well-deserved death so
> certainly if you're starting something new, unless for some weird
> reason you absolutely have to use SOAP, there's no reason to use SOAP.
>  
>         
>         1) What should i put as cfargument and/or cfreturn type= when
>         i want
>         to use a custom complex type?
> 
> It's been a while but I think you can use the CFC type as the return
> type (e.g. MyCFC) but I'd have to review that to be sure. And what
> that means to the consumer if the consumer isn't OpenBD is a different
> discussion entirely.
>  
>         
>         Ie: it doesn't seem easy for me to use this outside of maybe
>         other
>         OpenBD implementation and i would like to be able to use this
>         WS from
>         other languages.
> 
> Right, and this is an issue with SOAP in general. I worked on a
> project recently with a Java consumer and we just decided to do
> everything in Java using Axis2 because then at least things are passed
> back and forth smoothly, ugly as that generated Axis2 code is.
>  
>         Is there
>         maybe any way to create parts of the WSDL file and mappings by
>         hand?
> 
> WSDL first development in CFML quite simply doesn't work. Maybe Adam
> Haskell will see this thread and jump in with his experiences, because
> I know he has some opinions on these matters. ;-)
> 
> For simple web services where you can deal with the WSDL that the CFML
> engine generates, things will work fine. Once you get into having to
> have your WSDL look a very specific way, time to cut bait.
> 
> Again, if you're starting this effort new today, there is no reason to
> use SOAP. All the major web players have already killed their SOAP
> services or will be doing so soon, so that should be a pretty major
> indication that SOAP is going away.
> 
> All this being said I'm definitely not an expert with all things web
> services. I just know what's burned me from time to time over the
> years.

Thanks a lot for your help, I'll check if we can switch to REST API with
JSON or else i'll take a look at Axis2.


-- 
Open BlueDragon Public Mailing List
 http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
 official manual: http://www.openbluedragon.org/manual/
 Ready2Run CFML http://www.openbluedragon.org/openbdjam/

 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to