Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parsing Soap XML response
#1
Hi,

I'm a Python newbie.
Still learning and following tutorials etc.

At this moment i'm trying to learn REST/SOAP api's.
I'm able to parse json results, but i'm not able to find a piece of code which can parse my XML response.

I want to retrieve "result" and "sessionId"

Would be nice if someone can help me or point me to the right direction,

Thanks in advance,

Richard


XML Response:

<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<ns2:loginResponse xmlns:ns2="http://xyz/gss/session/SessionService">
<ns2:return result="true" sessionId="7111510180479788278"/>
</ns2:loginResponse>
</soapenv:Body>
</soapenv:Envelope>
Reply


Messages In This Thread
Parsing Soap XML response - by grootkarzijn - Jun-12-2019, 09:38 PM
RE: Parsing Soap XML response - by snippsat - Jun-12-2019, 11:38 PM
RE: Parsing Soap XML response - by grootkarzijn - Jun-13-2019, 09:26 PM
RE: Parsing Soap XML response - by snippsat - Jun-13-2019, 09:33 PM
RE: Parsing Soap XML response - by grootkarzijn - Jun-13-2019, 10:36 PM
RE: Parsing Soap XML response - by snippsat - Jun-13-2019, 11:18 PM
RE: Parsing Soap XML response - by grootkarzijn - Jun-14-2019, 12:32 AM
RE: Parsing Soap XML response - by snippsat - Jun-14-2019, 01:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Zeep lib, encrypt soap body miha1234 0 2,862 Sep-12-2019, 07:52 AM
Last Post: miha1234
  Issues parsing the response from a request garnold 3 2,579 May-14-2019, 12:39 PM
Last Post: snippsat
  SOAP based webservice invoke mehrdadabedi 1 2,359 Mar-10-2019, 06:04 PM
Last Post: mlieqo
  How to retrieve and save attachments returned by SOAP web service ashwsrin 0 2,635 Feb-20-2019, 07:12 AM
Last Post: ashwsrin
  SOAP/XML input Help duguarun 0 2,499 Jun-08-2018, 10:20 AM
Last Post: duguarun
  extracting data from XML/SOAP hey_arnold 4 4,815 May-07-2018, 09:23 AM
Last Post: hey_arnold
  Soap json program rahul208in 5 3,890 Jan-11-2018, 05:28 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020