Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post2.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'parameters': 0.04; 'skip:[ 20': 0.04; 'output': 0.05; 'assign': 0.07; 'soap': 0.07; 'string': 0.09; '<?xml': 0.09; 'received:209.85.219': 0.09; 'variable,': 0.09; 'python': 0.11; 'advance.': 0.19; 'print': 0.22; 'file.': 0.24; 'skip:" 20': 0.27; 'message-id:@mail.gmail.com': 0.30; 'work.': 0.31; 'saludos': 0.31; 'skip:? 20': 0.31; 'strip': 0.31; 'skip:& 30': 0.33; 'received:209.85': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'method': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'received:209': 0.37; 'skip:& 10': 0.38; 'to:addr:python- list': 0.38; 'url:schemas': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'logs': 0.60; 'skip:2 20': 0.60; 'address': 0.63; 'skip:r 30': 0.69; 'faith': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:from:date:message-id:subject:to :content-type; bh=4ltxoWxz+eS87PQpCYJKi+i0V6wFzuWLDuAbej7JTMs=; b=d5vTq/Kzee3YLk+C71OovavHqrqC6cCM09Gk/oCSBoVXmqRNtWMjZo1Qd/OMLl/SaL vQ9eDeJOER0leBW58NeIXNhd6un9kF31ffs6A/KQSc6ms7X4xGNIOakGWzZkv5Vfb4O4 NPvOoFYS587hSp2LqSH4yenrgGTkHxqa6QReL4gwSVC3VlbNwU63mgiwjsP2qdmmbKVy 6An5CLVtm69wBqjJOsA0r9YXSsWSep9SN+bl6Hs4b7jLkO2lgRl2f9eMxMfGgkxUfnh/ DO8zxMNL089yAJx5gANTwEhrclSFpSSVnYg9iJ8fNIcZZhXODPORa2/me++XuFNxFef0 G3Ew== X-Received: by 10.60.92.201 with SMTP id co9mr2559892oeb.113.1366206666442; Wed, 17 Apr 2013 06:51:06 -0700 (PDT) MIME-Version: 1.0 From: Ombongi Moraa Fe Date: Wed, 17 Apr 2013 16:50:26 +0300 Subject: Parsing soap result To: python-list@python.org Content-Type: multipart/alternative; boundary=e89a8f6468570b0f2504da8ec79a X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 77 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1366206668 news.xs4all.nl 2200 [2001:888:2000:d::a6]:40609 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:43759 --e89a8f6468570b0f2504da8ec79a Content-Type: text/plain; charset=ISO-8859-1 My client.service.gere(ri) method call logs the below soap response in my log file.
254727
DeliveredToNetwork
If I assign the client.service.gere(ri) to a variable, i get the output on my screen: result=client.service.gere(ri) output: [(DeliveryInformation){ address = "254727" deliveryStatus = "DeliveredToNetwork" }] string functions replace() and strip don't work. how do I use xml.etree.ElementTree to print the parameters address and deliveryStatus? Or is there a better python method? Thanks in advance. Saludos Ombongi Moraa Faith --e89a8f6468570b0f2504da8ec79a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
My

client.service.gere(ri)

method ca= ll logs the below soap response in my log file.

<?xml version=3D&= quot;1.0" encoding=3D"utf-8" ?><soapenv:Envelope xmlns= :soapenv=3D"http= ://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi=3D"http://www.w3.org/2001/XMLSc= hema-instance"><soapenv:Body><ns1:gere xmlns:ns1=3D&qu= ot;http= ://www.csapi.org/schema/parlayx/sms/send/v2_2/local"><ns1:re= sult><address>254727</address><deliveryStatus>Delivere= dToNetwork</deliveryStatus></ns1:result></ns1:gere></s= oapenv:Body></soapenv:Envelope>


If I assign the client.service.gere(ri) to a variable, = i get the output on my screen:

result=3Dclient.service.gere(ri)
=
output:
[(DeliveryInformation){
=A0=A0 address =3D "254727"=
=A0=A0 deliveryStatus =3D "DeliveredToNetwork"
=A0}]
string functions replace() and strip don't work.

how do I use xm= l.etree.ElementTree to print the parameters address and deliveryStatus? Or = is there a better python method?

Thanks in advance.

Saludos

Ombongi = Moraa Faith

--e89a8f6468570b0f2504da8ec79a--