我已经创建了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服务
发布评论