How can i add Custom [call back] string in android request?
Below is my code for call soap webservice in android and get a json response. How can i pass call back=?callback=jQuery15
in android?
Any idea about the same how can I include a callback-jquery15
parameters in url?
private static String SOAP_ACTION1 = "http://www.example.com/NewsServices/AuthenticateApplication";
private static String NAMESPACE = "http://www.example.com/NewsServices/";
private static String METHOD_NAME1 = "AuthenticateApplication";
private static String URL = "http://www.example.com/services/webServices/MobileServices/exampleMobilejson.asmx";
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME1);
request.addProperty("xyz", "xyzaa");
request.addProperty("abc", "abcxx");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
SoapEnvelope.VER11);
envelope.setOutputSoapObject(request);
envelope.dotNet = true;
try {
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
androidHttpTransport.call(SOAP_ACTION1, envelope);
SoapObject result = (SoapObject) envelope.bodyIn;
Toast.makeText(getApplicationContext(), result.toString(),
Toast.LENGTH_LONG).show();
txtCel.setText(result.getProperty(0).toString());
but my problem is my webservice accept parameters with call back how can i use for ex:
http://www.example.com/services/webServices/MobileServices/exampleMobileJson.asmx/AuthenticateApplication?callback=jQuery15&xyz=xyzaa&abc=abcxx