[Fedora-suds-list] suds removing whitespaces

Jeff Ortel jortel at redhat.com
Wed Nov 18 15:50:31 UTC 2009


Hey Stefano,

I'm not surprised.  Suds trims leading and trailing whitespace to account for formatted 
XML.  I'll add an option so you can turn it off if you want.

Regards,

Jeff

On 11/12/2009 10:28 AM, stecuratti at tiscali.it wrote:
> Hello there,
> i'm having some problems with suds client: when i try to
> get a string from from a particular web service, all leading and
> following withespaces are omitted.
>
> Here's an example:
>
> client=Client
> ('http://www.pdb.org/pdb/services/pdbws?wsdl')
> print client.service.
> getKabschSander('103M','A')
>
>
> Result is
>
> 'HHHHHHHHHHHHHHGGGHHHHHHHHHHHHHHH GGGGGG TTTTT  SHHHHHH
> HHHHHHHHHHHHHHHHHHHTTT  HHHHHHHHHHHHHTS HHHHHHHHHHHHHHHHHH GGG
> HHHHHHHHHHHHHHHHHHHHHHHHTT'
>
> but it should be
> '
> HHHHHHHHHHHHHHGGGHHHHHHHHHHHHHHH GGGGGG TTTTT  SHHHHHH
> HHHHHHHHHHHHHHHHHHHTTT  HHHHHHHHHHHHHTS   HHHHHHHHHHHHHHHHHH GGG
> HHHHHHHHHHHHHHHHHHHHHHHHTT   '
>
> I'm quite new to wsdl, and to be honest
> i'd like to avoid getting into it (that's why i'm using suds)...
>
> hope
> someone can help,
> thanks and regards
> Stefano
>
>
>
>
>
> Passa a Tiscali Tutto Incluso Light: telefono + adsl 8 Mb senza limiti a soli 9,95 euro al mese fino al 01/04/2010. Gratis la Sim Tiscali Mobile con 25 euro di traffico.
>
> L’offerta è valida solo se attivi entro il 12/11/09
>
> http://abbonati.tiscali.it/telefono-adsl/prodotti/tc/tuttoincluso_light/?WT.mc_id=01fw
>
> _______________________________________________
> fedora-suds-list mailing list
> fedora-suds-list at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-suds-list

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5126 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/suds/attachments/20091118/bb6ac5f6/attachment.bin 


More information about the suds mailing list