Error sending data via ksoap2 in jboss webservice

1

So I'm not able to send data via ksoap2 to android. The following error appears:

Ireallydidnotunderstandwhattheproblemwas,soIwenttothestack,becausethenamespaceisrightandtheactionisstillfollowingthecodeinandroid:

SoapObjectsoapObject=newSoapObject(NAMESPACE,"inserirCoord");

    PropertyInfo infoPrest = new PropertyInfo();
    infoPrest.setName("idPrestador");
    infoPrest.setValue(idPrestador);
    infoPrest.setType(PropertyInfo.INTEGER_CLASS);
    soapObject.addProperty(infoPrest);
    soapObject.addProperty("latitude",latitude);
    soapObject.addProperty("longitude",longitude);

    SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);


    envelope.dotNet = true;
    envelope.implicitTypes = true;
 //   envelope.encodingStyle = SoapSerializationEnvelope.XSD;
    envelope.setOutputSoapObject(soapObject);


   /* MarshalDouble md = new MarshalDouble();
    md.register(envelope);*/

    HttpTransportSE transportSE = new HttpTransportSE(transport);

    try
    {
        transportSE.call("inserirCoord",envelope);
        SoapObject resultado = (SoapObject) envelope.getResponse();

        return Boolean.parseBoolean(resultado.toString());
    }
    catch(Exception ex)
    {
         erro = ex.toString();
        return false;
    }
    
asked by anonymous 03.01.2017 / 13:14

0 answers