Is it possible to create a SOAP service deployed on app engine, that can read/write to the datastore?
I would then build a SOAP client that connects to the soap endpoint on app engine which in turn retrieves data from the datastore.
In fact, I would like to code the SOAP client on Anrdoid/Java.
This is for a proof-of-concept (university project) and would compare SOAP to non-soap data store access on app-engine.
I believe the biggest 'problem' would be that of SOAP on app engine?
I've only found old documents, using older implementations of SOAP than what is currently available.
And help, advice, or pointers would be appreciated.
I am limited (number of servers, etc..) and also have 8 weeks to implement this.
Also, I have programmed a web-app that uses app engine and datastore...
Thank you
Jeffrey Beck
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
I have an app where am using google app engine. i need to make soap request to a certain company webservice where i also provide a callback url where the webservice will send the results to it in form of soap.
How can i send this soap requests to the webservice and prepare google app engine to receive soap data? What can i do to make sure that the callback url that i will give to the comapany's webservice will not compromise my app engine security?
What changes do i need to do to the below class that should make and receive the soap data?
public class MyServlet extends HttpServlet {
@Override
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
resp.setContentType("text/plain");
resp.getWriter().println("Please use the form to POST to this url");
}
@Override
public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
String name = req.getParameter("name");
resp.setContentType("text/plain");
if (name == null) {
resp.getWriter().println("Please enter a name");
}
resp.getWriter().println("Hello " + name);
}
}
For general information and a simple example on how to build a SOAP web services client, you may check the Creating a Simple Web Service and Client with JAX-WS tutorial. At present, the necessary Java classes, namely javax.jws.WebService, are on The JRE Class White List, so you may safely use them in your application running in the App Engine standard environment. These info sources should cover your question about sending soap requests to the web service and preparing the Google App Engine app to receive SOAP data.
If your application scope is limited to the web services client, as opposed to the server, your security concerns should be less: usually, server programming needs to cover these aspects. There are various relevant resources on the web, for instance Application Authentication with JAX-WS.
Regarding the changes to your below class, needed so you may create and receive SOAP data: following the first tutorial above may give you a fairly good idea.