web services - Calling a webservice through a mobile client -


i working phonegap , jquery mobile @ moment. want know whether there library can use or way call soap restful webservices mobile client. did lot of research , did not find can use. need write scratch?

thank you.

first forget soap, @ pure javascript point of view. on other hand if willing can use java create web service client side code. next step connect jquery , native java part of phonegap. can done if create own plugin.

then again if job there solution. same function used jquery rest call can used jquery soap call. more information can found in tutorial. warned, need write client side xml. still not great solution.

on other hand rather choose rest on soap. while soap great creates data overhead , need smallest possible data footprint. because phonegap html/js/css wrapper commonly used communicate via xhr/ajax. in our case it's better use jquery ajax functions. here can find excellent tutorial.

one great thing using $.ajax function inside phonegap app rest call don't need worry cross-domain calls.

there's third solution, rather hard best of them all. instead of using jquery $.ajax function should think using backbone mvc framework jquery mobile. take time master combination experience no. 1 solution if want use rest communicate server.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -