November 30th, 2011, 07:16 AM
|
#1 (permalink)
|
|
Junior Member
Join Date: Oct 2011
Posts: 21
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
|
Give values to a web service
Hello all,
I'm building an app which connects to various web services via ksoap2. Most of the services provide some sort of response in the form of a string which I use in the app, however one of the services doesn't actually provide a response to be used it simply takes the inputted vales and the .net service updates the relevant DB tables.
Would the set up and call to the service be the same as to the other services that I get information back from? My code is as follows;
SoapObject Request =
new SoapObject(NAMESPACE, METHOD_NAME);
Request.addProperty(
"Sub_Seq",Sub_Seq);
Request.addProperty(
"Start_Time",startDate.toString());
Request.addProperty(
"End_Time",endDate.toString());
Request.addProperty(
"Status",Status_Id);
SoapSerializationEnvelope envelope =
new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.
dotNet = true;
envelope.setOutputSoapObject(Request);
aht =
new AndroidHttpTransport(URL);
try {
aht.call(SOAP_ACTION, envelope);
}
catch (Exception e)
{
e.printStackTrace();
}
|
|
|