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/%22%3E 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@gmail.com c: (512) 586-4587
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@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/%22%3E 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@gmail.com c: (512) 586-4587
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@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@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/%22%3E 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@gmail.com c: (512) 586-4587
-- Jeremy Boyd boydjj@gmail.com 512-586-4587
suds mailing list suds@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/suds
Take a look at an e-mail thread "Is this list active?" from last November 16th.
What I took away is: that Jeff Ortel (maintainer) needs help triaging tickets, Jeff committed to giving priority to tickets where users submitted patches.
From someone that knows more about SOAP than myself, how about having a
troubleshooting page and problem submission guideline listing what is needed for someone to fix the problem (trace back, WSDL, ...) to speed things along.
As far as the "correct" answer, unless there are several committed developers, forking the code will the same problem - barely maintained code.
(and ditto: Jeremy, sorry to temporary hijack your thread but Jeremy try contacting Jeff via IRC has he mentioned in e-mail thread above)
From: suds-bounces@lists.fedoraproject.org [mailto:suds-bounces@lists.fedoraproject.org] On Behalf Of Chris Sears Sent: Wednesday, March 09, 2011 4:32 PM To: suds@lists.fedoraproject.org Subject: Re: [Fedora-suds-list] suds not building complex types correctly
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
Thanks for the acknowledgement. I won't chime in, as I'm a new member of the community.
On the plus side, the vendor just acknowledged that this is a bug on their end and put a fix in place, so I'm good now.
Thanks again.
On Mar 10, 2011, at 7:38 AM, Lars Nordin wrote:
Take a look at an e-mail thread “Is this list active?” from last November 16th. What I took away is: that Jeff Ortel (maintainer) needs help triaging tickets, Jeff committed to giving priority to tickets where users submitted patches.
From someone that knows more about SOAP than myself, how about having a troubleshooting page and problem submission guideline listing what is needed for someone to fix the problem (trace back, WSDL, …) to speed things along.
As far as the “correct” answer, unless there are several committed developers, forking the code will the same problem – barely maintained code.
(and ditto: Jeremy, sorry to temporary hijack your thread but Jeremy try contacting Jeff via IRC has he mentioned in e-mail thread above)
From: suds-bounces@lists.fedoraproject.org [mailto:suds-bounces@lists.fedoraproject.org] On Behalf Of Chris Sears Sent: Wednesday, March 09, 2011 4:32 PM To: suds@lists.fedoraproject.org Subject: Re: [Fedora-suds-list] suds not building complex types correctly
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
suds mailing list suds@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/suds
-- Jeremy Boyd e: boydjj@gmail.com c: (512) 586-4587
Jeremy,
Glad to hear your issue is resolved.
If you'd be willing to share, I'd be interested in how you figured out the root cause was a bug on the vendor/service side and the nature of the bug.
Also, did you use any specific tools to help with the troubleshooting?
Thanks,
- Chris
On Thu, Mar 10, 2011 at 9:52 AM, Jeremy Boyd boydjj@gmail.com wrote:
Thanks for the acknowledgement. I won't chime in, as I'm a new member of the community.
On the plus side, the vendor just acknowledged that this is a bug on their end and put a fix in place, so I'm good now.
Thanks again.
On Mar 10, 2011, at 7:38 AM, Lars Nordin wrote:
Take a look at an e-mail thread “Is this list active?” from last November 16th. What I took away is: that Jeff Ortel (maintainer) needs help triaging tickets, Jeff committed to giving priority to tickets where users submitted patches.
From someone that knows more about SOAP than myself, how about having a troubleshooting page and problem submission guideline listing what is needed for someone to fix the problem (trace back, WSDL, …) to speed things along.
As far as the “correct” answer, unless there are several committed developers, forking the code will the same problem – barely maintained code.
(and ditto: Jeremy, sorry to temporary hijack your thread but Jeremy try contacting Jeff via IRC has he mentioned in e-mail thread above)
*From:* suds-bounces@lists.fedoraproject.org [mailto: suds-bounces@lists.fedoraproject.org] *On Behalf Of *Chris Sears *Sent:* Wednesday, March 09, 2011 4:32 PM *To:* suds@lists.fedoraproject.org *Subject:* Re: [Fedora-suds-list] suds not building complex types correctly
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
suds mailing list suds@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/suds
-- Jeremy Boyd e: boydjj@gmail.com c: (512) 586-4587
suds mailing list suds@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/suds