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 <rizwan.raza(a)gmail.com> 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 <vangheem(a)gmail.com> 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 <rizwan.raza(a)gmail.com>
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 <rizwan.raza(a)gmail.com> wrote:
> > > Attached here is the WSDL. Please discard the wsdl once you are done.
> > > Looks like there might be some problem with <xsd:extension>
elements
> > >
> > > Thanks
> > >
> > > - rizwan
> > >
> > > On 7/29/08, Jeff Ortel <jortel(a)redhat.com> 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 <rizwan.raza(a)gmail.com> wrote:
> > > > >
> > > > > > Unfortunately you can't hit the WSDL. I do not think
datetime
is
> an
> > > > > > issue here. How about <xsd:extension> 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 <vangheem(a)gmail.com>
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(a)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(a)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
<vangheem(a)gmail.com> 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(a)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
> > > > > > >
> > > > > > > >
> > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > > <xsd:element
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > >
> name="FindCalendarValuesByNameResponse">
> > > > > > >
> > > > > > > >
> > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > > <xsd:complexType>
> > > > > > > > > > > <xsd:sequence>
> > > > > > > > > > > <xsd:element
minOccurs="0" maxOccurs="1"
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > >
> name="FindCalendarValuesByNameResult"
> > > > > > >
> > > > > > > >
> > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > >
type="tns:ArrayOfCalendarValueData" />
> > > > > > > > > > > </xsd:sequence>
> > > > > > > > > > > </xsd:complexType>
> > > > > > > > > > > </xsd:element>
> > > > > > > > > > >
> > > > > > > > > > > <xsd:complexType
> > > > name="ArrayOfCalendarValueData">
> > > > > > > > > > > <xsd:sequence>
> > > > > > > > > > > <xsd:element
minOccurs="0" maxOccurs="unbounded"
> > > > > > > > > > > name="CalendarValueData"
nillable="true"
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > type="tns:CalendarValueData"
> > > > > > >
> > > > > > > >
> > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > > />
> > > > > > > > > > > </xsd:sequence>
> > > > > > > > > > > </xsd:complexType>
> > > > > > > > > > > <xsd:complexType
name="CalendarValueData">
> > > > > > > > > > > <xsd:complexContent
mixed="false">
> > > > > > > > > > > <xsd:extension
base="tns:ActiveHeader">
> > > > > > > > > > > <xsd:sequence>
> > > > > > > > > > > <xsd:element
minOccurs="1" maxOccurs="1"
> > > > name="CalendarValueID"
> > > > > > > > > > > type="xsd:int" />
> > > > > > > > > > > <xsd:element
minOccurs="1" maxOccurs="1"
> name="CalendarValue"
> > > > > > > > > > > type="xsd:dateTime"
/>
> > > > > > > > > > > <xsd:element
minOccurs="1" maxOccurs="1"
> > > > > > > > > > >
name="CalendarValueDescription"
> > > > nillable="true"
> > > > > > > > > > >
> > > > > > > > > > type="xsd:string" />
> > > > > > > > > >
> > > > > > > > > > > <xsd:element
minOccurs="1" maxOccurs="1"
> > > > name="CalendarLocalValue"
> > > > > > > > > > > nillable="true"
type="xsd:dateTime" />
> > > > > > > > > > > <xsd:element
minOccurs="1" maxOccurs="1"
> name="ContractDate"
> > > > > > > > > > > nillable="true"
type="xsd:dateTime" />
> > > > > > > > > > > <xsd:element
minOccurs="1" maxOccurs="1"
> > > > name="CalendarValueTypeID"
> > > > > > > > > > > type="xsd:int" />
> > > > > > > > > > > <xsd:element
minOccurs="1" maxOccurs="1"
> > > > > > > > > > >
name="CalendarValueTypeName" nillable="true"
> type="xsd:string"
> > > > />
> > > > > > > > > > > </xsd:sequence>
> > > > > > > > > > > </xsd:extension>
> > > > > > > > > > > </xsd:complexContent>
> > > > > > > > > > > </xsd:complexType>
> > > > > > > > > > > <xsd:complexType
name="ActiveHeader">
> > > > > > > > > > > <xsd:complexContent
mixed="false">
> > > > > > > > > > > <xsd:extension
base="tns:Header">
> > > > > > > > > > > <xsd:sequence>
> > > > > > > > > > > <xsd:element
minOccurs="1" maxOccurs="1"
name="Status"
> > > > > > > > > > > type="tns:DataState"
/>
> > > > > > > > > > > <xsd:element
minOccurs="1" maxOccurs="1"
> name="UpdatedOn"
> > > > > > > > > > > type="xsd:dateTime"
/>
> > > > > > > > > > > <xsd:element
minOccurs="1" maxOccurs="1"
> name="UpdatedBy"
> > > > > > > > > > > nillable="true"
type="xsd:string" />
> > > > > > > > > > > <xsd:element
minOccurs="1" maxOccurs="1"
name="Active"
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > type="xsd:boolean"
> > > > > > >
> > > > > > > >
> > > > > > > > >
> > > > > > > > > > />
> > > > > > > > > >
> > > > > > > > > > > </xsd:sequence>
> > > > > > > > > > > </xsd:extension>
> > > > > > > > > > > </xsd:complexContent>
> > > > > > > > > > > </xsd:complexType>
> > > > > > > > > > > <xsd:complexType
name="Header" abstract="true" />
> > > > > > > > > > > <xsd:simpleType
name="DataState">
> > > > > > > > > > > <xsd:restriction
base="xsd:string">
> > > > > > > > > > > <xsd:enumeration
value="Unchanged" />
> > > > > > > > > > > <xsd:enumeration
value="Insert" />
> > > > > > > > > > > <xsd:enumeration
value="Delete" />
> > > > > > > > > > > <xsd:enumeration
value="Update" />
> > > > > > > > > > > </xsd:restriction>
> > > > > > > > > > > </xsd:simpleType>
> > > > > > > > > > >
> > > > > > > > > > > I tested with a simple Complex
type below for which
it
> worked.
> > > > > > > > > > >
> > > > > > > > > > > <xsd:element
name="TestDocResponse">
> > > > > > > > > > > <xsd:complexType>
> > > > > > > > > > > <xsd:sequence>
> > > > > > > > > > > <xsd:element
minOccurs="0" maxOccurs="1"
> name="TestDocResult"
> > > > > > > > > > >
type="tns:ArrayOfEmployee" />
> > > > > > > > > > > </xsd:sequence>
> > > > > > > > > > > </xsd:complexType>
> > > > > > > > > > > </xsd:element>
> > > > > > > > > > > <xsd:complexType
name="ArrayOfEmployee">
> > > > > > > > > > > <xsd:sequence>
> > > > > > > > > > > <xsd:element
minOccurs="0" maxOccurs="unbounded"
> > > > name="Employee"
> > > > > > > > > > > nillable="true"
type="tns:Employee" />
> > > > > > > > > > > </xsd:sequence>
> > > > > > > > > > > </xsd:complexType>
> > > > > > > > > > > <xsd:complexType
name="Employee">
> > > > > > > > > > > <xsd:sequence>
> > > > > > > > > > > <xsd:element
minOccurs="0" maxOccurs="1"
> name="FirstName"
> > > > > > > > > > > type="xsd:string" />
> > > > > > > > > > > <xsd:element
minOccurs="0" maxOccurs="1"
> name="LastName"
> > > > > > > > > > >
> > > > > > > > > > type="xsd:string" />
> > > > > > > > > >
> > > > > > > > > > > </xsd:sequence>
> > > > > > > > > > > </xsd:complexType>
> > > > > > > > > > >
> > > > > > > > > > > I would appreciate any pointers
into that
> > > > > > > > > > >
> > > > > > > > > > >
> > > > _______________________________________________
> > > > > > > > > > > fedora-suds-list mailing list
> > > > > > > > > > > fedora-suds-list(a)redhat.com
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > >
>
https://www.redhat.com/mailman/listinfo/fedora-suds-list
> > > > > > >
> > > > > > > >
> > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > > _______________________________________________
> > > > > fedora-suds-list mailing list
> > > > > fedora-suds-list(a)redhat.com
> > > > >
> > > >
>
https://www.redhat.com/mailman/listinfo/fedora-suds-list
> > > > >
> > > >
> > >
> > >
> >
>
>