10-11-2013 06:51 AM
I want to pass values with SoapObject request to a dot net web service. I have successfully called and got the response returned previously. But problem with this webservice is that it is expecting 3 parameters out of which first one is String, Second one is int and third one is again String. How can i pass this int value with the request??
10-11-2013 07:13 AM - edited 10-11-2013 07:16 AM
Edit: Oops, replied for bb10.
on bb java that depends on what method you use. stubs? ksoap?
10-11-2013 07:22 AM
Thanks for replying Simon.
I am using ksoap2. Posting my part of code...
. . . . httpConn = (HttpConnection)connDesc.getConnection(); HttpTransport httpt = new HttpTransport(Constants.URL + ";deviceside=true"); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); SoapObject request = new SoapObject(Constants.NAMESPACE, METHOD_NAME); request.addProperty("strCinemaCode", strCinemaCode); request.addProperty("lngSessionId", lngSessionId); //request.addProperty("lngSessionId", String.valueOf(lngSessionId)); request.addProperty("strAreaCode", strAreaCode); envelope.setOutputSoapObject(request); httpt.call(SOAP_ACTION, envelope); . . . . .