Webservice exception after calling mendix webservice in sandbox
1
I'm experimenting with the sandbox and trying to sync data between a local and sandbox app. I hosted a webservice in my sandbox app, which I'm calling from my local app to copy all my local master data to the sandbox. I'm getting following exception: com.mendix.modules.microflowengine.MicroflowException: com.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code 405: Not Allowed at Sync.ExportSnacks (CallWebservice : 'Call web service') Advanced stacktrace: at com.mendix.modules.microflowengine.MicroflowUtil.processException(SourceFile:158) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code 405: Not Allowed at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(SourceFile:40) Caused by: com.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code 405: Not Allowed at com.sun.xml.ws.transport.http.client.HttpTransportPipe.checkStatusCode(HttpTransportPipe.java:358) at com.sun.xml.ws.transport.http.client.HttpTransportPipe.createResponsePacket(HttpTransportPipe.java:307) at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:265) at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:184) at com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:137) at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:641) at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:600) at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:585) at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:482) at com.sun.xml.ws.client.Stub.process(Stub.java:323) at com.sun.xml.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:192) at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:218) at com.mendix.he$3.a(SourceFile:332) at com.mendix.he$3.run(SourceFile:311) at java.security.AccessController.doPrivileged(Native Method) at com.mendix.he$2.a(SourceFile:298) at com.mendix.he$2.execute(SourceFile:294) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(SourceFile:36) at com.mendix.util.classloading.Runner$1.run(SourceFile:23) at java.security.AccessController.doPrivileged(Native Method) at com.mendix.util.classloading.Runner.runUsingClassLoaderOf(SourceFile:18) at com.mendix.he.a(SourceFile:293) at com.mendix.he.a(SourceFile:144) at com.mendix.gZ.a(SourceFile:200) at com.mendix.integration.internal.IntegrationImpl.callWebservice(SourceFile:145) at com.mendix.gR.execute(SourceFile:76) at com.mendix.jb.a(SourceFile:47) at com.mendix.ja.a(SourceFile:193) at com.mendix.ja.executeAction(SourceFile:148) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:53) at com.mendix.core.actionmanagement.CoreAction.doCall(SourceFile:291) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:276) at com.mendix.core.actionmanagement.ActionManager.executeSync(SourceFile:205) at com.mendix.core.component.InternalCore.execute(SourceFile:259) at com.mendix.jA.a(SourceFile:135) at com.mendix.pN$g.apply$mcV$sp(SourceFile:292) at com.mendix.pN$g.apply(SourceFile:283) at com.mendix.pN$g.apply(SourceFile:283) at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(SourceFile:151) at scala.util.Try$.apply(Try.scala:161) at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(SourceFile:149) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:498) at akka.actor.ActorCell.invoke(ActorCell.scala:456) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:237) at akka.dispatch.Mailbox.run(Mailbox.scala:219) at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:386) at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) Does this mean that calling a sandbox webservice is not allowed?
asked
Samet Kaya
2 answers
1
Calling webservices is allowed. All HTTP requests will respond with a 503 when the sandbox is sleeping.
answered
Jouke Waleson
0
Yes, this is indeed not allowed. Since the sandbox goes to sleep after a period of time and would not listen anymore. It was mentioned on Mendix world. And may be I missed it but a sandbox wiki would be nice with this kind of info.