Skip to content Skip to sidebar Skip to footer

I Am Trying To Create An App In Android To Insert Data Into Sql Server Through A Web Service.

Hi guys I am new in android here m trying to save some data in sql server from android through a webservice. I have created a sample app in android and a webservice. I am getting a

Solution 1:

Sample code Which I used for .Net Web Service

SoapSerializationEnvelopeenvelope=newSoapSerializationEnvelope(SoapEnvelope.VER11);
    envelope.dotNet = true;
    envelope.setOutputSoapObject(webRequest);
    HttpTransportSEandroidHttpTransport=newHttpTransportSE(URL);


    androidHttpTransport.call(SOAP_ACTION + METHOD_NAME, envelope);
    Log.d("CheckLogin-SOAP ACTION", SOAP_ACTION + METHOD_NAME);
    SoapPrimitiveresponse= (SoapPrimitive)envelope.getResponse();
    Log.d("CheckLogin - Response", response.toString());

    status= Boolean.valueOf(response.toString());

Solution 2:

Check whether your jar file is ksoap2-android-assembly-2.4-jar-with-dependencies.jar and not ksoap2-j2me-core-2.1.2.jar file added into your android project.

Post a Comment for "I Am Trying To Create An App In Android To Insert Data Into Sql Server Through A Web Service."