The Python Oracle

how to extract specific info from Soap response in Python (pysimplesoap)

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Beneath the City Looping

--

Chapters
00:00 Question
01:00 Accepted answer (Score 3)
01:23 Thank you

--

Full question
https://stackoverflow.com/questions/2238...

Accepted answer links:
http://docs.python.org/2/library/stdtype...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #soap #xmlparsing #pysimplesoap

#avk47



ACCEPTED ANSWER

Score 3


What you get as the response is a Python dict. You can access the GoodEmail value like that:

result = response['VerifyEmailResult']['GoodEmail']

You can read more about Python data types here: http://docs.python.org/2/library/stdtypes.html