That WSDL document looks awful..
But what I like to check is the print out of the service definition after
loading the url into a suds client
>> from suds.client import Client
>> c = Client(url='
http://ws-server-test.bookingcenter.com/hotel_availability_calendar.php?wsdl
')
>> print c.sd[0]
unfortunately the print out shows less than ideal types
Service ( OTA_HotelAvailCalendarPort ) tns="
www.bookingcenter.com/hotelavailcalendar"
Prefixes (2)
ns0 = "http://schemas.xmlsoap.org/soap/encoding/"
ns1 = "http://www.opentravel.org/OTA/2003/05/hotelavailcalendar"
Ports (2):
(OTA_HotelAvailCalendarPort)
Methods (1):
HotelAvailCalendar(ns1:parameters parameters, )
Types (48):
ns0:Array
ns0:ENTITIES
ns0:ENTITY
ns0:ID
ns0:IDREF
ns0:IDREFS
ns0:NCName
ns0:NMTOKEN
ns0:NMTOKENS
ns0:NOTATION
ns0:Name
ns0:QName
ns0:Struct
ns0:anyURI
ns0:arrayCoordinate
ns0:base64
ns0:base64Binary
ns0:boolean
ns0:byte
ns0:date
ns0:dateTime
ns0:decimal
ns0:double
ns0:duration
ns0:float
ns0:gDay
ns0:gMonth
ns0:gMonthDay
ns0:gYear
ns0:gYearMonth
ns0:hexBinary
ns0:int
ns0:integer
ns0:language
ns0:long
ns0:negativeInteger
ns0:nonNegativeInteger
ns0:nonPositiveInteger
ns0:normalizedString
ns0:positiveInteger
ns0:short
ns0:string
ns0:time
ns0:token
ns0:unsignedByte
ns0:unsignedInt
ns0:unsignedLong
ns0:unsignedShort
(OTA_HotelAvailCalendarSOAP12Port)
Methods (1):
HotelAvailCalendar(ns1:parameters parameters, )
Types (48):
ns0:Array
ns0:ENTITIES
ns0:ENTITY
ns0:ID
ns0:IDREF
ns0:IDREFS
ns0:NCName
ns0:NMTOKEN
ns0:NMTOKENS
ns0:NOTATION
ns0:Name
ns0:QName
ns0:Struct
ns0:anyURI
ns0:arrayCoordinate
ns0:base64
ns0:base64Binary
ns0:boolean
ns0:byte
ns0:date
ns0:dateTime
ns0:decimal
ns0:double
ns0:duration
ns0:float
ns0:gDay
ns0:gMonth
ns0:gMonthDay
ns0:gYear
ns0:gYearMonth
ns0:hexBinary
ns0:int
ns0:integer
ns0:language
ns0:long
ns0:negativeInteger
ns0:nonNegativeInteger
ns0:nonPositiveInteger
ns0:normalizedString
ns0:positiveInteger
ns0:short
ns0:string
ns0:time
ns0:token
ns0:unsignedByte
ns0:unsignedInt
ns0:unsignedLong
ns0:unsignedShort
I'll see if I can find out any more about the documents.. my first thought
would be to transform the wsdl document into looking similarly to one that
works.
On Wed, Jun 12, 2013 at 7:39 AM, Bob Kline <bkline(a)rksystems.com> wrote:
How does one build parameters in suds against WSDLs which use
anonymous types? Clearly it's not possible to invoke
client.factory.create(typeName) in such case, because there are no
named types. An example (in this case, from the travel industry) of
such a WSDL is:
http://ws-server-test.bookingcenter.com/hotel_availability_calendar.php?wsdl
Thanks for any tips!
--
Bob Kline
http://www.rksystems.com
mailto:bkline@rksystems.com
_______________________________________________
suds mailing list
suds(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/suds