2011-12-07 54 views
0

我在創建從Ksoap2黑莓的請求的問題屬性類型一個抽象類,我要創建下面的XML:ksoap2發送具有

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pol="http://osde.com.ar/services/binaria/personas/poliza" xmlns:bin="http://binaria.entities.osde.com.ar" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> 
    <soapenv:Header/> 
    <soapenv:Body> 
     <pol:getPoliza> 
     <!--Optional:--> 
     <pol:polizaVinculada i:type="bin:PolizaVinculadaVIT"> 
      <bin:idPoliza>49116</bin:idPoliza> 
      <bin:idSolicitud>30261352</bin:idSolicitud> 
     </pol:polizaVinculada> 
     </pol:getPoliza> 
    </soapenv:Body> 
</soapenv:Envelope> 

隨着i:type="bin:PolizaVinculadaVIT",作爲polizaVinculada一個抽象類和PolizaVinculadaVITPolizaVinculada的子類

有沒有人知道如何做到這一點?

謝謝

回答

相關問題