J2ME Web服务 [英] J2ME WebServices

查看:81
本文介绍了J2ME Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了J2me应用程序(原型),现在我必须向其中添加用.Net编写的Web服务.

I have created J2me application (prototype) and now I have to add web services to it which are written in .Net.

该怎么做?我正在寻找开发j2me客户端的过程,在该过程中我可以传递类似于.Net Web服务中的参数.

How to do that? I'm looking for the procedure for developing j2me client in which I can pass parameters which are similar as in .Net web service.

推荐答案

正如sreehari解释的那样,首先,您需要具有JAX-RPC API才能将其包含在您的项目中.完成此操作后,接下来就是如何调用Web服务"了.

As the sreehari explained, first you need to have JAX-RPC API to include in your project. Once you have done that, the next thing comes, How to call web service.

可以使用Java(servlets),PHP或.net之类的任何语言创建Web服务,我已经使用了这三种语言.用于Java&PHP可以直接调用Web服务,而.net则需要创建存根.

Web Service can be created in any language like Java ( servlets ), PHP or .net, I have worked with all these three. for Java & PHP you can directly call the web-service, while for .net you need to create stubs.

创建存根的步骤.一旦创建了这些存根,就可以像在代码中调用其他方法并传递参数(如有必要)一样简单地调用它.

Steps to create stubs. Once you create these stubs, you can simply call it like you call other methods in code and pass the argument ( if necessary ).

还要看看这个问题如何在J2ME应用程序中使用Web服务?

这篇关于J2ME Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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