<WL5G3N0:operation name="RegionList">
<WL5G3N0:input>
<WL5G3N41:body use="literal"/>
</WL5G3N0:input>
<WL5G3N0:output>
<WL5G3N41:body use="literal"/>
</WL5G3N0:output>
</WL5G3N0:operation>
<WL5G3N0:service name="SiKWebServiceBindingQSService">
<WL5G3N0:port binding="WL5G3N40:SiKWebServiceBinding" name="SiKWebServiceBindingQSPort">
</WL5G3N0:port>
</WL5G3N0:service>
</WL5G3N0:definitions>
<Body>
<P_TB_PROVINCIAS>
<P_TB_PROVINCIAS_ITEM>
<CODIGO>1</CODIGO>
<DESCRIPCION>CAPITAL FEDERAL</DESCRIPCION>
<MARCA_AUX xsi:nil="true"/>
</P_TB_PROVINCIAS_ITEM>
<P_TB_PROVINCIAS_ITEM>
<CODIGO>2</CODIGO>
<DESCRIPCION>BUENOS AIRES</DESCRIPCION>
<MARCA_AUX xsi:nil="true"/>
</P_TB_PROVINCIAS_ITEM>
<P_TB_PROVINCIAS_ITEM>
<CODIGO>3</CODIGO>
<DESCRIPCION>CATAMARCA</DESCRIPCION>
<MARCA_AUX xsi:nil="true"/>
</P_TB_PROVINCIAS_ITEM>
</P_TB_PROVINCIAS>
<P_COD_ERROR>success</P_COD_ERROR>
<P_MSG_ERROR xsi:nil="true"/>
</OutputParameters>
</Body>
</Envelope>
My Android code:
I created a class called InputParameters:
public class InputParameters implements KvmSerializable {
@Override
public Object getProperty(int index) {
return null;
}
@Override
public int getPropertyCount() {
return 0;
}
@Override
public void getPropertyInfo(int index, @SuppressWarnings("rawtypes") Hashtable arg1, PropertyInfo info) {
}
@Override
public void setProperty(int index, Object value) {
}
}
After, I'm using InputParameters as Complex type:
InputParameters param = new InputParameters();
PropertyInfo inputPropertyInfo = new PropertyInfo();
inputPropertyInfo.setName("InputParameters");
inputPropertyInfo.setValue(param);
inputPropertyInfo.setNamespace("lis");
inputPropertyInfo.setType(param.getClass());
request.addProperty(inputPropertyInfo);
SoapSerializationEnvelope soapEnvelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
soapEnvelope.setOutputSoapObject(request);
soapEnvelope.implicitTypes = true;
HttpTransportSE _ht = new HttpTransportSE(this.url);
_ht.debug = true;
_ht.reset();
OutputParameters output = soapEnvelope.getResponse();
But, output = null, and soapEnvelope.bodyIn = null. I'm not sure if it is correct to think that I need to pass to request a complexType or not. Nor, do I know how to access the OutputParameters from soapEnvelope.bodyIn or soapEnvelope.getResponse()
I will be grateful for any help you can provide
Regards