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


Groups > comp.lang.python > #43818

Re: Parsing soap result

Date 2013-04-18 13:55 +0300
From Burak Arslan <burak.arslan@arskom.com.tr>
Subject Re: Parsing soap result
References <CAM6w3nq41KB=3HxgvJiay_u_xR-PQt4-J7BA=JFPeZ59w7LK1A@mail.gmail.com> <516F16FE.4080900@arskom.com.tr> <CAM6w3npCQwfsYTDATi7pgP350kot_2u7B+i_QZsqD8aQT3-jYA@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.763.1366282526.3114.python-list@python.org> (permalink)

Show all headers | View raw


[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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web