views:

62

answers:

3

I have to write client program in C# that have to take some data from DB and sent it to my Google application(Java). How can I do that? What is the best way to do that?

It'll be great if there be some code example in answers.

A: 

You need to create a web service in your app engine app that would take post data and consume it.

Preferably Use a web service framework otherwise you will have to do a lot of xml parsin yourself, which is baaed. mmmkay

Now I dont know if ur using py or java, but do look for a web service framework in ur language. mmkay

Midhat
A: 

With Python,you have more than one choice to implement a web service on Google App Engine:

  1. SOAP

  2. XML-RPC

  3. REST

Once server is deployed and ready to receive data, you should use the corresponding client C# technology to send your data to the server.

  1. C# SOAP client

  2. C# XML-RPC client

  3. C# REST client

EDIT: You have JAVA constraint. Using Java you don't have many choices (RPC and SOAP libraries are not whitelisted yet);have a look to this article that try to use REST.

systempuntoout
You can do all that in Java too. Java is not a limitation. For a list of libraries that you can use look here http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine
Romain Hippeau
I stand corrected for SOAP it looks like you might need to use Spring
Romain Hippeau
A: 

You can put your data in JSON format and send it with server request, but I`m not sure does JAVA support working with JSON.

Ilian Iliev
Java does not support it natively look here to get it to work.http://www.json.org/java/
Romain Hippeau