[Fedora-suds-list] Using unbound type

Philippe Gauvin :: Magnet Média phil at magnetmedia.ca
Fri Jun 4 02:36:47 UTC 2010


Hi,

I've asked before with no luck...

I have the following client definition.

Suds ( https://fedorahosted.org/suds/ )  version: 0.4 (beta)  build:
> R663-20100303


> Service ( MeetingSpaceProviderService ) tns="
> http://htng.org/PWSWG/2007/01/DigitalSignage"

    Prefixes (2)

      ns0 = "
> http://htng.org/PWSWG/2007/01/DigitalSignage/MeetingSpaceRequest/Types"

       ns1 = "
> http://htng.org/PWSWG/2007/01/DigitalSignage/MeetingSpaceResponse/Types"

    Ports (2):

      (MeetingSpaceServiceSoap)

         Methods (2):

            MeetingSpaceCharacteristicsRequest()

            MeetingSpaceRequest(ns0:DateRange DateRange, )

         Types (6):

            ns1:EventType

            ns1:GroupType

            ns1:MeetingSpaceType

            ns1:OtherRoomType

            ns1:PropertyType

            ns1:SubMeetingSpaceType

      (MeetingSpaceServiceSoap1)

         Methods (2):

            MeetingSpaceCharacteristicsRequest()

            MeetingSpaceRequest(ns0:DateRange DateRange, )

         Types (6):

            ns1:EventType

            ns1:GroupType

            ns1:MeetingSpaceType

            ns1:OtherRoomType

            ns1:PropertyType

            ns1:SubMeetingSpaceType


 I need to call the MeetingSpaceCharacteristicsRequest like this

 <soap:Body>

<MeetingSpaceCharacteristicsRequest propertyKey="3917" xmlns="
> http://htng.org/PWSWG/2007/01/DigitalSignage/MeetingSpaceCharacteristicsRequest/Types"
> />

 </soap:Body>


but because propertyKey is not a listed type. I am not sure how to proceed.
I have tried binding the xsd manually (propertyKey is a defined type in the
xsd) but no luck.

 from suds.xsd.sxbasic import Import

 ns = '
> http://htng.org/PWSWG/2007/01/DigitalSignage/MeetingSpaceCharacteristicsRequest/Types/
> '

 location = '
> http://htng.org/PWSWG/2007/01/DigitalSignage/MeetingSpaceCharacteristicsRequest/Schemas/MeetingSpaceCharacteristicsRequest.xsd
> '

 Import.bind(ns, location)



First time fiddling with soap, so sorry if the question is easy and
hopefully it is ;-)

Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/suds/attachments/20100603/bca432e9/attachment.html 


More information about the suds mailing list