2016-06-22 9 views
0

私はSpyneに、このような出力を必要とする:PythonのSpyneカスタム出力パラメータ

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
    <soapenv:Body> 
     <getActiveServicesResponse xmlns="http://mci.tajmi.ir/"> 
      <getActiveServicesReturn>12345:2030:hafez poem:hafez </getActiveServicesReturn> 
      <getActiveServicesReturn>12346:2031:شعر طنز:tanz </getActiveServicesReturn> 
      <getActiveServicesReturn>bardari123:203861:سرویس بارداري :bar 
</getActiveServicesReturn> 
     </getActiveServicesResponse> 
    </soapenv:Body> 
</soapenv:Envelope> 

私は何を生成することができます

<?xml version='1.0' encoding='UTF-8'?> 
<soap11env:Envelope xmlns:soap11env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="http://mci.tajmi.ir/"> 
    <soap11env:Body> 
     <tns:getActiveServicesResponse> 
      <tns:getActiveServicesReturn> 
       <tns:string>12345:2030:hafez poem:hafez</tns:string> 
       <tns:string>12346:2031:شعر طنز:tanz </tns:string> 
       .... 
      </tns:getActiveServicesReturn> 
     </tns:getActiveServicesResponse> 
    </soap11env:Body> 
</soap11env:Envelope> 

がどのように出力をカスタマイズすることができますか?私は成功せずに複雑な方法を試みた。

+0

あなたのスピンコードも追加してください –

答えて

関連する問題