Re: [google-appengine] Google app-engine, SOAP service endpoint, data store

416 views
Skip to first unread message

Brad Abrams

unread,
Mar 11, 2013, 12:29:20 PM3/11/13
to google-a...@googlegroups.com
While not exactly SOAP, you could check out google cloud endpoints

..brad



On Thu, Mar 7, 2013 at 12:45 PM, Jeff Beck <surfe...@gmail.com> wrote:
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.
 
 

timh

unread,
Mar 12, 2013, 5:37:27 AM3/12/13
to google-a...@googlegroups.com
There is no intrinsic reason why SOAP won't work.  You haven't said if your using python or java.

SOAP can have a large overhead, especially if your consuming SOAP services on appengine and you want to dynamically parse large WSDL definitions. But it doesn't look like you want to do that anyway.

Cheers

T

Jim

unread,
Mar 17, 2013, 3:16:36 PM3/17/13
to google-a...@googlegroups.com
There are some good java libraries for creating and consuming soap web services.  I have a java app running on app engine which consumers a soap web service; all the binding code was auto-generated from the wsdl so it was really a snap to create.  I imagine creating your own end-point wouldn't be any harder.  Not sure about python tools that might be there for you to use.  That being said, if you're building a new application and don't have any legacy considerations, I would think about doing something simpler with less overhead than SOAP... maybe RESTful services.  

edijae crusar

unread,
Jan 11, 2017, 9:06:00 AM1/11/17
to Google App Engine
4 years later, am facing a related issue in android.

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);
 
}
}

   


George (Cloud Platform Support)

unread,
Jan 12, 2017, 2:54:32 PM1/12/17
to Google App Engine
Hello Edijae, 

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.


Maybe worth mentioning: this is a discussion group for Google App Engine, and related problems and trends. When it comes strictly to programming and coding in specific languages, you’ll be at an advantage to rather post your questions on Stackoverflow, to gain this way access to a large number of experts; it is meant for providing you help with coding.

Reply all
Reply to author
Forward
0 new messages