How to call .NET web service from Blackberry Simulator?

I need to call the .NET web service ( http://192.168.1.14/CG/authentication.asmx ) from Blackberry Simulator. I already did this on Android with KSOAP2, but I have no idea how to do this on Blackberry. Can I use KSOAP2 on Blackberry? If I can give some snippets of code. Also, please let us know if you know of any other ways to do this.

+4
source share
3 answers

I have not used KSOAP2 before, but I know that you can use it for Blackberry.

To call web services, I use the Sun Java Wireless Toolkit (WTK) to create stubs from your webservice WSDL file, which should probably be http://192.168.1.14/ CG / authentication.asmx? wsdl for you.

You can then import the files that the WTK generates into your project to call your web methods using something in the following lines:

//Generated stub file Service1Soap_Stub stub = new Service1Soap_Stub(); //Web service method result = stub.methodName(param1, param2); 
+3
source

Alternatively, you can use SAX and standard J2ME libraries. The following link is a good tutorial on how to do this: http://www.simplified-tech.com/website/webapp.nsf/webpages/ArticlesBBWebServices

+1
source

You can watch WSClient ++ , which generates reflection-free code that is ideal for mobile platforms.

0
source

All Articles