Ksoap2发送一个带有属性类型的抽象类



我在黑莓上创建Ksoap2请求时遇到了问题,我必须创建以下XML:

<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的子类

有人知道怎么做吗?

谢谢

我认为问题是关于发送复杂对象。

你可以在以下网站找到更多的信息:http://seesharpgears.blogspot.com/2010/10/ksoap-android-web-service-tutorial-with.html

总之,您的PolizaVinculada必须实现KvmSerializable接口,然后将映射添加到Soap信封。

Saludos .

最新更新