J2ME Web服务

编程入门 行业动态 更新时间:2024-10-11 21:30:37
本文介绍了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或之类的任何语言创建Web服务,我已经使用了这三种语言.用于Java&PHP可以直接调用Web服务,而则需要创建存根.

Web Service can be created in any language like Java ( servlets ), PHP or , I have worked with all these three. for Java & PHP you can directly call the web-service, while for 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服务

本文发布于:2023-11-27 22:47:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1639922.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:J2ME   Web

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!