views:

482

answers:

2

Hi Friends,

What is way to connect to SOAP based web service from Blackberry Application. Every one is using KSoap Library. Is there no native support in Blackeberry SDK to connect to webservice.?

A: 

I use the Java Sun Wireless Toolkit 2.5.2 to generate method stubs from your webservice using your webservices' wsdl file.

You can then call your webservice using the generated files, the syntax will be something like:

WebServiceSoap_Stub stub = new WebServiceSoap_Stub();
String result = stub.webMethod(param1, param2);
Fermin
Hi Fermin,I did not try this option, instead used HttpConnecttion available as part of Java. Thanks for your suggestion.
Krishnan
A: 

I used HttpConnecttion to solve the problem I had.

Krishnan