View Single Post
Old 05-29-2007, 03:47 AM   #1 (permalink)
Knows Where the Search Button Is
Join Date: Jan 2007
Location: India
Model: 7230
Carrier: Airtel(india)
Posts: 18
Post Thanks: 0
Thanked 0 Times in 0 Posts
Post Need help in Calling webservice using Ksoap

Please Login to Remove!

Hello all,
I am developing a standalone application for calling webservice from blackberry. I am using ksoap-1.2 and blackberry JDE 4.0.2. Webservice is written in .NET.
My webservice client code looks like this:

Object response=null;
HttpTransport ht = new HttpTransport("","\"http://www.webserviceX.NET/GetCurrencyByCountry\""); SoapObject request = new SoapObject("","GetCurrencyByCountry");
System.out.println("Webservice response " + response.toString())

I get the following exception:
soap falut-soap:Server faultstring: System.Web.Services.Protocols.SoapException:Server was unable
to process request--->System.Data.SqlClient.SqlException:Procedure or function getCurrencyByCountry expects
parameter '@name' which was not supplied at CountryName)---
End of inner exception stack trace--'faultactor:'null' detaild:[EndTag </detail>]]

The exception tells that the required parameter is not passed.
But i am passing the parameter in the above code like this:


u can also check the webservice in the path mentioned in above code

Any help regarding this will be appreciated.

thanks in advance.