Hi Jeremy,
I don't have an immediate answer to your question, but I wanted to use this
opportunity to ask the list a broader question: How can we improve community
support for Suds?
I want to help Jeremy. I've been using Suds with varying degrees of success
for a couple years. I could probably help him go through the WSDL, trace the
Suds code and figure out the issue. Maybe it could be fixed with a doctor or
it might require a patch. If the Suds maintainers were actively accepting
patches and responding to bugs, I would feel like doing the troubleshooting
with Jeremy would be a good investment of time. But they don't appear to be,
so I'm somewhat conflicted.
I know the "correct" answer is to fork the code, fix it, and let the gears
of open source do their thing, but I don't see myself being a very good
maintainer, which makes it rather hypocritical of me to fault the current
Suds maintainers.
Thoughts anyone?
(Jeremy, sorry to temporary hijack your thread)
- Chris
On Wed, Mar 9, 2011 at 2:58 PM, Jeremy Boyd <boydjj(a)gmail.com> wrote:
Hate to 'bump' this, but this problem has persisted through
several weeks
and several brains, and I haven't received an answer on the IRC channel or
here. Does anyone have any suggestions as to how we can get suds to build an
ArrayOfInt out of the XML we're getting back? We're about to investigate
solutions in other languages if we can't get this working.
If the question is unclear, please let me know so I can express it better.
Thanks.
On Fri, Feb 11, 2011 at 11:14 AM, Jeremy Boyd <boydjj(a)gmail.com> wrote:
> Hi all,
>
> I'm trying to use suds to consume a WSDL and use a vendor's service.
I've
> found that things work pretty well unless I need to get a complex argument
> as a response. The WSDL defines a type ArrayOfInt as follows:
>
> <complexType name="ArrayOfInt">
> <complexContent>
> <restriction base="soapenc:Array">
> <attribute ref="soapenc:arrayType"
wsdl:arrayType="soapenc:int[]" />
> </restriction>
> </complexContent>
> </complexType>
>
> A typical request/response using ArrayOfInt might look something like
> this:
>
> >>> client.service.getUserDeviceList(test_settings.username,
> test_settings.password, 41768)
> 83133
>
> Here's the raw XML from that response:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> "
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="
>
http://www.w3.org/2001/XMLSchema" soap:encodingStyle="
>
http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="
>
http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body>
> <getUserDeviceListResponse
xmlns="https://www.roamsecure.net/Roamalert">
> <s-gensym3 xsi:type="xsd:int">83133</s-gensym3>
> <s-gensym5 xsi:type="xsd:int">83134</sgensym5>
> </getUserDeviceListResponse>
> </soap:Body>
> </soap:Envelope>
>
> The trouble I'm having is that suds is failing to convert this response
> into an ArrayOfInt. It only gives me the first number - e.g. 83133. And the
> type of the result, per suds, is 'int', so it's not like it's
creating an
> ArrayOfInt with only 1 element.
>
> Is there something I should be doing to get an ArrayOfInt out of this
> response?
>
> Thanks.
>
> --
> Jeremy Boyd
> e: boydjj(a)gmail.com
> c: (512) 586-4587
>
>
--
Jeremy Boyd
boydjj(a)gmail.com
512-586-4587
_______________________________________________
suds mailing list
suds(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/suds