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

Really appreciate your effort of helping me.

I hope you will help me for the last time.
I marked the items i want to have with "*------------------"
Probably are the methods the same.

Please help me with this.

After this I have enough homework to do some reverse engineering.


Output:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header/> <soapenv:Body> <ns4:getEventResponse xmlns:ns4="http://abc.com/rg/cc/standard/StandardCCService"> <ns4:return result="true"> <ns2:eventType xmlns:ns2="http://mitel.com/oig/cc">CALL_EVENT</ns2:eventType> <callEvent xmlns="http://abc.com/rg/cc" localCallId="2317" callEventTime="1560466816084" objectId="115916840915166"> *------------------<type>CALL_RECEIVED</type> *------------------<cause>NEW_CALL</cause> *------------------<callState>RECEIVED</callState> <callEventAttribute> <attributeName>CURRENT_GLOBAL_CALL_ID</attributeName> <attributeValue>9330E9CF9C423A070458</attributeValue> <attributeType>STRING</attributeType> </callEventAttribute> <callEventAttribute> <attributeName>DIALED_DIGITS</attributeName> *------------------ <attributeValue>104</attributeValue> <attributeType>STRING</attributeType> </callEventAttribute> <callEventAttribute> <attributeName>ICP_ID</attributeName> <attributeValue>2886886520</attributeValue> <attributeType>STRING</attributeType> </callEventAttribute> <featuresAllowed>ANSWER_CALL</featuresAllowed> <featuresAllowed>REDIRECT_CALL</featuresAllowed> <device> <deviceName>CALLED_DEVICE</deviceName> <deviceAttribute> <attributeName>NUMBER</attributeName> *------------------ <attributeValue>104</attributeValue> <attributeType>STRING</attributeType> </deviceAttribute> <deviceAttribute> <attributeName>NAME</attributeName> <attributeValue>name1</attributeValue> <attributeType>STRING</attributeType> </deviceAttribute> <deviceAttribute> <attributeName>DEVICE_TYPE</attributeName> <attributeValue>INTERNAL_DEVICE_TYPE</attributeValue> <attributeType>STRING</attributeType> </deviceAttribute> </device> <device> <deviceName>CALLING_DEVICE</deviceName> <deviceAttribute> <attributeName>NUMBER</attributeName> *------------------ <attributeValue>103</attributeValue> <attributeType>STRING</attributeType> </deviceAttribute> <deviceAttribute> *------------------ <attributeName>NAME</attributeName> <attributeValue>name2</attributeValue> <attributeType>STRING</attributeType> </deviceAttribute> <deviceAttribute> <attributeName>DIALED_DIGITS</attributeName> <attributeValue>104</attributeValue> <attributeType>STRING</attributeType> </deviceAttribute> <deviceAttribute> <attributeName>CALL_ID</attributeName> <attributeValue>2219</attributeValue> <attributeType>LONG_INTEGER</attributeType> </deviceAttribute> <deviceAttribute> <attributeName>DEVICE_TYPE</attributeName> <attributeValue>INTERNAL_DEVICE_TYPE</attributeValue> <attributeType>STRING</attributeType> </deviceAttribute> </device> </callEvent> </ns4:return> </ns4:getEventResponse> </soapenv:Body> </soapenv:Envelope>
Richard
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,867 Sep-12-2019, 07:52 AM
Last Post: miha1234
  Issues parsing the response from a request garnold 3 2,602 May-14-2019, 12:39 PM
Last Post: snippsat
  SOAP based webservice invoke mehrdadabedi 1 2,370 Mar-10-2019, 06:04 PM
Last Post: mlieqo
  How to retrieve and save attachments returned by SOAP web service ashwsrin 0 2,646 Feb-20-2019, 07:12 AM
Last Post: ashwsrin
  SOAP/XML input Help duguarun 0 2,517 Jun-08-2018, 10:20 AM
Last Post: duguarun
  extracting data from XML/SOAP hey_arnold 4 4,843 May-07-2018, 09:23 AM
Last Post: hey_arnold
  Soap json program rahul208in 5 3,914 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