I have a wsdl service and as i generate it with svcutil.exe, it gave me a .cs file. Now my question is how can I call the service with javascript for android. where do I go from here? any suggestions or any reference/step-by-step tutorial or a sample demo would be a great help for me. I am developing an application for android with phonegap 1.4.1, Many thanks.
This tutorial describe how to call a webservice directly from javascript:
http://www.ibm.com/developerworks/webservices/library/ws-wsajax/
Related
I just started learning Phonegap.
I went through this tutorials .
Now I got one question in my little mind..
I just want to know what are the tasks can not be done using phonegap for Android.
I searched a lot on this question but I found this kind solutions on pros and cons of phonegap, and those are not answers to satisfy my mind.
please anybody provide relevant solution.
Thank you in advance :)
In very simple words PhoneGap based on a native WebView with some Cordova API (A javascript bridge).
That means that you can call functions from the WebView to your native code and in oposite direction.So that means that you can do anything that the native can do.
Because you question is too abstract I would say again that you can do anything like native, but for functionality that is not appear in Cordova API you will need to implement buy yourself (native) using Javascript bridge (for Android and IOS).
I hope that satisfy your mind.
I need to run a java code for Android inside Rhomobile app. Is there any way i can call the java code. I have seen some of the plugins to interact with native codes for Android.
I tried searching and i did get to this url http://docs.rhomobile.com/rhoconnect/plugin-intro.
But i guess this is not for Rhomobile if i'm not wrong.
I have a library file for my requirement. Is there any way i can use it ?
Yes you can. Have a look at this http://docs.rhomobile.com/rhodes/extensions#native-extensions
The link you get is for RhoConnect ( basically meant for sync operation). You need to look into the native extension for Android : Rewriting the Generated Native Extension Source Code for Android
If you need some more help and support, you can go over
https://developer.motorolasolutions.com/
https://groups.google.com/forum/#!forum/rhomobile
You can also simply post you query here and tag Rhomobile & Rhodes.
Hope this might help you.
i am new to Android development
i have a web service made in php now i want to consume it in android can any one guide me how to achieve this..???
i have tried many code samples on net but failed to achieve this goal.
i am using Eclipse with ADT.
any help would be appriciated.
Kindly go through the following link. you will find code examples here
http://www.anddev.org/calling_a_web_service_from_android-t348.html
Android is developed using Java platform. what you should do is create a WebService and expose the WSDL via HTTP.
write your java program calling this Webservice.
its easier and simpler.
How to call a webservice from javascript on android?
My html file is in assest/www folder.
so - you would like to call AJAX web service from the JavaScript in a web page? This is not dependent (or almost not) on the used web browser. The same JavaScript code will work on Android, iPhone or desktop browser.
For good AJAX tutorial see there: http://www.peachpit.com/articles/article.aspx?p=425820
BR
STeN
This will help you: What's the difference between JavaScript and Java? You can't run Javascript in an Android Application!
i am using a WSClient++ Java for Android project to generate the classes of my webservice but the version is the trial soo the program only generate two methods. My webservice have only one but miss some classes after generating. Anyone knows other software like this?
thanks
I think you can use DOM t generate your xml from WS. (http://www.w3schools.com/dom/default.asp)
Also, generate the Web service using simple java program with the help of Apache tomcat and Axis2. (http://www.eclipse.org/webtools/jst/components/ws/1.5/tutorials/BottomUpWebService/BottomUpWebService.html)
Then call these Web Service in Android using kSAOP library.
Regards,
Sneha