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


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

Re: Parsing soap result

Started byBurak Arslan <burak.arslan@arskom.com.tr>
First post2013-04-18 13:55 +0300
Last post2013-04-18 13:55 +0300
Articles 1 — 1 participant

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

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Parsing soap result Burak Arslan <burak.arslan@arskom.com.tr> - 2013-04-18 13:55 +0300

#43818 — Re: Parsing soap result

FromBurak Arslan <burak.arslan@arskom.com.tr>
Date2013-04-18 13:55 +0300
SubjectRe: Parsing soap result
Message-ID<mailman.763.1366282526.3114.python-list@python.org>

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

Hi,

On 04/18/13 13:46, Ombongi Moraa Fe wrote:
> Hi Burak, Team,
>

Apparently I was too deep in answering support questions for my company 
:) This is python-list, so It's just me here :)

> Your solution worked perfectly thanks.
>
> Could you share the logic of this solution?
>

You're using suds. Let's have a look at what you see:

[(DeliveryInformation){
    address = "254727"
    deliveryStatus = "DeliveredToNetwork"
  }]

You have it in square brackets, so it's an array. You apparently want 
the first element, so it's result[0]. It's of type DeliveryInformation 
with two fields, they are what you see there. Depending on the which 
soap mode (rpc/document) your server uses, you should either use 
result[0].deliveryStatus or result[0].DeliveryInformation.deliveryStatus.

I guess I got too much experience doing SOAP with python :) (I maintain 
spyne, see: http://spyne.io)

I'm glad it worked.

Best,
Burak

[toc] | [standalone]


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


csiph-web