python - Convert Soap response in an array -
i want convert soap response in array , response follows :
<?xml version="1.0" ?> <s:envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:header> <h:serverversioninfo ......../> </s:header> <s:body> <m:finditemresponse .......> <m:responsemessages> <m:finditemresponsemessage responseclass="success"> <m:responsecode>noerror</m:responsecode> <m:rootfolder includeslastiteminrange="false" indexedpagingoffset="2" totalitemsinview="3"> <t:items> <t:contact> <t:itemid changekey=".." id="....."/> <t:parentfolderid changekey="aqaaaa==" id="aqmkadc5y2vimmy5ltu0otkaltq1nmitodu0os02zdc4zjzmnzm3mzialgaaa71jnmeneaton4h7ntp3seubamkdzxyqlfpdkrbrsnvglroaaaibdwaaaa=="/> <t:itemclass>ipm.contact</t:itemclass> <t:subject>teting kk dev</t:subject> <t:sensitivity>normal</t:sensitivity> <t:datetimereceived>2013-10-04t11:05:39z</t:datetimereceived> . . . . <t:emailaddresses> <t:entry key="emailaddress1">test@test.com</t:entry> </t:emailaddresses> <t:surname>dev</t:surname> </t:contact> <t:contact> . . . . . </t:contact> </t:items> </m:rootfolder> </m:finditemresponsemessage> </m:responsemessages> </m:finditemresponse> </s:body> </s:envelope>
i want things inside array if want use subject , can access arr['subject'] , returns testing kk dev.
so please suggest me way . thanks
Comments
Post a Comment