Hi im new to Google App Engine and I am trying to create a proxy server who can return RestFull data like xml and json responses from a remote server.
I want the webservices to answer requests from only a single IP adress and that's why i want to create a proxy server with Google App Engine. I tried that solution
But the remote calls to my Google App Server are Asynchronous so by the time the webservices answer to my Google App server, the Google App Server have already answer requests of my devices which have no data in it.
I have tried many solutions with python but i am not able to make them work.
If you have any questions, let me know
Thanks,
Finally It's seems there is no way to make synchronous remote calls from the client side on the server side of the Google Apps Engine. So I tryed curl on php and it works perfecly!
Here the StackOverflow post that helped me out How can I send SOAP XML via Curl and PHP?
Related
I have several microservices hosted using GAE Stadard. Currently the UI communicates directly with each service. I'd like to setup an API gateway so the traffic will be routed to the correct service based on path. E.g. any requests starts with /products will go to service A, while /orders will go to service B.
Is it something can be done using Google Cloud, without having to develop a new routing service?
Thanks in advance
There is a New Feature in Beta for App Engine that allow you to setup and deploy an API gateway for your services, which is exactly what you want to do.
You can check details and a tasklist of how to set it up in this Documentation.
Connecting project in Monaca Mobile restful api backend with mysql database
I have a backend developed with php and mysql with various restful apis consultation, inclusion, exclusion ready. I need to connect the mobile project in Monaca this backend by apis from our server.
I'm trying different codes using angular, but nothing has certain data. If I can not make this connection will give up working with monaca.
Thank you!
Could not find a working rest example. This example connects to remote server and pulls data from a remote server. Changing URL should take care of the rest.
https://github.com/argelius/onsen-weather-sample
I am trying to use the remote data store on Google App Engine on localhost, but I really can't get it to work.
I have tried following this advice Remote_api configuration with App Engine which does seem to handle the first request and uses the remote datastore (I think), but on the subsequent request it does not, and I get the error:
"BadRequestError: app s~myapp cannot access app dev~myapp's data"
I have also tried the following:
BadRequestError: app s~myapphr cannot access app dev~myapphr's data. Why?
Google App Engine trying to access dev data
and a lot of other suggestions, but without any luck.
Any ideas on how to use the remote datastore on localhost ?
thanks
Thomas
I have a phonegap app that uses jquery to post to a remote server, running on Google App Engine.
What's the best way to ensure that only my phonegap app can post to this remote server? I've been scouring the web for an answer but can't find anything concrete.
Normally I believe you'd check the referrer to ensure that the request is coming from a whitelisted domain but in this scenario there is no domain because it's a phonegap app.
This question is similar but it's gone unanswered:
Security issues with phonegap remote server access
You can't. Any request that your app can make - including whatever authentication credentials you care to embed in the app - can be generated by a third-party. The most you can do is obfuscate, by embedding secrets in your app, but a clever user can extract these.
A better option would be to authenticate the user, rather than the application.
I have a web application running on Google App Engine and need to provide near real time updates to connected web clients. One way would be to use the Google App Engine Channels API, but I'm a bit uneasy about using a proprietary solution.
Are there any reliable hosted services allowing for clients to connect using Socket.IO (with all its supported fallback protocols), and a web server solution running on Google App Engine to publish notifications to it? Any other alternatives that offers the same functionality?
You looking for something like beaconpush.com?
I have the same problem as you.
I've thought about using the Channel API as well however the free quota is quite low (100 channels created per day, each client is one channel).
Here's the solution I'm building:
All of the server logic runs in app engine python runtime
app engine serves all the html and client code
I run a node.js socket.io server on dotcloud (using their free tier)
the node.js server sets up an http server that listens to get requests on a few special url endpoints (ie: myapp-on.dotcloud.com/room/[room_id]) and when it gets called it triggers the socket.io broadcast to the appropriate clients
html clients generated on app engine connect to my myapp-on.dotcloud.com
All user input in the client is sent to app engine via a normal ajax post/get
when the app engine server code needs to push something to the client it makes a url fetch on the appropriate url (myapp-on.dotcloud.com/room/[room_id]) that triggers a message push via socket.io to the connected clients
I'm yet to implement this, but sounds like a workable plan
the idea is to keep all the logic in app engine and only use the socket.io server as a message pusher