This will be a suggestion: I've also read the documentation of remote API, it was ridiculously complicated, at least I thought so It might be simpler to develop a simple sender/receiver handlers, with basic password/authentication logic
It might be a good idea to send text or json, I had blob transfers for a while, but It caused issues when the blob included non-ascii characters, it's definitely not compatible with webapp routines On Sunday, October 6, 2013 8:32:42 PM UTC+3, Ajiyos Yohannan wrote: > > Hi All, > > I have an administrative app(A) which need to occasionally push data from > that to a live app(B). I was trying to use remote api as mentioned in below > link > > > https://developers.google.com/appengine/docs/java/tools/remoteapi#Configuring_Remote_API_on_an_App_Engine_Client > > I have made modifications on the receiving app(B) web.xml. It is working > fine when app A is in the local test environment. However, I am getting > this error when both apps are live. > > When I use the same google email id which the app is deployed > > com.ps.server.handler.product.PublishChangesHandler execute: Timeout while > fetching URL: https://appid.appspot.com:443/remote_api > > > > When I use an alternative email id, the error is > > > com.ps.server.handler.product.PublishChangesHandler execute: Login failed. > Reason: BadAuthentication WebLoginRequired > > > I get an email from google which says suspicious attempt to login is > prevented. Once I follow this link > > https://accounts.google.com/b/0/DisplayUnlockCaptcha > > the remote publishing is working fine temporally > > > Below is my code > > RemoteApiOptions remoteApiOptions = new RemoteApiOptions().server( > arg0.getInstance(), 443).credentials(arg0.getAdminEmail(), > arg0.getAdminPassword()); RemoteApiInstaller installer = new > RemoteApiInstaller(); try { installer.install(remoteApiOptions); > remoteApiOptions.reuseCredentials(arg0.getAdminEmail(), > installer.serializeCredentials()); while (iterator.hasNext()) { Person > person= iterator.next(); String oldNS = NamespaceManager.get(); try { > NamespaceManager.set("com.sb.host"); Entity entity = new > Entity("Person",person.getBarCode()); entity.setProperty("name", person > .getName()); > entity.setProperty("barcode", person.getBarCode()); > entity.setProperty("imageurl", person.getImageURL()); > > DatastoreService ds = DatastoreServiceFactory .getDatastoreService(); > System.out .println("Key of new entity is " + ds.put(entity)); } catch > (Exception e) { e.printStackTrace(); log.severe(e.getMessage()); } finally > { NamespaceManager.set(oldNS); } } > > Am I missing some configuration? I am using java based appengine apps. > > > Thanks in Advance > > Ajiyos > > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
