Hello devrunner:
If you want to use pysimplesoap (that comes with web2py), you can
create complex types using python dicts:
@service.soap('FEDummy',returns={'FEDummyResult': {'AppServer': str,
'DbServer': str, 'AuthServer': str}},args={})
def dummy():
return {'AppServer': 'OK', 'DbServer': 'OK', 'AuthServer': 'OK'}
should create:
<FEDummyResult>
<AppServer><!--string--></AppServer>
<AuthServer><!--string--></AuthServer>
<DbServer><!--string--></DbServer>
</FEDummyResult>
For more information, you can take a look at:
https://code.google.com/p/pysimplesoap/wiki/ComplexTypes
Maybe you have to grab the latest version of pysimplesoap to use some
new features.
I'll update the docs and libraries ASAP.
Best regards
Mariano Reingart
http://www.sistemasagiles.com.ar
http://reingart.blogspot.com
On Mon, Sep 10, 2012 at 4:31 AM, devrunner <[email protected]> wrote:
> I wanted to return a xml similar to this :
> <Trade>
> <TradeNo></TradeNo>
> <Volume></Volume>
> <Description></Description>
> <etc...>
> <Trade>
>
> using a SOAP WebService. The example i'm seeing is just for primitive
> datatypes, I wanted to have a user defined object. Is this possible? Thanks.
>
> --
>
>
>
--