From jortel at redhat.com Tue Jul 8 21:18:23 2008 From: jortel at redhat.com (Jeff Ortel) Date: Tue, 08 Jul 2008 17:18:23 -0400 Subject: [Fedora-suds-list] Release 0.2.2 candidate Message-ID: <4873D99F.4080808@redhat.com> All, Attached is the 0.2.2 release candidate. This release was slated to contain a number of new features. Some have been fully implemented and others only partially. The release candidate also contains a number of important bug fixes and refactoring. A lot of the code has changed since 0.2.1. In the interest of getting these bug fixes into a release and narrowing the gap between trunk and the releases, it seemed like a good idea to go ahead and 'cut a release' with r189. I've got my jboss tests back 'on-line' and 0.2.2 runs clean on my rhq(jboss), axis and public (xmethods) tests. However, I would appreciate it you all would take a few minutes and take 0.2.2 for a 'test drive' and send me some feedback. Thanks, Jeff -- Jeff Ortel RHN Satellite Engineering Red Hat, Inc. 1801 Varsity Dr. Raleigh, NC 27606 (P) 919-754-4603 -------------- next part -------------- A non-text attachment was scrubbed... Name: suds-0.2.2.tar.gz Type: application/x-gzip Size: 49430 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: suds-0.2.2-py2.5.noarch.rpm Type: application/x-rpm Size: 113689 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: suds-0.2.2-py2.5.egg Type: application/octet-stream Size: 196496 bytes Desc: not available URL: From jortel at redhat.com Thu Jul 10 17:14:01 2008 From: jortel at redhat.com (Jeff Ortel) Date: Thu, 10 Jul 2008 13:14:01 -0400 Subject: [Fedora-suds-list] Suds 0.2.2 released Message-ID: <48764359.2080905@redhat.com> -- Jeff Ortel RHN Satellite Engineering Red Hat, Inc. 1801 Varsity Dr. Raleigh, NC 27606 (P) 919-754-4603 From oliver.andrich at gmail.com Fri Jul 18 09:31:26 2008 From: oliver.andrich at gmail.com (Oliver Andrich) Date: Fri, 18 Jul 2008 11:31:26 +0200 Subject: [Fedora-suds-list] Question concering document wrapped/literal Message-ID: <2FF1ADC7-BD85-4809-9DC5-9BFFDF053D0A@gmail.com> Hi, my team is developing webservice which is offered using document wrapped/literal or document/literal wrapped. If I try to access it using suds 0.2.3, I can create the Client instance, but this instance doesn't offer any methods. Is this encoding support by suds? Best regards, Oliver From jortel at redhat.com Fri Jul 18 16:02:22 2008 From: jortel at redhat.com (Jeff Ortel) Date: Fri, 18 Jul 2008 12:02:22 -0400 Subject: [Fedora-suds-list] Question concering document wrapped/literal In-Reply-To: <2FF1ADC7-BD85-4809-9DC5-9BFFDF053D0A@gmail.com> References: <2FF1ADC7-BD85-4809-9DC5-9BFFDF053D0A@gmail.com> Message-ID: <4880BE8E.7080301@redhat.com> Hey Oliver, Can you send me a link to the wsdl? If not, how about a copy of the wsdl? Thanks, Jeff Oliver Andrich wrote: > Hi, > > my team is developing webservice which is offered using document > wrapped/literal or document/literal wrapped. If I try to access it using > suds 0.2.3, I can create the Client instance, but this instance doesn't > offer any methods. Is this encoding support by suds? > > Best regards, > Oliver > > _______________________________________________ > fedora-suds-list mailing list > fedora-suds-list at redhat.com > https://www.redhat.com/mailman/listinfo/fedora-suds-list From wyatt.lee.baldwin at gmail.com Mon Jul 21 19:12:54 2008 From: wyatt.lee.baldwin at gmail.com (Wyatt Baldwin) Date: Mon, 21 Jul 2008 12:12:54 -0700 Subject: [Fedora-suds-list] Setting element attributes Message-ID: How are element attributes set using Suds? I have an element that needs to look like , but I can't figure out how to set ID. Wyatt -------------- next part -------------- An HTML attachment was scrubbed... URL: From wyatt.lee.baldwin at gmail.com Fri Jul 25 02:16:53 2008 From: wyatt.lee.baldwin at gmail.com (Wyatt Baldwin) Date: Thu, 24 Jul 2008 19:16:53 -0700 Subject: [Fedora-suds-list] Setting element attributes... on a method Message-ID: My WSDL for reference: http://cert.synxis.com/interface/ChannelConnect.asmx?WSDL One of the methods in the service I'm using requires an attribute to be set on the method's element. Is there a way to set the attributes of a method's associated element? In case it's not clear what I mean, I'm trying to use a method named OTA_HotelResRQ (corresponds to CreateReservations in the operations list [1]). The OTA_HotelResRQ element has a required attribute named ResStatus. Since I'm not creating an OTA_HotelResRQ object using the client factory when I call the method, I don't see how to set the ResStatus attribute. I tried sending keyword args into the method call, but that didn't work. Here's the type definition for OTA_HotelResRQ: I want an OTA_HotelResRQ method call to generate something like this: Any ideas? [1] http://cert.synxis.com/interface/ChannelConnect.asmx?op=CreateReservations -Wyatt -------------- next part -------------- An HTML attachment was scrubbed... URL: From jortel at redhat.com Mon Jul 28 16:16:46 2008 From: jortel at redhat.com (Jeff Ortel) Date: Mon, 28 Jul 2008 12:16:46 -0400 Subject: [Fedora-suds-list] Serious bug in 0.2.3. Message-ID: <488DF0EE.8070600@redhat.com> All, One of the optimizations included in 0.2.3 as introduced a serious whereby namespaces listed when printing the cleint (or serviceproxy) aren't actually mapped to a URI unless the client is printed. This has been fixed on trunk (r205) and will be release in 0.2.4 shortly. Sorry for any inconvenience. Regards, Jeff From jortel at redhat.com Mon Jul 28 16:20:10 2008 From: jortel at redhat.com (Jeff Ortel) Date: Mon, 28 Jul 2008 12:20:10 -0400 Subject: [Fedora-suds-list] License suds as LGPL Message-ID: <488DF1BA.5090204@redhat.com> All, I've received a request to license suds as LGPL instead of GPL as it is licensed currently. Pending no objections from the community, I intend to do this within the week. If you have an objection, please post it on the list. Regards, Jeff From rizwan.raza at gmail.com Mon Jul 28 22:58:29 2008 From: rizwan.raza at gmail.com (Rizwan Raza) Date: Mon, 28 Jul 2008 17:58:29 -0500 Subject: [Fedora-suds-list] installing suds on windows Message-ID: <65e8f6b40807281558y57c35a2emc585e353ba462859@mail.gmail.com> I am new to PYTHON and SUDS, I need to call a WS method from PYTHON. Can someone let me know how can I install SUDS? Is there any setup.py file available? From jortel at redhat.com Tue Jul 29 15:33:08 2008 From: jortel at redhat.com (Jeff Ortel) Date: Tue, 29 Jul 2008 11:33:08 -0400 Subject: [Fedora-suds-list] Suds 0.2.4 released 7/28 Message-ID: <488F3834.8020508@redhat.com> See the wiki or release nodes in README for details. From vangheem at gmail.com Tue Jul 29 15:38:50 2008 From: vangheem at gmail.com (Nathan Van Gheem) Date: Tue, 29 Jul 2008 10:38:50 -0500 Subject: [Fedora-suds-list] installing suds on windows In-Reply-To: <65e8f6b40807290832u1362978di897ad8917fc713a6@mail.gmail.com> References: <65e8f6b40807281558y57c35a2emc585e353ba462859@mail.gmail.com> <4308f0ba0807281606l6b33b31o466c8369043e87ec@mail.gmail.com> <4308f0ba0807281608v24d3f8fcn77211e1bf132760@mail.gmail.com> <65e8f6b40807290823y79a6d391mc24f135a1c854c57@mail.gmail.com> <4308f0ba0807290825q26109dc4o5ead06ab3672e57c@mail.gmail.com> <65e8f6b40807290829s76cb6bd4nf3c96d64f500a616@mail.gmail.com> <65e8f6b40807290832u1362978di897ad8917fc713a6@mail.gmail.com> Message-ID: <4308f0ba0807290838r6c2ddb40u44f8ddf97b402939@mail.gmail.com> Sorry everyone for forgetting the "reply to all" Rizwan, A little googling would have giving you http://pypi.python.org/pypi/setuptools This list is really not the place for these questions because installing suds is just standard python. Please read up more next time. Thanks, Nathan On Tue, Jul 29, 2008 at 10:32 AM, Rizwan Raza wrote: > I ran python setup.py build and get the following error > > No module named setuptools > > On 7/29/08, Rizwan Raza wrote: > > I got it. Thanks > > > > On 7/29/08, Nathan Van Gheem wrote: > > > If you used svn then you should have it. You're looking at the > directory > > > structure one down from where you should be. If you just go to the > address > > > http://svn.fedorahosted.org/svn/suds/trunk/ you'll see the > > > setup.py in there. > > > > > > > > > -Nathan > > > > > > > > > On Tue, Jul 29, 2008 at 10:23 AM, Rizwan Raza > wrote: > > > > Ok I downloaded the repository using SVN > > > > cd suds but did not see any setup.py file there. Attached is the > > > > folder listing for suds folder > > > > > > > > Then I tried the second approach. Got the tar ball. Tried to > > > > decompress it on Windows XP got the error attached > > > > > > > > Any help would be greatly appreciated. > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > On 7/28/08, Nathan Van Gheem wrote: > > > > > Forgot to mention you can actually just download the source from > > > > > > > > > https://fedorahosted.org/suds/attachment/wiki/WikiStart/suds-0.2.4.tar.gz > > > > > have a lot at the main project page for a list of all the files > > > > > https://fedorahosted.org/suds > > > > > > > > > > -Nathan > > > > > > > > > > > > > > > On Mon, Jul 28, 2008 at 6:06 PM, Nathan Van Gheem < > vangheem at gmail.com> > > > > > wrote: > > > > > > > > > > > > Yes, you can checkout the trunk from the svn or you can use > > > easy_install > > > > > to download and install the package for you(although the latest > 0.2.4 > > > > > release isn't in pypi yet). Once you check it out just use the > setup.py > > > in > > > > > there to install or you can just run from the source.... > > > > > > > > > > > > First, make sure subversion is installed. I've used tortoise svn > > > > > http://tortoisesvn.tigris.org/ for windows before. It is very > easy to > > > use. > > > > > > The command sequence will be like so(if you just use the basic > svn > > > > > install) > > > > > > > > > > > > svn co http://svn.fedorahosted.org/svn/suds/trunk > > > suds > > > > > > cd suds > > > > > > python setup.py build > > > > > > python setup.py install > > > > > > That should work... Anyways, good luck. > > > > > > > > > > > > To use suds just check out the README in the root folder. > > > > > > > > > > > > -Nathan > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Mon, Jul 28, 2008 at 5:58 PM, Rizwan Raza < > rizwan.raza at gmail.com> > > > > > wrote: > > > > > > > > > > > > > I am new to PYTHON and SUDS, I need to call a WS method from > PYTHON. > > > > > > > Can someone let me know how can I install SUDS? Is there any > > > setup.py > > > > > > > file available? > > > > > > > > > > > > > > _______________________________________________ > > > > > > > fedora-suds-list mailing list > > > > > > > fedora-suds-list at redhat.com > > > > > > > > > > > > > > > https://www.redhat.com/mailman/listinfo/fedora-suds-list > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vangheem at gmail.com Tue Jul 29 17:13:31 2008 From: vangheem at gmail.com (Nathan Van Gheem) Date: Tue, 29 Jul 2008 12:13:31 -0500 Subject: [Fedora-suds-list] installing suds on windows In-Reply-To: <65e8f6b40807291009r2c336ec2m560d4de52c76f346@mail.gmail.com> References: <65e8f6b40807281558y57c35a2emc585e353ba462859@mail.gmail.com> <4308f0ba0807281606l6b33b31o466c8369043e87ec@mail.gmail.com> <4308f0ba0807281608v24d3f8fcn77211e1bf132760@mail.gmail.com> <65e8f6b40807290823y79a6d391mc24f135a1c854c57@mail.gmail.com> <4308f0ba0807290825q26109dc4o5ead06ab3672e57c@mail.gmail.com> <65e8f6b40807290829s76cb6bd4nf3c96d64f500a616@mail.gmail.com> <65e8f6b40807290832u1362978di897ad8917fc713a6@mail.gmail.com> <4308f0ba0807290838r6c2ddb40u44f8ddf97b402939@mail.gmail.com> <65e8f6b40807291009r2c336ec2m560d4de52c76f346@mail.gmail.com> Message-ID: <4308f0ba0807291013v63a6e8f0hb332283220f68d31@mail.gmail.com> Please read the README file in the suds base directory for instructions on how to use it. There are no external dependencies as you can tell by looking at the setup.py file. On Tue, Jul 29, 2008 at 12:09 PM, Rizwan Raza wrote: > Nathan: > > Thanks for bearing with me. Anyways I was able to build and install > SUDS. Now I am using the legacy approach to call a web service. Below > is the code > > > from serviceproxy import ServiceProxy > myurl = 'http://localhost/CalendarService.svc?wsdl' > myservice=ServiceProxy(myurl) > ret = myservice.TestDoc('some value') > print ret > > but I am getting the following error > > ImportError: No module named serviceproxy. Is that also some module > that needs to be installed before I can use SUDS? Can you please send > me the link. I really would appreciate it. > > > On 7/29/08, Nathan Van Gheem wrote: > > Sorry everyone for forgetting the "reply to all" > > > > Rizwan, > > > > A little googling would have giving you > > http://pypi.python.org/pypi/setuptools > > > > This list is really not the place for these questions because > installing > > suds is just standard python. Please read up more next time. > > > > > > Thanks, > > Nathan > > > > > > > > On Tue, Jul 29, 2008 at 10:32 AM, Rizwan Raza > wrote: > > > I ran python setup.py build and get the following error > > > > > > No module named setuptools > > > > > > > > > > > > > > > On 7/29/08, Rizwan Raza wrote: > > > > I got it. Thanks > > > > > > > > On 7/29/08, Nathan Van Gheem wrote: > > > > > If you used svn then you should have it. You're looking at the > > directory > > > > > structure one down from where you should be. If you just go to the > > address > > > > > http://svn.fedorahosted.org/svn/suds/trunk/ you'll > > see the > > > > > setup.py in there. > > > > > > > > > > > > > > > -Nathan > > > > > > > > > > > > > > > On Tue, Jul 29, 2008 at 10:23 AM, Rizwan Raza < > rizwan.raza at gmail.com> > > wrote: > > > > > > Ok I downloaded the repository using SVN > > > > > > cd suds but did not see any setup.py file there. Attached is the > > > > > > folder listing for suds folder > > > > > > > > > > > > Then I tried the second approach. Got the tar ball. Tried to > > > > > > decompress it on Windows XP got the error attached > > > > > > > > > > > > Any help would be greatly appreciated. > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 7/28/08, Nathan Van Gheem wrote: > > > > > > > Forgot to mention you can actually just download the source > from > > > > > > > > > > > > > > > https://fedorahosted.org/suds/attachment/wiki/WikiStart/suds-0.2.4.tar.gz > > > > > > > have a lot at the main project page for a list of all the > files > > > > > > > https://fedorahosted.org/suds > > > > > > > > > > > > > > -Nathan > > > > > > > > > > > > > > > > > > > > > On Mon, Jul 28, 2008 at 6:06 PM, Nathan Van Gheem > > > > > > > > > wrote: > > > > > > > > > > > > > > > > Yes, you can checkout the trunk from the svn or you can use > > > > > easy_install > > > > > > > to download and install the package for you(although the latest > > 0.2.4 > > > > > > > release isn't in pypi yet). Once you check it out just use the > > setup.py > > > > > in > > > > > > > there to install or you can just run from the source.... > > > > > > > > > > > > > > > > First, make sure subversion is installed. I've used tortoise > > svn > > > > > > > http://tortoisesvn.tigris.org/ for windows before. It is very > > easy to > > > > > use. > > > > > > > > The command sequence will be like so(if you just use the > basic > > svn > > > > > > > install) > > > > > > > > > > > > > > > > svn co > > http://svn.fedorahosted.org/svn/suds/trunk > > > > > suds > > > > > > > > cd suds > > > > > > > > python setup.py build > > > > > > > > python setup.py install > > > > > > > > That should work... Anyways, good luck. > > > > > > > > > > > > > > > > To use suds just check out the README in the root folder. > > > > > > > > > > > > > > > > -Nathan > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Mon, Jul 28, 2008 at 5:58 PM, Rizwan Raza > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > I am new to PYTHON and SUDS, I need to call a WS method > from > > PYTHON. > > > > > > > > > Can someone let me know how can I install SUDS? Is there > any > > > > > setup.py > > > > > > > > > file available? > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > fedora-suds-list mailing list > > > > > > > > > fedora-suds-list at redhat.com > > > > > > > > > > > > > > > > > > > > > > > https://www.redhat.com/mailman/listinfo/fedora-suds-list > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > fedora-suds-list mailing list > > fedora-suds-list at redhat.com > > https://www.redhat.com/mailman/listinfo/fedora-suds-list > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rizwan.raza at gmail.com Tue Jul 29 18:56:48 2008 From: rizwan.raza at gmail.com (Rizwan Raza) Date: Tue, 29 Jul 2008 13:56:48 -0500 Subject: [Fedora-suds-list] suds and complex type Message-ID: <65e8f6b40807291156k17585470s2bf5fe05334ce89@mail.gmail.com> I have the following as a response from one of the web service method. It is an ArrayOfComplexType with an xsd:extension Executing the code below from suds.serviceproxy import ServiceProxy url = 'http://chouwmlci0849.amrs.win.ml.com/Cds/Calendar/CalendarService.svc?wsdl' myservice=ServiceProxy(url) print myservice.FindCalendarValuesByName('','','','','','') is giving me the following error Traceback (most recent call last): File "C:\MerrillLynch\projects\PYTHON\WSTest01.py", line 20, in ? print myservice.FindCalendarValuesByName('LCCME_OPTIONS','2008-01-01','2008- 06-30','','','') File "build\bdist.win32\egg\suds\sudsobject.py", line 119, in __str__ File "build\bdist.win32\egg\suds\sudsobject.py", line 122, in __unicode__ File "build\bdist.win32\egg\suds\sudsobject.py", line 161, in tostr File "build\bdist.win32\egg\suds\sudsobject.py", line 171, in process File "build\bdist.win32\egg\suds\sudsobject.py", line 234, in print_object File "build\bdist.win32\egg\suds\sudsobject.py", line 183, in process File "build\bdist.win32\egg\suds\sudsobject.py", line 274, in print_collection File "build\bdist.win32\egg\suds\sudsobject.py", line 171, in process File "build\bdist.win32\egg\suds\sudsobject.py", line 234, in print_object File "build\bdist.win32\egg\suds\sudsobject.py", line 186, in process File "build\bdist.win32\egg\suds\__init__.py", line 129, in tostr ValueError: tzinfo.utcoffset() returned 1440; must be in -1439 .. 1439 I tested with a simple Complex type below for which it worked. I would appreciate any pointers into that From vangheem at gmail.com Tue Jul 29 19:03:48 2008 From: vangheem at gmail.com (Nathan Van Gheem) Date: Tue, 29 Jul 2008 14:03:48 -0500 Subject: [Fedora-suds-list] suds and complex type In-Reply-To: <65e8f6b40807291156k17585470s2bf5fe05334ce89@mail.gmail.com> References: <65e8f6b40807291156k17585470s2bf5fe05334ce89@mail.gmail.com> Message-ID: <4308f0ba0807291203l78269069mc98c62e7ff119726@mail.gmail.com> The url you have given doesn't seem to work. Is it not accessible from anywhere? On Tue, Jul 29, 2008 at 1:56 PM, Rizwan Raza wrote: > I have the following as a response from one of the web service method. > It is an ArrayOfComplexType with an xsd:extension > > Executing the code below > > from suds.serviceproxy import ServiceProxy > url = ' > http://chouwmlci0849.amrs.win.ml.com/Cds/Calendar/CalendarService.svc?wsdl > ' > myservice=ServiceProxy(url) > print myservice.FindCalendarValuesByName('','','','','','') > > is giving me the following error > > Traceback (most recent call last): > File "C:\MerrillLynch\projects\PYTHON\WSTest01.py", line 20, in ? > print > myservice.FindCalendarValuesByName('LCCME_OPTIONS','2008-01-01','2008- > 06-30','','','') > File "build\bdist.win32\egg\suds\sudsobject.py", line 119, in __str__ > File "build\bdist.win32\egg\suds\sudsobject.py", line 122, in __unicode__ > File "build\bdist.win32\egg\suds\sudsobject.py", line 161, in tostr > File "build\bdist.win32\egg\suds\sudsobject.py", line 171, in process > File "build\bdist.win32\egg\suds\sudsobject.py", line 234, in print_object > File "build\bdist.win32\egg\suds\sudsobject.py", line 183, in process > File "build\bdist.win32\egg\suds\sudsobject.py", line 274, in > print_collection > > File "build\bdist.win32\egg\suds\sudsobject.py", line 171, in process > File "build\bdist.win32\egg\suds\sudsobject.py", line 234, in print_object > File "build\bdist.win32\egg\suds\sudsobject.py", line 186, in process > File "build\bdist.win32\egg\suds\__init__.py", line 129, in tostr > ValueError: tzinfo.utcoffset() returned 1440; must be in -1439 .. 1439 > > > > > name="FindCalendarValuesByNameResult" > type="tns:ArrayOfCalendarValueData" /> > > > > > > > name="CalendarValueData" nillable="true" type="tns:CalendarValueData" > /> > > > > > > > type="xsd:int" /> > type="xsd:dateTime" /> > name="CalendarValueDescription" nillable="true" type="xsd:string" /> > nillable="true" type="xsd:dateTime" /> > nillable="true" type="xsd:dateTime" /> > type="xsd:int" /> > name="CalendarValueTypeName" nillable="true" type="xsd:string" /> > > > > > > > > > type="tns:DataState" /> > type="xsd:dateTime" /> > nillable="true" type="xsd:string" /> > /> > > > > > > > > > > > > > > > I tested with a simple Complex type below for which it worked. > > > > > type="tns:ArrayOfEmployee" /> > > > > > > nillable="true" type="tns:Employee" /> > > > > > type="xsd:string" /> > /> > > > > I would appreciate any pointers into that > > _______________________________________________ > fedora-suds-list mailing list > fedora-suds-list at redhat.com > https://www.redhat.com/mailman/listinfo/fedora-suds-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rizwan.raza at gmail.com Tue Jul 29 19:08:19 2008 From: rizwan.raza at gmail.com (Rizwan Raza) Date: Tue, 29 Jul 2008 14:08:19 -0500 Subject: [Fedora-suds-list] suds and complex type In-Reply-To: <4308f0ba0807291203l78269069mc98c62e7ff119726@mail.gmail.com> References: <65e8f6b40807291156k17585470s2bf5fe05334ce89@mail.gmail.com> <4308f0ba0807291203l78269069mc98c62e7ff119726@mail.gmail.com> Message-ID: <65e8f6b40807291208t6e2bd01cif692746ab9f20774@mail.gmail.com> That is an internal url. B/W I tried SOAPpy and it is able to get that complex type the only thing is that SOAPpy does not support Document/Literal whereas SUDS does. On 7/29/08, Nathan Van Gheem wrote: > The url you have given doesn't seem to work. Is it not accessible from > anywhere? > > > On Tue, Jul 29, 2008 at 1:56 PM, Rizwan Raza wrote: > > > > I have the following as a response from one of the web service method. > > It is an ArrayOfComplexType with an xsd:extension > > > > Executing the code below > > > > from suds.serviceproxy import ServiceProxy > > url = > 'http://chouwmlci0849.amrs.win.ml.com/Cds/Calendar/CalendarService.svc?wsdl' > > myservice=ServiceProxy(url) > > print > myservice.FindCalendarValuesByName('','','','','','') > > > > is giving me the following error > > > > Traceback (most recent call last): > > File "C:\MerrillLynch\projects\PYTHON\WSTest01.py", line > 20, in ? > > print > myservice.FindCalendarValuesByName('LCCME_OPTIONS','2008-01-01','2008- > > 06-30','','','') > > File "build\bdist.win32\egg\suds\sudsobject.py", line > 119, in __str__ > > File "build\bdist.win32\egg\suds\sudsobject.py", line > 122, in __unicode__ > > File "build\bdist.win32\egg\suds\sudsobject.py", line > 161, in tostr > > File "build\bdist.win32\egg\suds\sudsobject.py", line > 171, in process > > File "build\bdist.win32\egg\suds\sudsobject.py", line > 234, in print_object > > File "build\bdist.win32\egg\suds\sudsobject.py", line > 183, in process > > File "build\bdist.win32\egg\suds\sudsobject.py", line > 274, in print_collection > > > > File "build\bdist.win32\egg\suds\sudsobject.py", line > 171, in process > > File "build\bdist.win32\egg\suds\sudsobject.py", line > 234, in print_object > > File "build\bdist.win32\egg\suds\sudsobject.py", line > 186, in process > > File "build\bdist.win32\egg\suds\__init__.py", line 129, > in tostr > > ValueError: tzinfo.utcoffset() returned 1440; must be in -1439 .. 1439 > > > > name="FindCalendarValuesByNameResponse"> > > > > > > > name="FindCalendarValuesByNameResult" > > type="tns:ArrayOfCalendarValueData" /> > > > > > > > > > > > > > > > name="CalendarValueData" nillable="true" type="tns:CalendarValueData" > > /> > > > > > > > > > > > > > > > type="xsd:int" /> > > > type="xsd:dateTime" /> > > > name="CalendarValueDescription" nillable="true" > type="xsd:string" /> > > > nillable="true" type="xsd:dateTime" /> > > > nillable="true" type="xsd:dateTime" /> > > > type="xsd:int" /> > > > name="CalendarValueTypeName" nillable="true" type="xsd:string" /> > > > > > > > > > > > > > > > > > > > type="tns:DataState" /> > > > type="xsd:dateTime" /> > > > nillable="true" type="xsd:string" /> > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I tested with a simple Complex type below for which it worked. > > > > > > > > > > > type="tns:ArrayOfEmployee" /> > > > > > > > > > > > > > nillable="true" type="tns:Employee" /> > > > > > > > > > > > type="xsd:string" /> > > type="xsd:string" /> > > > > > > > > I would appreciate any pointers into that > > > > _______________________________________________ > > fedora-suds-list mailing list > > fedora-suds-list at redhat.com > > > https://www.redhat.com/mailman/listinfo/fedora-suds-list > > > > From vangheem at gmail.com Tue Jul 29 19:09:04 2008 From: vangheem at gmail.com (Nathan Van Gheem) Date: Tue, 29 Jul 2008 14:09:04 -0500 Subject: [Fedora-suds-list] suds and complex type In-Reply-To: <65e8f6b40807291208t6e2bd01cif692746ab9f20774@mail.gmail.com> References: <65e8f6b40807291156k17585470s2bf5fe05334ce89@mail.gmail.com> <4308f0ba0807291203l78269069mc98c62e7ff119726@mail.gmail.com> <65e8f6b40807291208t6e2bd01cif692746ab9f20774@mail.gmail.com> Message-ID: <4308f0ba0807291209y3f91068dl3886a5e4b3d22d5f@mail.gmail.com> Can you give a url that we can test? On Tue, Jul 29, 2008 at 2:08 PM, Rizwan Raza wrote: > That is an internal url. > > B/W I tried SOAPpy and it is able to get that complex type the only > thing is that SOAPpy does not support Document/Literal whereas SUDS > does. > > On 7/29/08, Nathan Van Gheem wrote: > > The url you have given doesn't seem to work. Is it not accessible from > > anywhere? > > > > > > On Tue, Jul 29, 2008 at 1:56 PM, Rizwan Raza > wrote: > > > > > > I have the following as a response from one of the web service method. > > > It is an ArrayOfComplexType with an xsd:extension > > > > > > Executing the code below > > > > > > from suds.serviceproxy import ServiceProxy > > > url = > > ' > http://chouwmlci0849.amrs.win.ml.com/Cds/Calendar/CalendarService.svc?wsdl > ' > > > myservice=ServiceProxy(url) > > > print > > myservice.FindCalendarValuesByName('','','','','','') > > > > > > is giving me the following error > > > > > > Traceback (most recent call last): > > > File "C:\MerrillLynch\projects\PYTHON\WSTest01.py", line > > 20, in ? > > > print > > myservice.FindCalendarValuesByName('LCCME_OPTIONS','2008-01-01','2008- > > > 06-30','','','') > > > File "build\bdist.win32\egg\suds\sudsobject.py", line > > 119, in __str__ > > > File "build\bdist.win32\egg\suds\sudsobject.py", line > > 122, in __unicode__ > > > File "build\bdist.win32\egg\suds\sudsobject.py", line > > 161, in tostr > > > File "build\bdist.win32\egg\suds\sudsobject.py", line > > 171, in process > > > File "build\bdist.win32\egg\suds\sudsobject.py", line > > 234, in print_object > > > File "build\bdist.win32\egg\suds\sudsobject.py", line > > 183, in process > > > File "build\bdist.win32\egg\suds\sudsobject.py", line > > 274, in print_collection > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", line > > 171, in process > > > File "build\bdist.win32\egg\suds\sudsobject.py", line > > 234, in print_object > > > File "build\bdist.win32\egg\suds\sudsobject.py", line > > 186, in process > > > File "build\bdist.win32\egg\suds\__init__.py", line 129, > > in tostr > > > ValueError: tzinfo.utcoffset() returned 1440; must be in -1439 .. 1439 > > > > > > > name="FindCalendarValuesByNameResponse"> > > > > > > > > > > > name="FindCalendarValuesByNameResult" > > > type="tns:ArrayOfCalendarValueData" /> > > > > > > > > > > > > > > > > > > > > > > > name="CalendarValueData" nillable="true" type="tns:CalendarValueData" > > > /> > > > > > > > > > > > > > > > > > > > > > > > type="xsd:int" /> > > > > > type="xsd:dateTime" /> > > > > > name="CalendarValueDescription" nillable="true" > > type="xsd:string" /> > > > > > nillable="true" type="xsd:dateTime" /> > > > > > nillable="true" type="xsd:dateTime" /> > > > > > type="xsd:int" /> > > > > > name="CalendarValueTypeName" nillable="true" type="xsd:string" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="tns:DataState" /> > > > > > type="xsd:dateTime" /> > > > > > nillable="true" type="xsd:string" /> > > > type="xsd:boolean" > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I tested with a simple Complex type below for which it worked. > > > > > > > > > > > > > > > > > type="tns:ArrayOfEmployee" /> > > > > > > > > > > > > > > > > > > > > nillable="true" type="tns:Employee" /> > > > > > > > > > > > > > > > > > type="xsd:string" /> > > > > type="xsd:string" /> > > > > > > > > > > > > I would appreciate any pointers into that > > > > > > _______________________________________________ > > > fedora-suds-list mailing list > > > fedora-suds-list at redhat.com > > > > > https://www.redhat.com/mailman/listinfo/fedora-suds-list > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vangheem at gmail.com Tue Jul 29 19:11:45 2008 From: vangheem at gmail.com (Nathan Van Gheem) Date: Tue, 29 Jul 2008 14:11:45 -0500 Subject: [Fedora-suds-list] suds and complex type In-Reply-To: <4308f0ba0807291209y3f91068dl3886a5e4b3d22d5f@mail.gmail.com> References: <65e8f6b40807291156k17585470s2bf5fe05334ce89@mail.gmail.com> <4308f0ba0807291203l78269069mc98c62e7ff119726@mail.gmail.com> <65e8f6b40807291208t6e2bd01cif692746ab9f20774@mail.gmail.com> <4308f0ba0807291209y3f91068dl3886a5e4b3d22d5f@mail.gmail.com> Message-ID: <4308f0ba0807291211r4424cad9w84a310cc2b79f932@mail.gmail.com> Otherwise, from the initial look of it, you might need to send it a python dateTime object instead of giving it a date string. dateTime types are handled with real python objects.... On Tue, Jul 29, 2008 at 2:09 PM, Nathan Van Gheem wrote: > Can you give a url that we can test? > > > On Tue, Jul 29, 2008 at 2:08 PM, Rizwan Raza wrote: > >> That is an internal url. >> >> B/W I tried SOAPpy and it is able to get that complex type the only >> thing is that SOAPpy does not support Document/Literal whereas SUDS >> does. >> >> On 7/29/08, Nathan Van Gheem wrote: >> > The url you have given doesn't seem to work. Is it not accessible from >> > anywhere? >> > >> > >> > On Tue, Jul 29, 2008 at 1:56 PM, Rizwan Raza >> wrote: >> > > >> > > I have the following as a response from one of the web service method. >> > > It is an ArrayOfComplexType with an xsd:extension >> > > >> > > Executing the code below >> > > >> > > from suds.serviceproxy import ServiceProxy >> > > url = >> > ' >> http://chouwmlci0849.amrs.win.ml.com/Cds/Calendar/CalendarService.svc?wsdl >> ' >> > > myservice=ServiceProxy(url) >> > > print >> > myservice.FindCalendarValuesByName('','','','','','') >> > > >> > > is giving me the following error >> > > >> > > Traceback (most recent call last): >> > > File "C:\MerrillLynch\projects\PYTHON\WSTest01.py", line >> > 20, in ? >> > > print >> > myservice.FindCalendarValuesByName('LCCME_OPTIONS','2008-01-01','2008- >> > > 06-30','','','') >> > > File "build\bdist.win32\egg\suds\sudsobject.py", line >> > 119, in __str__ >> > > File "build\bdist.win32\egg\suds\sudsobject.py", line >> > 122, in __unicode__ >> > > File "build\bdist.win32\egg\suds\sudsobject.py", line >> > 161, in tostr >> > > File "build\bdist.win32\egg\suds\sudsobject.py", line >> > 171, in process >> > > File "build\bdist.win32\egg\suds\sudsobject.py", line >> > 234, in print_object >> > > File "build\bdist.win32\egg\suds\sudsobject.py", line >> > 183, in process >> > > File "build\bdist.win32\egg\suds\sudsobject.py", line >> > 274, in print_collection >> > > >> > > File "build\bdist.win32\egg\suds\sudsobject.py", line >> > 171, in process >> > > File "build\bdist.win32\egg\suds\sudsobject.py", line >> > 234, in print_object >> > > File "build\bdist.win32\egg\suds\sudsobject.py", line >> > 186, in process >> > > File "build\bdist.win32\egg\suds\__init__.py", line 129, >> > in tostr >> > > ValueError: tzinfo.utcoffset() returned 1440; must be in -1439 .. 1439 >> > > >> > > > > name="FindCalendarValuesByNameResponse"> >> > > >> > > >> > > > > > name="FindCalendarValuesByNameResult" >> > > type="tns:ArrayOfCalendarValueData" /> >> > > >> > > >> > > >> > > >> > > >> > > >> > > > > > name="CalendarValueData" nillable="true" type="tns:CalendarValueData" >> > > /> >> > > >> > > >> > > >> > > >> > > >> > > >> > > > > > type="xsd:int" /> >> > > > > > type="xsd:dateTime" /> >> > > > > > name="CalendarValueDescription" nillable="true" >> > type="xsd:string" /> >> > > > > > nillable="true" type="xsd:dateTime" /> >> > > > > > nillable="true" type="xsd:dateTime" /> >> > > > > > type="xsd:int" /> >> > > > > > name="CalendarValueTypeName" nillable="true" type="xsd:string" /> >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > > > > type="tns:DataState" /> >> > > > > > type="xsd:dateTime" /> >> > > > > > nillable="true" type="xsd:string" /> >> > > > type="xsd:boolean" >> > /> >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > I tested with a simple Complex type below for which it worked. >> > > >> > > >> > > >> > > >> > > > > > type="tns:ArrayOfEmployee" /> >> > > >> > > >> > > >> > > >> > > >> > > > > > nillable="true" type="tns:Employee" /> >> > > >> > > >> > > >> > > >> > > > > > type="xsd:string" /> >> > > > > type="xsd:string" /> >> > > >> > > >> > > >> > > I would appreciate any pointers into that >> > > >> > > _______________________________________________ >> > > fedora-suds-list mailing list >> > > fedora-suds-list at redhat.com >> > > >> > https://www.redhat.com/mailman/listinfo/fedora-suds-list >> > > >> > >> > >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rizwan.raza at gmail.com Tue Jul 29 19:16:37 2008 From: rizwan.raza at gmail.com (Rizwan Raza) Date: Tue, 29 Jul 2008 14:16:37 -0500 Subject: [Fedora-suds-list] suds and complex type In-Reply-To: <4308f0ba0807291211r4424cad9w84a310cc2b79f932@mail.gmail.com> References: <65e8f6b40807291156k17585470s2bf5fe05334ce89@mail.gmail.com> <4308f0ba0807291203l78269069mc98c62e7ff119726@mail.gmail.com> <65e8f6b40807291208t6e2bd01cif692746ab9f20774@mail.gmail.com> <4308f0ba0807291209y3f91068dl3886a5e4b3d22d5f@mail.gmail.com> <4308f0ba0807291211r4424cad9w84a310cc2b79f932@mail.gmail.com> Message-ID: <65e8f6b40807291216m3f3b1a4mbe7b27e3dfc77144@mail.gmail.com> Unfortunately you can't hit the WSDL. I do not think datetime is an issue here. How about elements in the complex type. Do you think that could be causing it. Is there any other information that I can send, some sort of tracing info that would help in detecting the cause of it? On 7/29/08, Nathan Van Gheem wrote: > Otherwise, from the initial look of it, you might need to send it a python > dateTime object instead of giving it a date string. dateTime types are > handled with real python objects.... > > > On Tue, Jul 29, 2008 at 2:09 PM, Nathan Van Gheem > wrote: > > > > Can you give a url that we can test? > > > > > > > > > > > > On Tue, Jul 29, 2008 at 2:08 PM, Rizwan Raza > wrote: > > > > > That is an internal url. > > > > > > B/W I tried SOAPpy and it is able to get that complex type the only > > > thing is that SOAPpy does not support Document/Literal whereas SUDS > > > does. > > > > > > > > > > > > > > > On 7/29/08, Nathan Van Gheem wrote: > > > > The url you have given doesn't seem to work. Is it not accessible > from > > > > anywhere? > > > > > > > > > > > > On Tue, Jul 29, 2008 at 1:56 PM, Rizwan Raza > wrote: > > > > > > > > > > I have the following as a response from one of the web service > method. > > > > > It is an ArrayOfComplexType with an xsd:extension > > > > > > > > > > Executing the code below > > > > > > > > > > from suds.serviceproxy import ServiceProxy > > > > > url = > > > > > 'http://chouwmlci0849.amrs.win.ml.com/Cds/Calendar/CalendarService.svc?wsdl' > > > > > myservice=ServiceProxy(url) > > > > > print > > > > > myservice.FindCalendarValuesByName('','','','','','') > > > > > > > > > > is giving me the following error > > > > > > > > > > Traceback (most recent call last): > > > > > File > "C:\MerrillLynch\projects\PYTHON\WSTest01.py", line > > > > 20, in ? > > > > > print > > > > > myservice.FindCalendarValuesByName('LCCME_OPTIONS','2008-01-01','2008- > > > > > 06-30','','','') > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > line > > > > 119, in __str__ > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > line > > > > 122, in __unicode__ > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > line > > > > 161, in tostr > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > line > > > > 171, in process > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > line > > > > 234, in print_object > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > line > > > > 183, in process > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > line > > > > 274, in print_collection > > > > > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > line > > > > 171, in process > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > line > > > > 234, in print_object > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > line > > > > 186, in process > > > > > File "build\bdist.win32\egg\suds\__init__.py", > line 129, > > > > in tostr > > > > > ValueError: tzinfo.utcoffset() returned 1440; must be in -1439 .. > 1439 > > > > > > > > > > > > > > name="FindCalendarValuesByNameResponse"> > > > > > > > > > > > > > > > > > > > > name="FindCalendarValuesByNameResult" > > > > > type="tns:ArrayOfCalendarValueData" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="CalendarValueData" nillable="true" > type="tns:CalendarValueData" > > > > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="xsd:int" /> > > > > > > > > > type="xsd:dateTime" /> > > > > > > > > > name="CalendarValueDescription" nillable="true" > > > > type="xsd:string" /> > > > > > > > > > nillable="true" type="xsd:dateTime" /> > > > > > > > > > nillable="true" type="xsd:dateTime" /> > > > > > > > > > type="xsd:int" /> > > > > > > > > > name="CalendarValueTypeName" nillable="true" type="xsd:string" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="tns:DataState" /> > > > > > > > > > type="xsd:dateTime" /> > > > > > > > > > nillable="true" type="xsd:string" /> > > > > > type="xsd:boolean" > > > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I tested with a simple Complex type below for which it worked. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="tns:ArrayOfEmployee" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > nillable="true" type="tns:Employee" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="xsd:string" /> > > > > > > > > type="xsd:string" /> > > > > > > > > > > > > > > > > > > > > I would appreciate any pointers into that > > > > > > > > > > _______________________________________________ > > > > > fedora-suds-list mailing list > > > > > fedora-suds-list at redhat.com > > > > > > > > > > https://www.redhat.com/mailman/listinfo/fedora-suds-list > > > > > > > > > > > > > > > > > > > > > > From rizwan.raza at gmail.com Tue Jul 29 19:19:26 2008 From: rizwan.raza at gmail.com (Rizwan Raza) Date: Tue, 29 Jul 2008 14:19:26 -0500 Subject: [Fedora-suds-list] suds and complex type In-Reply-To: <65e8f6b40807291216m3f3b1a4mbe7b27e3dfc77144@mail.gmail.com> References: <65e8f6b40807291156k17585470s2bf5fe05334ce89@mail.gmail.com> <4308f0ba0807291203l78269069mc98c62e7ff119726@mail.gmail.com> <65e8f6b40807291208t6e2bd01cif692746ab9f20774@mail.gmail.com> <4308f0ba0807291209y3f91068dl3886a5e4b3d22d5f@mail.gmail.com> <4308f0ba0807291211r4424cad9w84a310cc2b79f932@mail.gmail.com> <65e8f6b40807291216m3f3b1a4mbe7b27e3dfc77144@mail.gmail.com> Message-ID: <65e8f6b40807291219h7b4b1ce6t2a24cbb63c95c868@mail.gmail.com> I forgot to mention that I am using PYTHON 2.4 On 7/29/08, Rizwan Raza wrote: > Unfortunately you can't hit the WSDL. I do not think datetime is an > issue here. How about elements in the complex type. Do > you think that could be causing it. > > Is there any other information that I can send, some sort of tracing > info that would help in detecting the cause of it? > > On 7/29/08, Nathan Van Gheem wrote: > > Otherwise, from the initial look of it, you might need to send it a python > > dateTime object instead of giving it a date string. dateTime types are > > handled with real python objects.... > > > > > > On Tue, Jul 29, 2008 at 2:09 PM, Nathan Van Gheem > > wrote: > > > > > > Can you give a url that we can test? > > > > > > > > > > > > > > > > > > On Tue, Jul 29, 2008 at 2:08 PM, Rizwan Raza > > wrote: > > > > > > > That is an internal url. > > > > > > > > B/W I tried SOAPpy and it is able to get that complex type the only > > > > thing is that SOAPpy does not support Document/Literal whereas SUDS > > > > does. > > > > > > > > > > > > > > > > > > > > On 7/29/08, Nathan Van Gheem wrote: > > > > > The url you have given doesn't seem to work. Is it not accessible > > from > > > > > anywhere? > > > > > > > > > > > > > > > On Tue, Jul 29, 2008 at 1:56 PM, Rizwan Raza > > wrote: > > > > > > > > > > > > I have the following as a response from one of the web service > > method. > > > > > > It is an ArrayOfComplexType with an xsd:extension > > > > > > > > > > > > Executing the code below > > > > > > > > > > > > from suds.serviceproxy import ServiceProxy > > > > > > url = > > > > > > > 'http://chouwmlci0849.amrs.win.ml.com/Cds/Calendar/CalendarService.svc?wsdl' > > > > > > myservice=ServiceProxy(url) > > > > > > print > > > > > > > myservice.FindCalendarValuesByName('','','','','','') > > > > > > > > > > > > is giving me the following error > > > > > > > > > > > > Traceback (most recent call last): > > > > > > File > > "C:\MerrillLynch\projects\PYTHON\WSTest01.py", line > > > > > 20, in ? > > > > > > print > > > > > > > myservice.FindCalendarValuesByName('LCCME_OPTIONS','2008-01-01','2008- > > > > > > 06-30','','','') > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > > line > > > > > 119, in __str__ > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > > line > > > > > 122, in __unicode__ > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > > line > > > > > 161, in tostr > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > > line > > > > > 171, in process > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > > line > > > > > 234, in print_object > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > > line > > > > > 183, in process > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > > line > > > > > 274, in print_collection > > > > > > > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > > line > > > > > 171, in process > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > > line > > > > > 234, in print_object > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > > line > > > > > 186, in process > > > > > > File "build\bdist.win32\egg\suds\__init__.py", > > line 129, > > > > > in tostr > > > > > > ValueError: tzinfo.utcoffset() returned 1440; must be in -1439 .. > > 1439 > > > > > > > > > > > > > > > > > > name="FindCalendarValuesByNameResponse"> > > > > > > > > > > > > > > > > > > > > > > > > > name="FindCalendarValuesByNameResult" > > > > > > type="tns:ArrayOfCalendarValueData" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="CalendarValueData" nillable="true" > > type="tns:CalendarValueData" > > > > > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="xsd:int" /> > > > > > > > > > > > type="xsd:dateTime" /> > > > > > > > > > > > name="CalendarValueDescription" nillable="true" > > > > > type="xsd:string" /> > > > > > > > > > > > nillable="true" type="xsd:dateTime" /> > > > > > > > > > > > nillable="true" type="xsd:dateTime" /> > > > > > > > > > > > type="xsd:int" /> > > > > > > > > > > > name="CalendarValueTypeName" nillable="true" type="xsd:string" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="tns:DataState" /> > > > > > > > > > > > type="xsd:dateTime" /> > > > > > > > > > > > nillable="true" type="xsd:string" /> > > > > > > > type="xsd:boolean" > > > > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I tested with a simple Complex type below for which it worked. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="tns:ArrayOfEmployee" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > nillable="true" type="tns:Employee" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="xsd:string" /> > > > > > > > > > > type="xsd:string" /> > > > > > > > > > > > > > > > > > > > > > > > > I would appreciate any pointers into that > > > > > > > > > > > > _______________________________________________ > > > > > > fedora-suds-list mailing list > > > > > > fedora-suds-list at redhat.com > > > > > > > > > > > > > https://www.redhat.com/mailman/listinfo/fedora-suds-list > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From vangheem at gmail.com Tue Jul 29 19:31:06 2008 From: vangheem at gmail.com (Nathan Van Gheem) Date: Tue, 29 Jul 2008 14:31:06 -0500 Subject: [Fedora-suds-list] suds and complex type In-Reply-To: <65e8f6b40807291219h7b4b1ce6t2a24cbb63c95c868@mail.gmail.com> References: <65e8f6b40807291156k17585470s2bf5fe05334ce89@mail.gmail.com> <4308f0ba0807291203l78269069mc98c62e7ff119726@mail.gmail.com> <65e8f6b40807291208t6e2bd01cif692746ab9f20774@mail.gmail.com> <4308f0ba0807291209y3f91068dl3886a5e4b3d22d5f@mail.gmail.com> <4308f0ba0807291211r4424cad9w84a310cc2b79f932@mail.gmail.com> <65e8f6b40807291216m3f3b1a4mbe7b27e3dfc77144@mail.gmail.com> <65e8f6b40807291219h7b4b1ce6t2a24cbb63c95c868@mail.gmail.com> Message-ID: <4308f0ba0807291231x7f8f2d64x1dfdbf932cca6695@mail.gmail.com> Can you please try using a python dateTime object instead? ValueError: tzinfo.utcoffset() returned 1440; must be in -1439 .. 1439 from this, it makes me think it is a date object problem. On Tue, Jul 29, 2008 at 2:19 PM, Rizwan Raza wrote: > I forgot to mention that I am using PYTHON 2.4 > > On 7/29/08, Rizwan Raza wrote: > > Unfortunately you can't hit the WSDL. I do not think datetime is an > > issue here. How about elements in the complex type. Do > > you think that could be causing it. > > > > Is there any other information that I can send, some sort of tracing > > info that would help in detecting the cause of it? > > > > On 7/29/08, Nathan Van Gheem wrote: > > > Otherwise, from the initial look of it, you might need to send it a > python > > > dateTime object instead of giving it a date string. dateTime types are > > > handled with real python objects.... > > > > > > > > > On Tue, Jul 29, 2008 at 2:09 PM, Nathan Van Gheem > > > wrote: > > > > > > > > Can you give a url that we can test? > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Jul 29, 2008 at 2:08 PM, Rizwan Raza > > > wrote: > > > > > > > > > That is an internal url. > > > > > > > > > > B/W I tried SOAPpy and it is able to get that complex type the only > > > > > thing is that SOAPpy does not support Document/Literal whereas SUDS > > > > > does. > > > > > > > > > > > > > > > > > > > > > > > > > On 7/29/08, Nathan Van Gheem wrote: > > > > > > The url you have given doesn't seem to work. Is it not > accessible > > > from > > > > > > anywhere? > > > > > > > > > > > > > > > > > > On Tue, Jul 29, 2008 at 1:56 PM, Rizwan Raza < > rizwan.raza at gmail.com> > > > wrote: > > > > > > > > > > > > > > I have the following as a response from one of the web service > > > method. > > > > > > > It is an ArrayOfComplexType with an xsd:extension > > > > > > > > > > > > > > Executing the code below > > > > > > > > > > > > > > from suds.serviceproxy import ServiceProxy > > > > > > > url = > > > > > > > > > ' > http://chouwmlci0849.amrs.win.ml.com/Cds/Calendar/CalendarService.svc?wsdl > ' > > > > > > > myservice=ServiceProxy(url) > > > > > > > print > > > > > > > > > myservice.FindCalendarValuesByName('','','','','','') > > > > > > > > > > > > > > is giving me the following error > > > > > > > > > > > > > > Traceback (most recent call last): > > > > > > > File > > > "C:\MerrillLynch\projects\PYTHON\WSTest01.py", line > > > > > > 20, in ? > > > > > > > print > > > > > > > > > myservice.FindCalendarValuesByName('LCCME_OPTIONS','2008-01-01','2008- > > > > > > > 06-30','','','') > > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > > > line > > > > > > 119, in __str__ > > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > > > line > > > > > > 122, in __unicode__ > > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > > > line > > > > > > 161, in tostr > > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > > > line > > > > > > 171, in process > > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > > > line > > > > > > 234, in print_object > > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > > > line > > > > > > 183, in process > > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > > > line > > > > > > 274, in print_collection > > > > > > > > > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > > > line > > > > > > 171, in process > > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > > > line > > > > > > 234, in print_object > > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", > > > line > > > > > > 186, in process > > > > > > > File "build\bdist.win32\egg\suds\__init__.py", > > > line 129, > > > > > > in tostr > > > > > > > ValueError: tzinfo.utcoffset() returned 1440; must be in -1439 > .. > > > 1439 > > > > > > > > > > > > > > > > > > > > > > name="FindCalendarValuesByNameResponse"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="FindCalendarValuesByNameResult" > > > > > > > type="tns:ArrayOfCalendarValueData" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="CalendarValueData" nillable="true" > > > type="tns:CalendarValueData" > > > > > > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="CalendarValueID" > > > > > > > type="xsd:int" /> > > > > > > > > > > > > > type="xsd:dateTime" /> > > > > > > > > > > > > > name="CalendarValueDescription" nillable="true" > > > > > > type="xsd:string" /> > > > > > > > name="CalendarLocalValue" > > > > > > > nillable="true" type="xsd:dateTime" /> > > > > > > > > > > > > > nillable="true" type="xsd:dateTime" /> > > > > > > > name="CalendarValueTypeID" > > > > > > > type="xsd:int" /> > > > > > > > > > > > > > name="CalendarValueTypeName" nillable="true" type="xsd:string" > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="tns:DataState" /> > > > > > > > > > > > > > type="xsd:dateTime" /> > > > > > > > > > > > > > nillable="true" type="xsd:string" /> > > > > > > > > > type="xsd:boolean" > > > > > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I tested with a simple Complex type below for which it worked. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="tns:ArrayOfEmployee" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="Employee" > > > > > > > nillable="true" type="tns:Employee" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="xsd:string" /> > > > > > > > > > > > > type="xsd:string" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > I would appreciate any pointers into that > > > > > > > > > > > > > > _______________________________________________ > > > > > > > fedora-suds-list mailing list > > > > > > > fedora-suds-list at redhat.com > > > > > > > > > > > > > > > > https://www.redhat.com/mailman/listinfo/fedora-suds-list > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vangheem at gmail.com Tue Jul 29 20:01:04 2008 From: vangheem at gmail.com (Nathan Van Gheem) Date: Tue, 29 Jul 2008 15:01:04 -0500 Subject: [Fedora-suds-list] suds and complex type In-Reply-To: <4308f0ba0807291231x7f8f2d64x1dfdbf932cca6695@mail.gmail.com> References: <65e8f6b40807291156k17585470s2bf5fe05334ce89@mail.gmail.com> <4308f0ba0807291203l78269069mc98c62e7ff119726@mail.gmail.com> <65e8f6b40807291208t6e2bd01cif692746ab9f20774@mail.gmail.com> <4308f0ba0807291209y3f91068dl3886a5e4b3d22d5f@mail.gmail.com> <4308f0ba0807291211r4424cad9w84a310cc2b79f932@mail.gmail.com> <65e8f6b40807291216m3f3b1a4mbe7b27e3dfc77144@mail.gmail.com> <65e8f6b40807291219h7b4b1ce6t2a24cbb63c95c868@mail.gmail.com> <4308f0ba0807291231x7f8f2d64x1dfdbf932cca6695@mail.gmail.com> Message-ID: <4308f0ba0807291301l20e0e2p4089c05f42643090@mail.gmail.com> You can also try turning loggin on. It is described how to use in the README file. Any reason you're not using > > from client import Client > > > > myurl = 'http://localhost:7080/webservices/WebServiceTestBean?wsdl' > > > > client = Client(url) > method to use the ws? On Tue, Jul 29, 2008 at 2:31 PM, Nathan Van Gheem wrote: > Can you please try using a python dateTime object instead? > > ValueError: tzinfo.utcoffset() returned 1440; must be in -1439 .. 1439 > > from this, it makes me think it is a date object problem. > > On Tue, Jul 29, 2008 at 2:19 PM, Rizwan Raza wrote: > >> I forgot to mention that I am using PYTHON 2.4 >> >> On 7/29/08, Rizwan Raza wrote: >> > Unfortunately you can't hit the WSDL. I do not think datetime is an >> > issue here. How about elements in the complex type. Do >> > you think that could be causing it. >> > >> > Is there any other information that I can send, some sort of tracing >> > info that would help in detecting the cause of it? >> > >> > On 7/29/08, Nathan Van Gheem wrote: >> > > Otherwise, from the initial look of it, you might need to send it a >> python >> > > dateTime object instead of giving it a date string. dateTime types >> are >> > > handled with real python objects.... >> > > >> > > >> > > On Tue, Jul 29, 2008 at 2:09 PM, Nathan Van Gheem > > >> > > wrote: >> > > > >> > > > Can you give a url that we can test? >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > On Tue, Jul 29, 2008 at 2:08 PM, Rizwan Raza > > >> > > wrote: >> > > > >> > > > > That is an internal url. >> > > > > >> > > > > B/W I tried SOAPpy and it is able to get that complex type the >> only >> > > > > thing is that SOAPpy does not support Document/Literal whereas >> SUDS >> > > > > does. >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > On 7/29/08, Nathan Van Gheem wrote: >> > > > > > The url you have given doesn't seem to work. Is it not >> accessible >> > > from >> > > > > > anywhere? >> > > > > > >> > > > > > >> > > > > > On Tue, Jul 29, 2008 at 1:56 PM, Rizwan Raza < >> rizwan.raza at gmail.com> >> > > wrote: >> > > > > > > >> > > > > > > I have the following as a response from one of the web service >> > > method. >> > > > > > > It is an ArrayOfComplexType with an xsd:extension >> > > > > > > >> > > > > > > Executing the code below >> > > > > > > >> > > > > > > from suds.serviceproxy import ServiceProxy >> > > > > > > url = >> > > > > > >> > > ' >> http://chouwmlci0849.amrs.win.ml.com/Cds/Calendar/CalendarService.svc?wsdl >> ' >> > > > > > > myservice=ServiceProxy(url) >> > > > > > > print >> > > > > > >> > > myservice.FindCalendarValuesByName('','','','','','') >> > > > > > > >> > > > > > > is giving me the following error >> > > > > > > >> > > > > > > Traceback (most recent call last): >> > > > > > > File >> > > "C:\MerrillLynch\projects\PYTHON\WSTest01.py", line >> > > > > > 20, in ? >> > > > > > > print >> > > > > > >> > > myservice.FindCalendarValuesByName('LCCME_OPTIONS','2008-01-01','2008- >> > > > > > > 06-30','','','') >> > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", >> > > line >> > > > > > 119, in __str__ >> > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", >> > > line >> > > > > > 122, in __unicode__ >> > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", >> > > line >> > > > > > 161, in tostr >> > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", >> > > line >> > > > > > 171, in process >> > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", >> > > line >> > > > > > 234, in print_object >> > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", >> > > line >> > > > > > 183, in process >> > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", >> > > line >> > > > > > 274, in print_collection >> > > > > > > >> > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", >> > > line >> > > > > > 171, in process >> > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", >> > > line >> > > > > > 234, in print_object >> > > > > > > File "build\bdist.win32\egg\suds\sudsobject.py", >> > > line >> > > > > > 186, in process >> > > > > > > File "build\bdist.win32\egg\suds\__init__.py", >> > > line 129, >> > > > > > in tostr >> > > > > > > ValueError: tzinfo.utcoffset() returned 1440; must be in -1439 >> .. >> > > 1439 >> > > > > > > >> > > > > > > > > > > > > >> > > name="FindCalendarValuesByNameResponse"> >> > > > > > > >> > > > > > > >> > > > > > > > > > > > > > >> > > name="FindCalendarValuesByNameResult" >> > > > > > > type="tns:ArrayOfCalendarValueData" /> >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > > > > > > > > name="CalendarValueData" nillable="true" >> > > type="tns:CalendarValueData" >> > > > > > > /> >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > > name="CalendarValueID" >> > > > > > > type="xsd:int" /> >> > > > > > > > > > > > > > type="xsd:dateTime" /> >> > > > > > > > > > > > > > name="CalendarValueDescription" nillable="true" >> > > > > > type="xsd:string" /> >> > > > > > > > name="CalendarLocalValue" >> > > > > > > nillable="true" type="xsd:dateTime" /> >> > > > > > > > > > > > > > nillable="true" type="xsd:dateTime" /> >> > > > > > > > name="CalendarValueTypeID" >> > > > > > > type="xsd:int" /> >> > > > > > > > > > > > > > name="CalendarValueTypeName" nillable="true" type="xsd:string" >> /> >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > > > > > > > > type="tns:DataState" /> >> > > > > > > > > > > > > > type="xsd:dateTime" /> >> > > > > > > > > > > > > > nillable="true" type="xsd:string" /> >> > > > > > > > > > type="xsd:boolean" >> > > > > > /> >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > I tested with a simple Complex type below for which it worked. >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > > > > > > > > type="tns:ArrayOfEmployee" /> >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > > name="Employee" >> > > > > > > nillable="true" type="tns:Employee" /> >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > > > > > > > > type="xsd:string" /> >> > > > > > > > > > > > > type="xsd:string" /> >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > I would appreciate any pointers into that >> > > > > > > >> > > > > > > _______________________________________________ >> > > > > > > fedora-suds-list mailing list >> > > > > > > fedora-suds-list at redhat.com >> > > > > > > >> > > > > > >> > > https://www.redhat.com/mailman/listinfo/fedora-suds-list >> > > > > > > >> > > > > > >> > > > > > >> > > > > >> > > > >> > > > >> > > >> > > >> > >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vangheem at gmail.com Tue Jul 29 21:47:38 2008 From: vangheem at gmail.com (Nathan Van Gheem) Date: Tue, 29 Jul 2008 16:47:38 -0500 Subject: [Fedora-suds-list] suds and complex type In-Reply-To: <65e8f6b40807291442g6e2cd76fyd7db55d5296fd652@mail.gmail.com> References: <65e8f6b40807291156k17585470s2bf5fe05334ce89@mail.gmail.com> <4308f0ba0807291203l78269069mc98c62e7ff119726@mail.gmail.com> <65e8f6b40807291208t6e2bd01cif692746ab9f20774@mail.gmail.com> <4308f0ba0807291209y3f91068dl3886a5e4b3d22d5f@mail.gmail.com> <4308f0ba0807291211r4424cad9w84a310cc2b79f932@mail.gmail.com> <65e8f6b40807291216m3f3b1a4mbe7b27e3dfc77144@mail.gmail.com> <65e8f6b40807291219h7b4b1ce6t2a24cbb63c95c868@mail.gmail.com> <488F7D28.9080104@redhat.com> <65e8f6b40807291434m30f5ced0q6e1d7c4ba15b8303@mail.gmail.com> <65e8f6b40807291442g6e2cd76fyd7db55d5296fd652@mail.gmail.com> Message-ID: <4308f0ba0807291447u7c3214fay4e078fb41a272214@mail.gmail.com> Yes, that was new in the 0.2.4 version of suds. Suds ships with some built in types to help ease its use. In fact, I was the one who contributed the patch to add the functionality. Now how the result set is > collected by SUDS, does it create some kind of object and deserializes > the result into it? > Suds creates a python dateTime object for it Anyways, you made me think that it might be a good idea to allow users to enter regular date strings also. Jeff, Is this something I should add? -Nathan On Tue, Jul 29, 2008 at 4:42 PM, Rizwan Raza wrote: > Nathan: > > You were damn right about the datetime. I removed the datetime > attributes from the wsdl and now it works. Now how the result set is > collected by SUDS, does it create some kind of object and deserializes > the result into it? > > On 7/29/08, Rizwan Raza wrote: > > Attached here is the WSDL. Please discard the wsdl once you are done. > > Looks like there might be some problem with elements > > > > Thanks > > > > - rizwan > > > > On 7/29/08, Jeff Ortel wrote: > > > Rizwan, > > > > > > Can you attach a copy of the WSDL so I can look at it? > > > > > > Thanks, > > > > > > Jeff > > > > > > > > > Rizwan Raza wrote: > > > > I forgot to mention that I am using PYTHON 2.4 > > > > > > > > On 7/29/08, Rizwan Raza wrote: > > > > > > > > > Unfortunately you can't hit the WSDL. I do not think datetime is an > > > > > issue here. How about elements in the complex type. > Do > > > > > you think that could be causing it. > > > > > > > > > > Is there any other information that I can send, some sort of > tracing > > > > > info that would help in detecting the cause of it? > > > > > > > > > > On 7/29/08, Nathan Van Gheem wrote: > > > > > > > > > > > Otherwise, from the initial look of it, you might need to send it > a > > > python > > > > > > dateTime object instead of giving it a date string. dateTime > types > > > are > > > > > > handled with real python objects.... > > > > > > > > > > > > > > > > > > On Tue, Jul 29, 2008 at 2:09 PM, Nathan Van Gheem < > vangheem at gmail.com> > > > > > > wrote: > > > > > > > > > > > > > Can you give a url that we can test? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Jul 29, 2008 at 2:08 PM, Rizwan Raza < > rizwan.raza at gmail.com> > > > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > That is an internal url. > > > > > > > > > > > > > > > > B/W I tried SOAPpy and it is able to get that complex type > the > > > only > > > > > > > > thing is that SOAPpy does not support Document/Literal > whereas > > > SUDS > > > > > > > > does. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 7/29/08, Nathan Van Gheem wrote: > > > > > > > > > > > > > > > > > The url you have given doesn't seem to work. Is it not > > > accessible > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > from > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > anywhere? > > > > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Jul 29, 2008 at 1:56 PM, Rizwan Raza > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I have the following as a response from one of the web > service > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > method. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > It is an ArrayOfComplexType with an xsd:extension > > > > > > > > > > > > > > > > > > > > Executing the code below > > > > > > > > > > > > > > > > > > > > from suds.serviceproxy import ServiceProxy > > > > > > > > > > url = > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ' > http://chouwmlci0849.amrs.win.ml.com/Cds/Calendar/CalendarService.svc?wsdl > ' > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > myservice=ServiceProxy(url) > > > > > > > > > > print > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > myservice.FindCalendarValuesByName('','','','','','') > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > is giving me the following error > > > > > > > > > > > > > > > > > > > > Traceback (most recent call last): > > > > > > > > > > File > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > "C:\MerrillLynch\projects\PYTHON\WSTest01.py", line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 20, in ? > > > > > > > > > > > > > > > > > > > print > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > myservice.FindCalendarValuesByName('LCCME_OPTIONS','2008-01-01','2008- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 06-30','','','') > > > > > > > > > > File > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 119, in __str__ > > > > > > > > > > > > > > > > > > > File > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 122, in __unicode__ > > > > > > > > > > > > > > > > > > > File > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 161, in tostr > > > > > > > > > > > > > > > > > > > File > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 171, in process > > > > > > > > > > > > > > > > > > > File > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 234, in print_object > > > > > > > > > > > > > > > > > > > File > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 183, in process > > > > > > > > > > > > > > > > > > > File > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 274, in print_collection > > > > > > > > > > > > > > > > > > > File > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 171, in process > > > > > > > > > > > > > > > > > > > File > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 234, in print_object > > > > > > > > > > > > > > > > > > > File > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 186, in process > > > > > > > > > > > > > > > > > > > File > > > "build\bdist.win32\egg\suds\__init__.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line 129, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > in tostr > > > > > > > > > > > > > > > > > > > ValueError: tzinfo.utcoffset() returned 1440; must be in > -1439 > > > .. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 1439 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="FindCalendarValuesByNameResponse"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="FindCalendarValuesByNameResult" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="tns:ArrayOfCalendarValueData" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="ArrayOfCalendarValueData"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="CalendarValueData" nillable="true" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="tns:CalendarValueData" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="CalendarValueID" > > > > > > > > > > type="xsd:int" /> > > > > > > > > > > name="CalendarValue" > > > > > > > > > > type="xsd:dateTime" /> > > > > > > > > > > > > > > > > > > > name="CalendarValueDescription" > > > nillable="true" > > > > > > > > > > > > > > > > > > > type="xsd:string" /> > > > > > > > > > > > > > > > > > > > > > name="CalendarLocalValue" > > > > > > > > > > nillable="true" type="xsd:dateTime" /> > > > > > > > > > > name="ContractDate" > > > > > > > > > > nillable="true" type="xsd:dateTime" /> > > > > > > > > > > > > name="CalendarValueTypeID" > > > > > > > > > > type="xsd:int" /> > > > > > > > > > > > > > > > > > > > name="CalendarValueTypeName" nillable="true" > type="xsd:string" > > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="tns:DataState" /> > > > > > > > > > > name="UpdatedOn" > > > > > > > > > > type="xsd:dateTime" /> > > > > > > > > > > name="UpdatedBy" > > > > > > > > > > nillable="true" type="xsd:string" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="xsd:boolean" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I tested with a simple Complex type below for which it > worked. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="TestDocResult" > > > > > > > > > > type="tns:ArrayOfEmployee" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="Employee" > > > > > > > > > > nillable="true" type="tns:Employee" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="FirstName" > > > > > > > > > > type="xsd:string" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="xsd:string" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I would appreciate any pointers into that > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > fedora-suds-list mailing list > > > > > > > > > > fedora-suds-list at redhat.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > https://www.redhat.com/mailman/listinfo/fedora-suds-list > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > fedora-suds-list mailing list > > > > fedora-suds-list at redhat.com > > > > > > > https://www.redhat.com/mailman/listinfo/fedora-suds-list > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rizwan.raza at gmail.com Tue Jul 29 21:51:30 2008 From: rizwan.raza at gmail.com (Rizwan Raza) Date: Tue, 29 Jul 2008 16:51:30 -0500 Subject: [Fedora-suds-list] suds and complex type In-Reply-To: <4308f0ba0807291447u7c3214fay4e078fb41a272214@mail.gmail.com> References: <65e8f6b40807291156k17585470s2bf5fe05334ce89@mail.gmail.com> <65e8f6b40807291208t6e2bd01cif692746ab9f20774@mail.gmail.com> <4308f0ba0807291209y3f91068dl3886a5e4b3d22d5f@mail.gmail.com> <4308f0ba0807291211r4424cad9w84a310cc2b79f932@mail.gmail.com> <65e8f6b40807291216m3f3b1a4mbe7b27e3dfc77144@mail.gmail.com> <65e8f6b40807291219h7b4b1ce6t2a24cbb63c95c868@mail.gmail.com> <488F7D28.9080104@redhat.com> <65e8f6b40807291434m30f5ced0q6e1d7c4ba15b8303@mail.gmail.com> <65e8f6b40807291442g6e2cd76fyd7db55d5296fd652@mail.gmail.com> <4308f0ba0807291447u7c3214fay4e078fb41a272214@mail.gmail.com> Message-ID: <65e8f6b40807291451t62f4fbbey6744b75dffb0d14a@mail.gmail.com> Yes. As a matter of fact the wireformat is XML which is nothing but string. Here is the possible set of datetime values that the result set contains 2008-02-04 15:05:00.000 2008-04-07 14:05:00.000 2008-06-09 14:05:00.000 2008-07-16 00:11:21.417 2008-07-16 00:14:13.363 2008-07-16 00:17:03.557 On 7/29/08, Nathan Van Gheem wrote: > Yes, that was new in the 0.2.4 version of suds. Suds ships with some built > in types to help ease its use. In fact, I was the one who contributed the > patch to add the functionality. > > > Now how the result set is > > collected by SUDS, does it create some kind of object and deserializes > > the result into it? > > > Suds creates a python dateTime object for it > > Anyways, you made me think that it might be a good idea to allow users to > enter regular date strings also. > > Jeff, > Is this something I should add? > > > -Nathan > > > On Tue, Jul 29, 2008 at 4:42 PM, Rizwan Raza wrote: > > Nathan: > > > > You were damn right about the datetime. I removed the datetime > > attributes from the wsdl and now it works. Now how the result set is > > collected by SUDS, does it create some kind of object and deserializes > > the result into it? > > > > > > > > > > On 7/29/08, Rizwan Raza wrote: > > > Attached here is the WSDL. Please discard the wsdl once you are done. > > > Looks like there might be some problem with elements > > > > > > Thanks > > > > > > - rizwan > > > > > > On 7/29/08, Jeff Ortel wrote: > > > > Rizwan, > > > > > > > > Can you attach a copy of the WSDL so I can look at it? > > > > > > > > Thanks, > > > > > > > > Jeff > > > > > > > > > > > > Rizwan Raza wrote: > > > > > I forgot to mention that I am using PYTHON 2.4 > > > > > > > > > > On 7/29/08, Rizwan Raza wrote: > > > > > > > > > > > Unfortunately you can't hit the WSDL. I do not think datetime is > an > > > > > > issue here. How about elements in the complex > type. Do > > > > > > you think that could be causing it. > > > > > > > > > > > > Is there any other information that I can send, some sort of > tracing > > > > > > info that would help in detecting the cause of it? > > > > > > > > > > > > On 7/29/08, Nathan Van Gheem wrote: > > > > > > > > > > > > > Otherwise, from the initial look of it, you might need to send > it a > > > > python > > > > > > > dateTime object instead of giving it a date string. dateTime > types > > > > are > > > > > > > handled with real python objects.... > > > > > > > > > > > > > > > > > > > > > On Tue, Jul 29, 2008 at 2:09 PM, Nathan Van Gheem > > > > > > > > wrote: > > > > > > > > > > > > > > > Can you give a url that we can test? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Jul 29, 2008 at 2:08 PM, Rizwan Raza > > > > > > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > That is an internal url. > > > > > > > > > > > > > > > > > > B/W I tried SOAPpy and it is able to get that complex type > the > > > > only > > > > > > > > > thing is that SOAPpy does not support Document/Literal > whereas > > > > SUDS > > > > > > > > > does. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 7/29/08, Nathan Van Gheem wrote: > > > > > > > > > > > > > > > > > > > The url you have given doesn't seem to work. Is it not > > > > accessible > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > from > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > anywhere? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Jul 29, 2008 at 1:56 PM, Rizwan Raza > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I have the following as a response from one of the web > service > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > method. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > It is an ArrayOfComplexType with an xsd:extension > > > > > > > > > > > > > > > > > > > > > > Executing the code below > > > > > > > > > > > > > > > > > > > > > > from suds.serviceproxy import ServiceProxy > > > > > > > > > > > url = > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 'http://chouwmlci0849.amrs.win.ml.com/Cds/Calendar/CalendarService.svc?wsdl' > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > myservice=ServiceProxy(url) > > > > > > > > > > > print > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > myservice.FindCalendarValuesByName('','','','','','') > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > is giving me the following error > > > > > > > > > > > > > > > > > > > > > > Traceback (most recent call last): > > > > > > > > > > > File > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > "C:\MerrillLynch\projects\PYTHON\WSTest01.py", > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 20, in ? > > > > > > > > > > > > > > > > > > > > > print > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > myservice.FindCalendarValuesByName('LCCME_OPTIONS','2008-01-01','2008- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 06-30','','','') > > > > > > > > > > > File > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 119, in __str__ > > > > > > > > > > > > > > > > > > > > > File > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 122, in __unicode__ > > > > > > > > > > > > > > > > > > > > > File > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 161, in tostr > > > > > > > > > > > > > > > > > > > > > File > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 171, in process > > > > > > > > > > > > > > > > > > > > > File > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 234, in print_object > > > > > > > > > > > > > > > > > > > > > File > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 183, in process > > > > > > > > > > > > > > > > > > > > > File > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 274, in print_collection > > > > > > > > > > > > > > > > > > > > > File > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 171, in process > > > > > > > > > > > > > > > > > > > > > File > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 234, in print_object > > > > > > > > > > > > > > > > > > > > > File > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 186, in process > > > > > > > > > > > > > > > > > > > > > File > > > > "build\bdist.win32\egg\suds\__init__.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line 129, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > in tostr > > > > > > > > > > > > > > > > > > > > > ValueError: tzinfo.utcoffset() returned 1440; must be in > -1439 > > > > .. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 1439 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="FindCalendarValuesByNameResponse"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="FindCalendarValuesByNameResult" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="tns:ArrayOfCalendarValueData" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="ArrayOfCalendarValueData"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="CalendarValueData" nillable="true" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="tns:CalendarValueData" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="CalendarValueID" > > > > > > > > > > > type="xsd:int" /> > > > > > > > > > > > name="CalendarValue" > > > > > > > > > > > type="xsd:dateTime" /> > > > > > > > > > > > > > > > > > > > > > name="CalendarValueDescription" > > > > nillable="true" > > > > > > > > > > > > > > > > > > > > > type="xsd:string" /> > > > > > > > > > > > > > > > > > > > > > > > > name="CalendarLocalValue" > > > > > > > > > > > nillable="true" type="xsd:dateTime" /> > > > > > > > > > > > name="ContractDate" > > > > > > > > > > > nillable="true" type="xsd:dateTime" /> > > > > > > > > > > > > > > name="CalendarValueTypeID" > > > > > > > > > > > type="xsd:int" /> > > > > > > > > > > > > > > > > > > > > > name="CalendarValueTypeName" nillable="true" > type="xsd:string" > > > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="tns:DataState" /> > > > > > > > > > > > name="UpdatedOn" > > > > > > > > > > > type="xsd:dateTime" /> > > > > > > > > > > > name="UpdatedBy" > > > > > > > > > > > nillable="true" type="xsd:string" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="xsd:boolean" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I tested with a simple Complex type below for which it > worked. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="TestDocResult" > > > > > > > > > > > type="tns:ArrayOfEmployee" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="Employee" > > > > > > > > > > > nillable="true" type="tns:Employee" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="FirstName" > > > > > > > > > > > type="xsd:string" /> > > > > > > > > > > > name="LastName" > > > > > > > > > > > > > > > > > > > > > type="xsd:string" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I would appreciate any pointers into that > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > > fedora-suds-list mailing list > > > > > > > > > > > fedora-suds-list at redhat.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > https://www.redhat.com/mailman/listinfo/fedora-suds-list > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > fedora-suds-list mailing list > > > > > fedora-suds-list at redhat.com > > > > > > > > > > https://www.redhat.com/mailman/listinfo/fedora-suds-list > > > > > > > > > > > > > > > > > > > From vangheem at gmail.com Tue Jul 29 21:55:15 2008 From: vangheem at gmail.com (Nathan Van Gheem) Date: Tue, 29 Jul 2008 16:55:15 -0500 Subject: [Fedora-suds-list] suds and complex type In-Reply-To: <65e8f6b40807291451t62f4fbbey6744b75dffb0d14a@mail.gmail.com> References: <65e8f6b40807291156k17585470s2bf5fe05334ce89@mail.gmail.com> <4308f0ba0807291209y3f91068dl3886a5e4b3d22d5f@mail.gmail.com> <4308f0ba0807291211r4424cad9w84a310cc2b79f932@mail.gmail.com> <65e8f6b40807291216m3f3b1a4mbe7b27e3dfc77144@mail.gmail.com> <65e8f6b40807291219h7b4b1ce6t2a24cbb63c95c868@mail.gmail.com> <488F7D28.9080104@redhat.com> <65e8f6b40807291434m30f5ced0q6e1d7c4ba15b8303@mail.gmail.com> <65e8f6b40807291442g6e2cd76fyd7db55d5296fd652@mail.gmail.com> <4308f0ba0807291447u7c3214fay4e078fb41a272214@mail.gmail.com> <65e8f6b40807291451t62f4fbbey6744b75dffb0d14a@mail.gmail.com> Message-ID: <4308f0ba0807291455s5d088828re68d93e592453e3a@mail.gmail.com> If you look here http://www.w3schools.com/Schema/schema_dtypes_date.asp the dateTime objects need to be in this format, 2002-05-30T09:30:10.5 Your server must not be returning correctly formatted date results. On Tue, Jul 29, 2008 at 4:51 PM, Rizwan Raza wrote: > Yes. As a matter of fact the wireformat is XML which is nothing but > string. Here is the possible set of datetime values that the result > set contains > > 2008-02-04 15:05:00.000 > 2008-04-07 14:05:00.000 > 2008-06-09 14:05:00.000 > > 2008-07-16 00:11:21.417 > 2008-07-16 00:14:13.363 > 2008-07-16 00:17:03.557 > > On 7/29/08, Nathan Van Gheem wrote: > > Yes, that was new in the 0.2.4 version of suds. Suds ships with some > built > > in types to help ease its use. In fact, I was the one who contributed > the > > patch to add the functionality. > > > > > Now how the result set is > > > collected by SUDS, does it create some kind of object and deserializes > > > the result into it? > > > > > Suds creates a python dateTime object for it > > > > Anyways, you made me think that it might be a good idea to allow users to > > enter regular date strings also. > > > > Jeff, > > Is this something I should add? > > > > > > -Nathan > > > > > > On Tue, Jul 29, 2008 at 4:42 PM, Rizwan Raza > wrote: > > > Nathan: > > > > > > You were damn right about the datetime. I removed the datetime > > > attributes from the wsdl and now it works. Now how the result set is > > > collected by SUDS, does it create some kind of object and deserializes > > > the result into it? > > > > > > > > > > > > > > > On 7/29/08, Rizwan Raza wrote: > > > > Attached here is the WSDL. Please discard the wsdl once you are done. > > > > Looks like there might be some problem with elements > > > > > > > > Thanks > > > > > > > > - rizwan > > > > > > > > On 7/29/08, Jeff Ortel wrote: > > > > > Rizwan, > > > > > > > > > > Can you attach a copy of the WSDL so I can look at it? > > > > > > > > > > Thanks, > > > > > > > > > > Jeff > > > > > > > > > > > > > > > Rizwan Raza wrote: > > > > > > I forgot to mention that I am using PYTHON 2.4 > > > > > > > > > > > > On 7/29/08, Rizwan Raza wrote: > > > > > > > > > > > > > Unfortunately you can't hit the WSDL. I do not think datetime > is > > an > > > > > > > issue here. How about elements in the complex > > type. Do > > > > > > > you think that could be causing it. > > > > > > > > > > > > > > Is there any other information that I can send, some sort of > > tracing > > > > > > > info that would help in detecting the cause of it? > > > > > > > > > > > > > > On 7/29/08, Nathan Van Gheem wrote: > > > > > > > > > > > > > > > Otherwise, from the initial look of it, you might need to > send > > it a > > > > > python > > > > > > > > dateTime object instead of giving it a date string. dateTime > > types > > > > > are > > > > > > > > handled with real python objects.... > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Jul 29, 2008 at 2:09 PM, Nathan Van Gheem > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > Can you give a url that we can test? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Jul 29, 2008 at 2:08 PM, Rizwan Raza > > > > > > > > > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > That is an internal url. > > > > > > > > > > > > > > > > > > > > B/W I tried SOAPpy and it is able to get that complex > type > > the > > > > > only > > > > > > > > > > thing is that SOAPpy does not support Document/Literal > > whereas > > > > > SUDS > > > > > > > > > > does. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 7/29/08, Nathan Van Gheem wrote: > > > > > > > > > > > > > > > > > > > > > The url you have given doesn't seem to work. Is it not > > > > > accessible > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > from > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > anywhere? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Jul 29, 2008 at 1:56 PM, Rizwan Raza > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I have the following as a response from one of the > web > > service > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > method. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > It is an ArrayOfComplexType with an xsd:extension > > > > > > > > > > > > > > > > > > > > > > > > Executing the code below > > > > > > > > > > > > > > > > > > > > > > > > from suds.serviceproxy import ServiceProxy > > > > > > > > > > > > url = > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ' > http://chouwmlci0849.amrs.win.ml.com/Cds/Calendar/CalendarService.svc?wsdl > ' > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > myservice=ServiceProxy(url) > > > > > > > > > > > > print > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > myservice.FindCalendarValuesByName('','','','','','') > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > is giving me the following error > > > > > > > > > > > > > > > > > > > > > > > > Traceback (most recent call last): > > > > > > > > > > > > File > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > "C:\MerrillLynch\projects\PYTHON\WSTest01.py", > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 20, in ? > > > > > > > > > > > > > > > > > > > > > > > print > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > myservice.FindCalendarValuesByName('LCCME_OPTIONS','2008-01-01','2008- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 06-30','','','') > > > > > > > > > > > > File > > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 119, in __str__ > > > > > > > > > > > > > > > > > > > > > > > File > > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 122, in __unicode__ > > > > > > > > > > > > > > > > > > > > > > > File > > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 161, in tostr > > > > > > > > > > > > > > > > > > > > > > > File > > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 171, in process > > > > > > > > > > > > > > > > > > > > > > > File > > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 234, in print_object > > > > > > > > > > > > > > > > > > > > > > > File > > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 183, in process > > > > > > > > > > > > > > > > > > > > > > > File > > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 274, in print_collection > > > > > > > > > > > > > > > > > > > > > > > File > > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 171, in process > > > > > > > > > > > > > > > > > > > > > > > File > > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 234, in print_object > > > > > > > > > > > > > > > > > > > > > > > File > > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 186, in process > > > > > > > > > > > > > > > > > > > > > > > File > > > > > "build\bdist.win32\egg\suds\__init__.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line 129, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > in tostr > > > > > > > > > > > > > > > > > > > > > > > ValueError: tzinfo.utcoffset() returned 1440; must be > in > > -1439 > > > > > .. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 1439 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="FindCalendarValuesByNameResponse"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="FindCalendarValuesByNameResult" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="tns:ArrayOfCalendarValueData" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="ArrayOfCalendarValueData"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="CalendarValueData" nillable="true" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="tns:CalendarValueData" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="CalendarValueID" > > > > > > > > > > > > type="xsd:int" /> > > > > > > > > > > > > > name="CalendarValue" > > > > > > > > > > > > type="xsd:dateTime" /> > > > > > > > > > > > > > > > > > > > > > > > name="CalendarValueDescription" > > > > > nillable="true" > > > > > > > > > > > > > > > > > > > > > > > type="xsd:string" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > name="CalendarLocalValue" > > > > > > > > > > > > nillable="true" type="xsd:dateTime" /> > > > > > > > > > > > > > name="ContractDate" > > > > > > > > > > > > nillable="true" type="xsd:dateTime" /> > > > > > > > > > > > > > > > > name="CalendarValueTypeID" > > > > > > > > > > > > type="xsd:int" /> > > > > > > > > > > > > > > > > > > > > > > > name="CalendarValueTypeName" nillable="true" > > type="xsd:string" > > > > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="Status" > > > > > > > > > > > > type="tns:DataState" /> > > > > > > > > > > > > > name="UpdatedOn" > > > > > > > > > > > > type="xsd:dateTime" /> > > > > > > > > > > > > > name="UpdatedBy" > > > > > > > > > > > > nillable="true" type="xsd:string" /> > > > > > > > > > > > > name="Active" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="xsd:boolean" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I tested with a simple Complex type below for which > it > > worked. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="TestDocResult" > > > > > > > > > > > > type="tns:ArrayOfEmployee" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="Employee" > > > > > > > > > > > > nillable="true" type="tns:Employee" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="FirstName" > > > > > > > > > > > > type="xsd:string" /> > > > > > > > > > > > > > name="LastName" > > > > > > > > > > > > > > > > > > > > > > > type="xsd:string" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I would appreciate any pointers into that > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > > > fedora-suds-list mailing list > > > > > > > > > > > > fedora-suds-list at redhat.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > https://www.redhat.com/mailman/listinfo/fedora-suds-list > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > fedora-suds-list mailing list > > > > > > fedora-suds-list at redhat.com > > > > > > > > > > > > > https://www.redhat.com/mailman/listinfo/fedora-suds-list > > > > > > > > > > > > > > > > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rizwan.raza at gmail.com Tue Jul 29 22:02:24 2008 From: rizwan.raza at gmail.com (Rizwan Raza) Date: Tue, 29 Jul 2008 17:02:24 -0500 Subject: [Fedora-suds-list] suds and complex type In-Reply-To: <4308f0ba0807291455s5d088828re68d93e592453e3a@mail.gmail.com> References: <65e8f6b40807291156k17585470s2bf5fe05334ce89@mail.gmail.com> <4308f0ba0807291211r4424cad9w84a310cc2b79f932@mail.gmail.com> <65e8f6b40807291216m3f3b1a4mbe7b27e3dfc77144@mail.gmail.com> <65e8f6b40807291219h7b4b1ce6t2a24cbb63c95c868@mail.gmail.com> <488F7D28.9080104@redhat.com> <65e8f6b40807291434m30f5ced0q6e1d7c4ba15b8303@mail.gmail.com> <65e8f6b40807291442g6e2cd76fyd7db55d5296fd652@mail.gmail.com> <4308f0ba0807291447u7c3214fay4e078fb41a272214@mail.gmail.com> <65e8f6b40807291451t62f4fbbey6744b75dffb0d14a@mail.gmail.com> <4308f0ba0807291455s5d088828re68d93e592453e3a@mail.gmail.com> Message-ID: <65e8f6b40807291502m25d32740w3c4ac778263122d9@mail.gmail.com> So you are saying whatever serializer I am using to package the payload it is not serializing in the above format? On 7/29/08, Nathan Van Gheem wrote: > If you look here > http://www.w3schools.com/Schema/schema_dtypes_date.asp the > dateTime objects need to be in this format, > 2002-05-30T09:30:10.5 > > Your server must not be returning correctly formatted date results. > > > On Tue, Jul 29, 2008 at 4:51 PM, Rizwan Raza wrote: > > Yes. As a matter of fact the wireformat is XML which is nothing but > > string. Here is the possible set of datetime values that the result > > set contains > > > > 2008-02-04 15:05:00.000 > > 2008-04-07 14:05:00.000 > > 2008-06-09 14:05:00.000 > > > > 2008-07-16 00:11:21.417 > > 2008-07-16 00:14:13.363 > > 2008-07-16 00:17:03.557 > > > > > > > > > > On 7/29/08, Nathan Van Gheem wrote: > > > Yes, that was new in the 0.2.4 version of suds. Suds ships with some > built > > > in types to help ease its use. In fact, I was the one who contributed > the > > > patch to add the functionality. > > > > > > > Now how the result set is > > > > collected by SUDS, does it create some kind of object and deserializes > > > > the result into it? > > > > > > > Suds creates a python dateTime object for it > > > > > > Anyways, you made me think that it might be a good idea to allow users > to > > > enter regular date strings also. > > > > > > Jeff, > > > Is this something I should add? > > > > > > > > > -Nathan > > > > > > > > > On Tue, Jul 29, 2008 at 4:42 PM, Rizwan Raza > wrote: > > > > Nathan: > > > > > > > > You were damn right about the datetime. I removed the datetime > > > > attributes from the wsdl and now it works. Now how the result set is > > > > collected by SUDS, does it create some kind of object and deserializes > > > > the result into it? > > > > > > > > > > > > > > > > > > > > On 7/29/08, Rizwan Raza wrote: > > > > > Attached here is the WSDL. Please discard the wsdl once you are > done. > > > > > Looks like there might be some problem with elements > > > > > > > > > > Thanks > > > > > > > > > > - rizwan > > > > > > > > > > On 7/29/08, Jeff Ortel wrote: > > > > > > Rizwan, > > > > > > > > > > > > Can you attach a copy of the WSDL so I can look at it? > > > > > > > > > > > > Thanks, > > > > > > > > > > > > Jeff > > > > > > > > > > > > > > > > > > Rizwan Raza wrote: > > > > > > > I forgot to mention that I am using PYTHON 2.4 > > > > > > > > > > > > > > On 7/29/08, Rizwan Raza wrote: > > > > > > > > > > > > > > > Unfortunately you can't hit the WSDL. I do not think datetime > is > > > an > > > > > > > > issue here. How about elements in the complex > > > type. Do > > > > > > > > you think that could be causing it. > > > > > > > > > > > > > > > > Is there any other information that I can send, some sort of > > > tracing > > > > > > > > info that would help in detecting the cause of it? > > > > > > > > > > > > > > > > On 7/29/08, Nathan Van Gheem wrote: > > > > > > > > > > > > > > > > > Otherwise, from the initial look of it, you might need to > send > > > it a > > > > > > python > > > > > > > > > dateTime object instead of giving it a date string. > dateTime > > > types > > > > > > are > > > > > > > > > handled with real python objects.... > > > > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Jul 29, 2008 at 2:09 PM, Nathan Van Gheem > > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > Can you give a url that we can test? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Jul 29, 2008 at 2:08 PM, Rizwan Raza > > > > > > > > > > > > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > That is an internal url. > > > > > > > > > > > > > > > > > > > > > > B/W I tried SOAPpy and it is able to get that complex > type > > > the > > > > > > only > > > > > > > > > > > thing is that SOAPpy does not support Document/Literal > > > whereas > > > > > > SUDS > > > > > > > > > > > does. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 7/29/08, Nathan Van Gheem wrote: > > > > > > > > > > > > > > > > > > > > > > > The url you have given doesn't seem to work. Is it > not > > > > > > accessible > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > from > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > anywhere? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Jul 29, 2008 at 1:56 PM, Rizwan Raza > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I have the following as a response from one of the > web > > > service > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > method. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > It is an ArrayOfComplexType with an xsd:extension > > > > > > > > > > > > > > > > > > > > > > > > > > Executing the code below > > > > > > > > > > > > > > > > > > > > > > > > > > from suds.serviceproxy import ServiceProxy > > > > > > > > > > > > > url = > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 'http://chouwmlci0849.amrs.win.ml.com/Cds/Calendar/CalendarService.svc?wsdl' > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > myservice=ServiceProxy(url) > > > > > > > > > > > > > print > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > myservice.FindCalendarValuesByName('','','','','','') > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > is giving me the following error > > > > > > > > > > > > > > > > > > > > > > > > > > Traceback (most recent call last): > > > > > > > > > > > > > File > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > "C:\MerrillLynch\projects\PYTHON\WSTest01.py", > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 20, in ? > > > > > > > > > > > > > > > > > > > > > > > > > print > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > myservice.FindCalendarValuesByName('LCCME_OPTIONS','2008-01-01','2008- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 06-30','','','') > > > > > > > > > > > > > File > > > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 119, in __str__ > > > > > > > > > > > > > > > > > > > > > > > > > File > > > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 122, in __unicode__ > > > > > > > > > > > > > > > > > > > > > > > > > File > > > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 161, in tostr > > > > > > > > > > > > > > > > > > > > > > > > > File > > > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 171, in process > > > > > > > > > > > > > > > > > > > > > > > > > File > > > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 234, in print_object > > > > > > > > > > > > > > > > > > > > > > > > > File > > > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 183, in process > > > > > > > > > > > > > > > > > > > > > > > > > File > > > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 274, in print_collection > > > > > > > > > > > > > > > > > > > > > > > > > File > > > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 171, in process > > > > > > > > > > > > > > > > > > > > > > > > > File > > > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 234, in print_object > > > > > > > > > > > > > > > > > > > > > > > > > File > > > > > > "build\bdist.win32\egg\suds\sudsobject.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 186, in process > > > > > > > > > > > > > > > > > > > > > > > > > File > > > > > > "build\bdist.win32\egg\suds\__init__.py", > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > line 129, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > in tostr > > > > > > > > > > > > > > > > > > > > > > > > > ValueError: tzinfo.utcoffset() returned 1440; must > be in > > > -1439 > > > > > > .. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 1439 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="FindCalendarValuesByNameResponse"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="FindCalendarValuesByNameResult" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="tns:ArrayOfCalendarValueData" > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="ArrayOfCalendarValueData"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="CalendarValueData" nillable="true" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="tns:CalendarValueData" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="CalendarValueID" > > > > > > > > > > > > > type="xsd:int" /> > > > > > > > > > > > > > > > name="CalendarValue" > > > > > > > > > > > > > type="xsd:dateTime" /> > > > > > > > > > > > > > > > > > > > > > > > > > name="CalendarValueDescription" > > > > > > nillable="true" > > > > > > > > > > > > > > > > > > > > > > > > > type="xsd:string" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="CalendarLocalValue" > > > > > > > > > > > > > nillable="true" type="xsd:dateTime" /> > > > > > > > > > > > > > > > name="ContractDate" > > > > > > > > > > > > > nillable="true" type="xsd:dateTime" /> > > > > > > > > > > > > > > > > > > name="CalendarValueTypeID" > > > > > > > > > > > > > type="xsd:int" /> > > > > > > > > > > > > > > > > > > > > > > > > > name="CalendarValueTypeName" nillable="true" > > > type="xsd:string" > > > > > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="Status" > > > > > > > > > > > > > type="tns:DataState" /> > > > > > > > > > > > > > > > name="UpdatedOn" > > > > > > > > > > > > > type="xsd:dateTime" /> > > > > > > > > > > > > > > > name="UpdatedBy" > > > > > > > > > > > > > nillable="true" type="xsd:string" /> > > > > > > > > > > > > > name="Active" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="xsd:boolean" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I tested with a simple Complex type below for which > it > > > worked. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="TestDocResult" > > > > > > > > > > > > > type="tns:ArrayOfEmployee" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="Employee" > > > > > > > > > > > > > nillable="true" type="tns:Employee" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="FirstName" > > > > > > > > > > > > > type="xsd:string" /> > > > > > > > > > > > > > > > name="LastName" > > > > > > > > > > > > > > > > > > > > > > > > > type="xsd:string" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I would appreciate any pointers into that > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > > > > fedora-suds-list mailing list > > > > > > > > > > > > > fedora-suds-list at redhat.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > https://www.redhat.com/mailman/listinfo/fedora-suds-list > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > fedora-suds-list mailing list > > > > > > > fedora-suds-list at redhat.com > > > > > > > > > > > > > > > > > https://www.redhat.com/mailman/listinfo/fedora-suds-list > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From frederic.junod at camptocamp.com Wed Jul 30 07:57:43 2008 From: frederic.junod at camptocamp.com (=?UTF-8?B?RnLDqWTDqXJpYw==?= Junod) Date: Wed, 30 Jul 2008 09:57:43 +0200 Subject: [Fedora-suds-list] Force the datatype of a parameter Message-ID: <20080730095743.048e6081@kirishima.wrk.lsn.camptocamp.com> Hi all, I use a WSDL [1] that declare a "ArrayOfAnyType" complex type: And I can easily create instances of this with: ... param = client.factory.create('ArrayOfAnyType') param.anyType = ["hello", "world"] But when I call a remote function, the following envelope is send: ... Adresse 1 hello world This is perfectly correct but I need that each of the "anyType" parameter have the "xsd:string" type set. Something like: ... hello world ... Is there a way to do that ? Regards, fredj PS: I use the svn version [1] http://etat.geneve.ch/geoportail/localisationws/localisations.wsdl -- Fr?d?ric Junod Camptocamp SA From cameron.am at gmail.com Wed Jul 30 16:51:27 2008 From: cameron.am at gmail.com (Cameron Morrison) Date: Wed, 30 Jul 2008 17:51:27 +0100 Subject: [Fedora-suds-list] Exception in unmarshaller In-Reply-To: <48500B70.60703@redhat.com> References: <611cee900806110704o27715994v661fe4998629a680@mail.gmail.com> <48500B70.60703@redhat.com> Message-ID: <611cee900807300951m300751f6lb276befdc74992d5@mail.gmail.com> Hi Jeff, The version you sent me a while ago is working correctly for what I need. Just thought I'd let you know that the current trunk does not, it's producing the following errors when I attempt to use it instead: 2008-07-30 12:48:40,139 [ERROR] __find() @resolver.py:203 (@set) not-found 2008-07-30 12:48:40,140 [WARNING] append_attr() @unmarshaller.py:382 attribute (set) type, not-found 2008-07-30 12:48:40,140 [ERROR] __find() @resolver.py:203 (@cout) not-found 2008-07-30 12:48:40,140 [WARNING] append_attr() @unmarshaller.py:382 attribute (cout) type, not-found 2008-07-30 12:48:40,140 [ERROR] __find() @resolver.py:203 (@projectid) not-found ...... I will continue to use the version that works for me, but I thought you'd like to know. Cheers, Cam 2008/6/11 Jeff Ortel : > Hey Cameron, > > I've attached a pre-release version of 0.2.2 for you to try. It's still > being tested so ... :-) > > Let me know how you make out. > > Regards, > > Jeff > > > > Cameron Morrison wrote: >> >> Hi, >> >> I am trying to call the service GetRecordings(...) defined in the >> attached wsdl, like so: >> >> --- >> #!/bin/python >> >> from suds.client import Client >> from suds import * >> >> logger('suds.serviceproxy').setLevel(logging.DEBUG) >> >> client = Client('http://localhost:2048/services/Recording.asmx?WSDL', >> faults=False, proxy={'http':'localhost:8888'}) >> print client.service.GetRecordings('FilterBySong', 'None', 1, 10, '2') >> --- >> >> The call works, and the following xml is returned: >> >> --- >> >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xmlns:xsd="http://www.w3.org/2001/XMLSchema"> >> >> >> >> Success >> >> >> > soundId="2"> >> >> >> v1url >> v2url >> >> > soundId="2"> >> >> >> v1url >> v2url >> >> > soundId="2"> >> >> >> v1url >> v2url >> >> > soundId="2"> >> >> >> Cams voice >> Robs voice >> >> >> >> >> >> >> >> --- >> >> ... but the unmarshaller is throwing an exception when trying to >> process the recordings element of the returned document: >> >> --- >> 2008-06-11 09:41:58,250 {2796} (resolver.py, 167) [ERROR] (recordings) >> not-found >> Traceback (most recent call last): >> File "./test_driver.py", line 15, in >> print client.service.GetRecordings('FilterBySong', 'None', 1, 10, '2') >> File "build/bdist.cygwin-1.5.25-i686/egg/suds/client.py", line 145, >> in __call__ >> File "build/bdist.cygwin-1.5.25-i686/egg/suds/client.py", line 258, in >> send >> File "build/bdist.cygwin-1.5.25-i686/egg/suds/client.py", line 305, >> in succeeded >> File "build/bdist.cygwin-1.5.25-i686/egg/suds/bindings/binding.py", >> line 86, in get_reply >> File "build/bdist.cygwin-1.5.25-i686/egg/suds/bindings/binding.py", >> line 111, in unmarshal >> File "build/bdist.cygwin-1.5.25-i686/egg/suds/bindings/unmarshaller.py", >> line 73, in process >> File "build/bdist.cygwin-1.5.25-i686/egg/suds/bindings/unmarshaller.py", >> line 91, in __process >> File "build/bdist.cygwin-1.5.25-i686/egg/suds/bindings/unmarshaller.py", >> line 122, in import_children >> File "build/bdist.cygwin-1.5.25-i686/egg/suds/bindings/unmarshaller.py", >> line 91, in __process >> File "build/bdist.cygwin-1.5.25-i686/egg/suds/bindings/unmarshaller.py", >> line 122, in import_children >> File "build/bdist.cygwin-1.5.25-i686/egg/suds/bindings/unmarshaller.py", >> line 89, in __process >> File "build/bdist.cygwin-1.5.25-i686/egg/suds/bindings/unmarshaller.py", >> line 275, in start >> suds.TypeNotFound: WSDL type: recordings not-found >> --- >> >> The "recordings" element is not specified in the WSDL - the Result >> field of a ServiceResponse is intended to be arbitrarly formatted xml >> - is there any way that Suds can handle this? >> >> Cheers, >> Cameron >> >> ps. the service is internal, so I am unable to provide a test url, sorry! >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> fedora-suds-list mailing list >> fedora-suds-list at redhat.com >> https://www.redhat.com/mailman/listinfo/fedora-suds-list > >