PerlのSOAP::Liteと互換性のある、またはもっとも似たように扱うことのできる
pythonのモジュールはありますでしょうか。
python 3.5.1
Django 1.10
下記のxmlを作成するのが目的となります。
sudsというモジュールを試してみましたが上手くいきませんでした。
ヒントでも十分ですのでよろしくお願いいたします。
xml
1<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sample_test_1" xmlns:stan="http://sample_test_2"> 2 <soapenv:Header> 3 <urn:AuthenticationInfo> 4 <urn:userName>SAMPLE</urn:userName> 5 <urn:password>SAMPLEPASSWORD</urn:password> 6 <!--Optional:--> 7 <urn:authentication></urn:authentication> 8 <!--Optional:--> 9 <urn:locale></urn:locale> 10 <!--Optional:--> 11 <urn:timeZone></urn:timeZone> 12 </urn:AuthenticationInfo> 13 </soapenv:Header> 14 <soapenv:Body> 15 <urn:testtesttesttest> 16 <stan:userName2>TESTTEST</stan:userName2> 17 <stan:password2>TESTTESTPASSWORD</stan:password2> 18 </urn:testtesttesttest> 19 </soapenv:Body> 20</soapenv:Envelope>
参考サイト:https://fedorahosted.org/suds/wiki/Documentation
よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。