[appengine-java] Re: Simple Java WebServices Call in GAE

2011-12-28 Thread Hector Rovira
Are you trying to expose a Web Service from your Appspot?

For this you will need to extend HttpServlet, and configure it in your 
web.xml with a mapping for your web service.
http://code.google.com/appengine/docs/java/runtime.html#Requests_and_Servlets

For an example of a REST web service with JSON output, go here: 
 http://goo.gl/0zU0e  

It uses Spring MVC to manage URL mappings.  In this example, the controller 
receives an AJAX request from a web page to 
https://example.appspot.com/users/whoami and returns JSON containing 
information about the logged in user... I use this controller to load user 
information on the web page, and provide a sign out button.

Here's a javascript component that makes the REST call and processes the 
JSON:  http://goo.gl/Z18ev

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/6GazSiYJ-8wJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Simple Java WebServices Call in GAE

2011-12-25 Thread suresh ashok
Hi,

Any pointers for how to call the Webservices call in GAE?

Regards,
suresh

On Dec 23, 9:46 am, suresh ashok suresh@gmail.com wrote:
 Hi,

 I need to get this  using Webservices call in GAE.

 Regards,
 Suresh

 On Dec 22, 7:03 pm, vega _v...@vr-web.de wrote:



  hi
  if my understanding of what you want to do is correct, this one might help
  you:http://code.google.com/intl/de-DE/appengine/docs/java/urlfetch/overvi...
  and remember that for http-post you have to set the content header :)- Hide 
  quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Simple Java WebServices Call in GAE

2011-12-22 Thread vega
hi
if my understanding of what you want to do is correct, this one might help 
you:
http://code.google.com/intl/de-DE/appengine/docs/java/urlfetch/overview.html
and remember that for http-post you have to set the content header :)

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/Xr2qn_D-w-4J.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Simple Java WebServices Call in GAE

2011-12-22 Thread suresh ashok
Hi,

I need to get this  using Webservices call in GAE.

Regards,
Suresh

On Dec 22, 7:03 pm, vega _v...@vr-web.de wrote:
 hi
 if my understanding of what you want to do is correct, this one might help
 you:http://code.google.com/intl/de-DE/appengine/docs/java/urlfetch/overvi...
 and remember that for http-post you have to set the content header :)

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.