I'm trying to create a WCF (web service) in order to connect a oracle data base server and use it on a android app. Could someone tell me which language is the best in order to create a WCF? I know visual basic .Net is good for it. Is there other langague for it? And could someone show me a good tutorial in order to create this WCF? I don't want to create a ASMX, I think WCF is better.
Please Help!
Thanks in advance.
I'm not sure whether categorizing one vs. other as best is the right way to think about it. There is a ton of code out there written in both languages. Personally and because of my background - I use c# and all the .NET jobs I've had over the years have required c# knowledge and not VB.NET.
That being said - you can implement a WCF service in either language.
I'm sure you have investigated what WCF is. If not - you can start here: https://msdn.microsoft.com/en-us/library/ms731082(v=vs.110).aspx
The following tutorial should get you started:
http://www.tutorialspoint.com/wcf/
You will need a .NET library that allows you to connect to an Oracle Database. One that I've used is the Oracle Data Provider for .NET which is from Oracle.
http://www.oracle.com/technetwork/topics/dotnet/index-085163.html
Related
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.
I am looking to create a simple service to learn calling a service from android.
What I want to do is an app to call a system over the web provide some parameters and the system respond. Very simple (hopefully)
But I want to build both ends.. not just the android end.
What tools would the community recommend that are industry standard and hopefully easily accessible.
I am hoping TomCat can do the hosting, but don't know if this should be a JSP or EE application.
Can anyone point me to an email of setting this up, again with both sides.
Hopefully Tomcat is a decent enough server to be both easy to setup and robust enough if enough calls are made to it.
Once that is done then I only need to do the android portion with Ksoap or anything else that is recommended.
Thanks in advance and I hope this is not too general a question.
I recommend using Apache CXF for a server. It does pretty much everything that you need in a web service. It does have a client part, but so far, I have implemented web services on Android myself, rather than using libraries. But that was a while ago, maybe today libs are better customized for Android.
i am making a project to help restaurant order system.. so the cashier using application build in visual basic 2010, and the waiter/waitress will use android as a Menu Book and they will sent data order to the server.
my problem is : i want to transfer my data which in database in visual basic (.mdf) to gadget android via wifi. so far, i was able to transfer string from android to VB 2010 via TCP socket.
please help to about the concept or best way to transfer database via wifi, a book / reference or some tutorial with a simple code will good :)
database in visual basic and in Android have the same structure :)
you can make a local web service and use ksoap 2 library to do that. Its my opinion for the best way..
and here is the tutorial http://seesharpgears.blogspot.com/2010/10/ksoap-android-web-service-tutorial-with.html
HeyHo,
which opportunities do I have to implement a client-server architecture for an android application. I simply want to transmit results from my database server to my application. I was researching on the internet and found different solutions but I ain't sure which one fits the best and is the simplest one:
- XML-RPC
- RESTlet
- REST + JSON
Maybe there is even a more simple way to do this and I haven't considered it yet.
Thanks for your helpful answers in advance
Cheers
Ei.Schinken
AFAIK, Rest+JSon is best option and simple to do and there are lot of references available for help.
Depends on yout server architecture, for example We have here a Mysql database with PHPmyadmin, so I'm using Json with PHP, and works fine for me.
I want to build a server that communicates with an android phone
based on a request/response model
At first i thought i will use Httpservlets and communicate with the android
by Http messages. but i need to be able to access a pretty big object with every
request so i guess i cant really transfer the object to the servlet.
so i know this is a pretty newbish question but iv'e been searching for days
what kind of java EE tech should i use(i thought of EJB but as i understand they cant communicate with android)?
Thanks in advance
I think the right question is how to implement service layer for your android application:
Basically there are two options REST based web services and SOAP. Android's support for SOAP is inadequate and I personally prefer REST over soap any day. If you have decided to go with REST, your options in Java are Jersey, RESTlets or Spring Rest services. I will prefer Jersey, but you can also look in to Spring ( although not strictly complaint with the JSR).
(note: look in "SO" for comparison on various rest based frameworks in Java)