Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
maniBB
Posts: 95
Registered: ‎07-24-2013
My Device: 9380
My Carrier: Airtel

How to pass int value with SoapObject request

Hi all,

 

      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??

 

Best Regards.

Please use plain text.
Developer
simon_hain
Posts: 16,001
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: How to pass int value with SoapObject request

[ Edited ]

Edit: Oops, replied for bb10.

 

on bb java that depends on what method you use. stubs? ksoap?

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
maniBB
Posts: 95
Registered: ‎07-24-2013
My Device: 9380
My Carrier: Airtel

Re: How to pass int value with SoapObject request

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);
.
.
.
.
.

 

Please use plain text.
Developer
maniBB
Posts: 95
Registered: ‎07-24-2013
My Device: 9380
My Carrier: Airtel

Re: How to pass int value with SoapObject request

Need help...   :Helpsmilie:

Please use plain text.
Developer
maniBB
Posts: 95
Registered: ‎07-24-2013
My Device: 9380
My Carrier: Airtel

Re: How to pass int value with SoapObject request

Can anyone please suggest me how to call this dot net webservice with HTTP POST request in this case? 

 

Warm Regards.

Please use plain text.
Developer
maniBB
Posts: 95
Registered: ‎07-24-2013
My Device: 9380
My Carrier: Airtel

Re: How to pass int value with SoapObject request

Need help...   :Helpsmilie:

Please use plain text.