How to call a .NET web service from Blackberry Simulator?

前端 未结 3 1524
孤城傲影
孤城傲影 2020-12-17 04:54

I have to call a .NET web service (http://192.168.1.14/CG/authentication.asmx) from the Blackberry Simulator. Already i have done it in Android with KSOAP2, but i have no id

相关标签:
3条回答
  • 2020-12-17 05:27

    You can look at WSClient++ which generates code that is free from reflection and ideal for mobile platforms.

    0 讨论(0)
  • 2020-12-17 05:38

    I've 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 generate stubs from your webservice's 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 along the lines of:

    //Generated stub file
    Service1Soap_Stub stub = new Service1Soap_Stub();
    
    //Web service method
    result = stub.methodName(param1, param2);
    
    0 讨论(0)
  • 2020-12-17 05:41

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

    0 讨论(0)
提交回复
热议问题