00001 test01 = '''<SOAP-ENV:Envelope 00002 xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 00003 SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> 00004 <!-- foo foo-pi --> 00005 <SOAP-ENV:Body> 00006 <m:GetLastTradePriceResponse xmlns:m="Some-URI"> 00007 <Price>34.5</Price> 00008 </m:GetLastTradePriceResponse> 00009 </SOAP-ENV:Body> 00010 </SOAP-ENV:Envelope>''' 00011 00012 test02 = '''<SOAP-ENV:Envelope 00013 xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 00014 SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> 00015 <SOAP-ENV:Header> 00016 <t:Transaction 00017 actor="foobar" 00018 xmlns:t="some-URI" 00019 SOAP-ENV:mustUnderstand="1"> 00020 5 00021 </t:Transaction> 00022 </SOAP-ENV:Header> 00023 <SOAP-ENV:Body> 00024 <m:GetLastTradePrice xmlns:m="Some-URI"> 00025 <symbol>DEF</symbol> 00026 </m:GetLastTradePrice> 00027 </SOAP-ENV:Body> 00028 </SOAP-ENV:Envelope>''' 00029 00030 test03 = '''<SOAP-ENV:Envelope 00031 xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 00032 SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> 00033 <SOAP-ENV:Body> 00034 <m:GetLastTradePriceDetailed 00035 xmlns:m="Some-URI"> 00036 <Symbol>DEF</Symbol> 00037 <Company>DEF Corp</Company> 00038 <Price>34.1</Price> 00039 </m:GetLastTradePriceDetailed> 00040 </SOAP-ENV:Body> 00041 </SOAP-ENV:Envelope>''' 00042 00043 test04 = '''<SOAP-ENV:Envelope 00044 xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 00045 SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 00046 xmlns:xsi='xmlschemainstance'> 00047 <SOAP-ENV:Header> 00048 <t:Transaction xmlns:t="some-URI" xsi:type="xsd:int" mustUnderstand="1"> 00049 5 00050 <nested mustUndertand="1"/> 00051 </t:Transaction> 00052 </SOAP-ENV:Header> 00053 <SOAP-ENV:Body> 00054 <m:GetLastTradePriceResponse xmlns:m="Some-URI"> 00055 <m:Price>34.5</m:Price> 00056 </m:GetLastTradePriceResponse> 00057 </SOAP-ENV:Body> 00058 </SOAP-ENV:Envelope>''' 00059 00060 test05 = '''<SOAP-ENV:Envelope 00061 xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 00062 SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> 00063 <SOAP-ENV:Body> 00064 <m:GetLastTradePriceResponse 00065 xmlns:m="Some-URI"> 00066 <PriceAndVolume> 00067 <LastTradePrice> 00068 34.5 00069 </LastTradePrice> 00070 <DayVolume> 00071 10000 00072 </DayVolume> 00073 </PriceAndVolume> 00074 </m:GetLastTradePriceResponse> 00075 </SOAP-ENV:Body> 00076 </SOAP-ENV:Envelope>''' 00077 00078 test06 = '''<SOAP-ENV:Envelope 00079 xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 00080 SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> 00081 <SOAP-ENV:Body> 00082 <foo/> 00083 <m:GetLastTradePriceResponse xmlns:m="Some-URI"> 00084 <Price>34.5</Price> 00085 </m:GetLastTradePriceResponse> 00086 </SOAP-ENV:Body> 00087 </SOAP-ENV:Envelope>''' 00088