Android using webservice NetBeans

1

I would like some information, examples or tutorials how to research and what to study to be able to develop this project. I have ready ja database and some web service components would like to know how to implement it on android.

    
asked by anonymous 18.08.2014 / 20:35

1 answer

2

You can use KSOAP .

Access is simple:

// Criar o objeto SOAP
SoapObject soap = new SoapObject(namespace, metodo);
//Setar parametros
soap.addPropoerty(nome, valor);
//Envelopar Requisição
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
            SoapEnvelope.VER11);

envelope.setOutputSoapObject(soap);

Then just call the service:

HttpTransportSE httpTransport = new HttpTransportSE(url);
httpTransport.call("", envelope);

I removed all this from this tutorial here . I suggest you read it if you have any questions.

    
18.08.2014 / 22:39