Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #44535 > unrolled thread

RE: Passing special characters in soap data

Started byOmbongi Moraa Fe <moraa.lovetakes2@gmail.com>
First post2013-04-30 14:50 +0300
Last post2013-04-30 14:08 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  RE: Passing special characters in soap data Ombongi Moraa Fe <moraa.lovetakes2@gmail.com> - 2013-04-30 14:50 +0300
    Re: Passing special characters in soap data John Gordon <gordon@panix.com> - 2013-04-30 14:08 +0000

#44535 — RE: Passing special characters in soap data

FromOmbongi Moraa Fe <moraa.lovetakes2@gmail.com>
Date2013-04-30 14:50 +0300
SubjectRE: Passing special characters in soap data
Message-ID<mailman.1176.1367322680.3114.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

Hi Team,

My provider sends soap data to me as they receive from subscriber. as
expected the messages with special characters like quotes are received as
html entities.

like the message below had a quote:

<?xml version="1.0" encoding="utf-8" ?><soapenv:Envelope
...<message>I&apos;ll shape it up myself</message>...
</soapenv:Body></soapenv:Envelope>


Since i pass this data into my python script as a command line call, i get
the error:

/bin/sh: Syntax error: Unterminated quoted string



how can i resolve this and any other html entities i receive?

Saludos

Ombongi Moraa Faith

[toc] | [next] | [standalone]


#44541

FromJohn Gordon <gordon@panix.com>
Date2013-04-30 14:08 +0000
Message-ID<kloj87$euf$1@reader1.panix.com>
In reply to#44535
In <mailman.1176.1367322680.3114.python-list@python.org> Ombongi Moraa Fe <moraa.lovetakes2@gmail.com> writes:

> My provider sends soap data to me as they receive from subscriber. as
> expected the messages with special characters like quotes are received as
> html entities.

> like the message below had a quote:

> <?xml version="1.0" encoding="utf-8" ?><soapenv:Envelope
> ...<message>I&apos;ll shape it up myself</message>...
> </soapenv:Body></soapenv:Envelope>


> Since i pass this data into my python script as a command line call, i get
> the error:

> /bin/sh: Syntax error: Unterminated quoted string

Can you modify your python script so it accepts a filename which contains
the xml?

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web