[Fedora-suds-list] Handling of complex return values

Jeff Ortel jortel at redhat.com
Wed Apr 14 13:14:12 UTC 2010


Hey Martin,

Can you provide the wsdl (link|copy).  Without the wsdl, I'd be guessing ;)

Regards,

Jeff

On 04/14/2010 12:08 AM, Martin Aspeli wrote:
> Hi,
>
> In our project, we're using two different sets of web services,
> written by two different organisations. I think both are written in
> Java, but that's not necessarily saying much.
>
> In one of the cases, we have a method like getFoo(). Suds has found a
> complex type getFooResponse. This has an attribute 'response', of a
> complex type fooData (also found by Suds) that is specific to the
> method and contains various attributes.
>
> In the other service, we have a method like getBar(). The return value
> is being listed as getBarResponse. This has an attribute 'return', of
> a complex type barData (also found by Suds) that is specific to the
> method and contains various attributes.
>
> Interestingly, when we call the first service, we get back the
> getFooResponse complex object, and we have to do
> 'getFooResponse.response' to get the real fooData object we're
> interested in. In the second service, Suds seems to do this unpacking
> for us, so the return value is a barData directly, and to my knowledge
> we don't use the getBarResponse complex type anywhere.
>
> Why are these two services behaving differently?
>
> Cheers,
> Martin
> _______________________________________________
> suds mailing list
> suds at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/suds

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5126 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/suds/attachments/20100414/caa4a68b/attachment.bin 


More information about the suds mailing list