• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

contrib/opal/ZSI/test/tests_bad.py

00001 test01 = '''<SOAP-ENV:Envelope foo='bar'
00002   xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
00003   SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
00004    <SOAP-ENV:Body>
00005        <m:GetLastTradePrice xmlns:m="Some-URI">
00006            <symbol>DIS</symbol>
00007        </m:GetLastTradePrice>
00008    </SOAP-ENV:Body>
00009 </SOAP-ENV:Envelope>'''
00010 
00011 test02 = '''<SOAP-ENV:Envelope
00012   xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
00013 <SOAP-ENV:Header>
00014    <t:Transaction xmlns:t="some-URI" SOAP-ENV:mustUnderstand="1">
00015           5
00016    </t:Transaction>
00017 </SOAP-ENV:Header>
00018 <SOAP-ENV:Body/>
00019 </SOAP-ENV:Envelope>'''
00020 
00021 test03 = '''<SOAP-ENV:Envelope
00022   xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
00023    <SOAP-ENV:Body>
00024        <SOAP-ENV:Fault>
00025            <faultcode>SOAP-ENV:MustUnderstand</faultcode>
00026            <faultstring>SOAP Must Understand Error</faultstring>
00027            <?MYPI spenser?>
00028        </SOAP-ENV:Fault>    
00029    </SOAP-ENV:Body>
00030 </SOAP-ENV:Envelope>'''
00031 
00032 test04 = '''<SOAP-ENV:Envelope fooattr='bar'
00033   xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
00034    <SOAP-ENV:Body>            
00035        <SOAP-ENV:Fault>
00036            <faultcode>SOAP-ENV:Server</faultcode>
00037            <faultstring>Server Error</faultstring>
00038            <detail>
00039                <e:myfaultdetails xmlns:e="Some-URI">
00040                  <message>
00041                    My application didn't work
00042                  </message>
00043                  <errorcode>
00044                    1001
00045                  </errorcode>
00046                </e:myfaultdetails>
00047            </detail>
00048        </SOAP-ENV:Fault>
00049    </SOAP-ENV:Body>
00050 </SOAP-ENV:Envelope>'''
00051 
00052 test05 = '''<SOAP-ENV:Envelope
00053   xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
00054   SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
00055    <SOAP-ENV:Body></SOAP-ENV:Body>
00056    <SOAP-ENV:Body></SOAP-ENV:Body> 
00057 </SOAP-ENV:Envelope>'''
00058 
00059 test06 = '''<SOAP-ENV:ChemicalX
00060   xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
00061   SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
00062    <SOAP-ENV:Body></SOAP-ENV:Body>
00063    <SOAP-ENV:Body></SOAP-ENV:Body>
00064 </SOAP-ENV:ChemicalX>'''
00065 
00066 test07 = '''<SOAP-ENV:Envelope
00067   xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
00068   SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
00069    <SOAP-ENV:Body></SOAP-ENV:Body>
00070    <SOAP-ENV:Header></SOAP-ENV:Header>
00071 </SOAP-ENV:Envelope>'''
00072 
00073 test08 = '''<SOAP-ENV:Envelope
00074   xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
00075   SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
00076    <SOAP-ENV:zBody></SOAP-ENV:zBody>
00077 </SOAP-ENV:Envelope>'''
00078 
00079 test09 = '''<SOAP-ENV:Envelope
00080   xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
00081   SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
00082    <SOAP-ENV:Header></SOAP-ENV:Header>
00083    <SOAP-ENV:Header></SOAP-ENV:Header>
00084    <SOAP-ENV:Body></SOAP-ENV:Body>
00085 </SOAP-ENV:Envelope>'''
00086 
00087 test10 = '''<SOAP-ENV:Envelope
00088   xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
00089   SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
00090    <SOAP-ENV:Header></SOAP-ENV:Header>
00091    <SOAP-ENV:Body></SOAP-ENV:Body>
00092    <SOAP-ENV:Header></SOAP-ENV:Header>
00093 </SOAP-ENV:Envelope>'''
00094 
00095 test11 = '''<SOAP-ENV:Envelope
00096   xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
00097   SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
00098    <SOAP-ENV:Header></SOAP-ENV:Header>
00099    <SOAP-ENV:Body></SOAP-ENV:Body>
00100    <m:data xmlns:m="data-URI">
00101        <symbol>DEF</symbol>
00102    </m:data>
00103 </SOAP-ENV:Envelope>'''
00104 
00105 test12 = '''<SOAP-ENV:Envelope
00106   xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
00107   SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
00108    <SOAP-ENV:Header></SOAP-ENV:Header>
00109    <SOAP-ENV:Body></SOAP-ENV:Body>
00110    <m:data xmlns:m="data-URI">
00111        <?PIE?>
00112        <symbol>DEF</symbol>
00113    </m:data>
00114 </SOAP-ENV:Envelope>'''
00115 
00116 test13 = '''<SOAP-ENV:Envelope
00117   xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
00118   SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
00119    <?xoo?>
00120    <SOAP-ENV:Header></SOAP-ENV:Header>
00121    <SOAP-ENV:Body></SOAP-ENV:Body>
00122    <m:data xmlns:m="data-URI">
00123        <symbol>DEF</symbol>
00124    </m:data>
00125 </SOAP-ENV:Envelope>'''
00126 

Generated on Wed Oct 20 2010 11:12:16 for APBS by  doxygen 1.7.2