J2ME WebServices

寵の児 提交于 2019-12-12 14:49:22

问题


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

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.


回答1:


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.

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

Also look at this quetsion How to use web service in J2ME application ?




回答2:


You will need to use JAX-RPC API to create client for Web services. It doesn't matter in which language the service is implemented. I am not sure on limitations from a J2ME perspective.



来源:https://stackoverflow.com/questions/11539982/j2me-webservices

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!