如何调用从BlackBerry模拟器.NET Web服务? [英] How to call a .NET web service from Blackberry Simulator?

查看:188
本文介绍了如何调用从BlackBerry模拟器.NET Web服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要调用从BlackBerry模拟器.NET Web服务(http://192.168.1.14/CG/authentication.asmx)。我已经在有Android版KSOAP2做了,但我不知道如何做到这一点的黑莓概念。我可以使用KSOAP2在黑莓?如果我能请给一些code片段。也请告诉我,你知道任何其他方式来做到这一点。

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 idea about how to do this in Blackberry. Can i use KSOAP2 in Blackberry? If i can please give some code snippets. Also please tell if you know any other ways to do this.

推荐答案

我没有用之前KSOAP2但我知道,你可以使用它的黑莓手机。

I've not used KSOAP2 before but I know that you can use it for Blackberry.

要叫我使用的Sun Java无线工具包(WTK)生成存根的Web服务从你的web服务的WSDL文件,这也许应该是 http://192.168.1.14/ CG / authentication.asmx?WSDL为你。

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.

您可以然后导入的WTK生成的文件到您的项目调用使用的线沿线的东西你的web方式:

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

这篇关于如何调用从BlackBerry模拟器.NET Web服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆