J2ME Web Service Providers - web-services

I have read that it is possible to send HTTP/SOAP messages to web service using kSOAP. But is it possible in a J2ME app to receive HTTP/SOAP messages? I.e. the mobile app acting like a web service provider? How is it done?
Thanks

This tutorial shows you how it can be done, but by the looks of it, you are just mimicking a webserver.

Related

How to secure a RESTFUL php webservice?

I am developing an apple app which talks to a restful PHP web service.
Ideally i want this web service password protected.
What is the best way of achieving this,
Is it better to use a technique similar to OAUTH or is it over kill?
Or is it better to send user password and username in server each command and check its legit before caring out each individual command.
Thanks
It depends on the client. If the client is 3rd party, then it needs an OAuth like solution with access tokens. If the developer of the service and the client is the same, then the basic auth approach is enough. Ofc. you have to use encrypted connection.

how do i secure a JAX-RS backend that uses Angular js client

I'm almost done with a jax-rs webservice so currently I'm now working on security part, I have read several articles on implementation of jaas and jdbc realm roles. some how no one seems to talk about authenticating a user from a remote angular js client.
Assuming i set my roles in jdbc/realm and configure my web.xml file ,can i do this?
<form-login-config>
<form-login-page>+"http://54.200.2.152:8080/service/index.html+"</form-login-page>
<form-error-page>+"http://54.200.2.152:8080/service/error.html+"</form-error-page>
</form-login-config>
to re-direct to the remote angular-js client? and if i do that,how to i maintain the js_securitycheck session id? (meanwhile; sessioning is against rest principles, which is stateless .
Also, is <auth-method>BASIC</auth-method> preferable for using a remote angular-js client? sending basic64 code and how do I implement this?

How to Secure mobile web-service and its content?

I have a web-service which is used to create entries in the Database hosted by GoDaddy and the web-service are written in .net and this web-service or url will be only used in the Mobile Platforms like IOS and Android.
Now I have few questions?
1>How can I secure my URL(web-service) and its content from getting exposed?
Currently I have used post method so that I can hide the parameters but still I fear the URL might be hacked so please suggest a way to secure.
2>Regarding the contents I want to encrypt the data and send to server and in server side it will be decrypted .
Now please suggest me an algorithm or code which can be used across platform like IOS,Android , .Net
Thanks and Regards,
Anil
Use HTTPS
Use login/password auth (no access at all without login and
password)

Restful web service, authenticating a request

Am a novice, making a web service on eclipse. Am looking for a way to authenticate requests. A tutorial on how to go about this step by step-both client and server ends- would be most welcome. Thanks.

where to publish web service?

Where we need to deploy or publish wsdl so that consumer can get the service?
On a Web Server that the consumer is able to access.
If you're not ready to publish anything to the server yet, you could also simply send them the WSDL file (via email, etc.) so they can start developing against it without having the services ready to be called.