To my knowledge, there's only one library for interacting with SOAP WS in Android, which is ksoap. Axis2 and the other WS libraries require packages that are not included in Android (such as RMI, if I remember correctly). So it might be really hard to do what you propose. http://learnandroiddevelopment.blogspot.it/2012/01/java-api-and-libraries- supported-in.html neither javax.rmi nor javax.xml.rpc are supported in android.
Hope it helps Best regards Alessio On Tuesday 24 April 2012 11:13:26 Tammo van Lessen wrote: > Hi Matthias, > > interesting idea. I wonder about the benefits of a BPEL engine running > on a mobile device... Despite of that, the errors that you describe > seem to be caused not by ODE itself but rather by some core libraries > being used by it (activation, xerces, jee libs). There might be > replacements for android, but I doubt that ODE will successfully run > on an android device easily. Feel free to prove me wrong, though ;) > > Best, > Tammo > > On Wed, Apr 18, 2012 at 16:54, Matthias Schneider <[email protected]> wrote: > > Hi everybody, > > > > I'm looking for a BPEL execution engine for Android phones. Is it > > possible to use ODE for this? > > > > So far I've tried to use it with two web containers designed for Android: > > i-jetty (http://code.google.com/p/i-jetty/) and Atjeews ( > > http://tjws.sourceforge.net/atjeews.html). > > > > When I simply put the ode.war in the webapps folder of each server, the > > html frontend of ODE (http://localhost:8080/ode) seems to work at first > > glance; however, when trying to deploy a bpel process, ode still says: > > zero processes running. > > > > The atjeews website says that standard Java bytecode has to be converted > > to Dalvik first, and that JSP has to be precompiled, since there is no > > JSP java compiler on android... they provide a 7bee script for that. > > I've tried the script with a small hello_world.war with some simple JSPs > > in it, and it works fine then. > > > > However, when trying to do that with ode.war the bee script gives me lots > > of errors, for example: > > > > A) > > org.apache.jasper.JasperException: > > file:C:/Users/Admin/AppData/Local/Temp/war_temp3/axis2-web/listGroupServi > > ce.jsp (line: 37, column: 0) Expecting "jsp:param" standard action with > > "name" and "value" attributes > > > > B) hundreds of warnings like this: > > C:\Users\Admin\AppData\Local\Temp\war_temp3\WEB-INF\lib\activation-1.1.ja > > r warning: Ignoring InnerClasses attribute for an anonymous inner class > > (javax.activation.DataHandler$1) that doesn't come with an associated > > EnclosingMethod attribute. This class was probably produced by a > > compiler that did not target the modern .class file format. The > > recommended solution is to recompile the class from source, using an > > up-to-date compiler and without specifying any "-target" type options. > > The consequence of ignoring this warning is that reflective operations > > on this class will incorrectly indicate that it is *not* an inner class. > > > > C) > > C:\Users\Admin\AppData\Local\Temp\war_temp3\WEB-INF\lib\geronimo-ejb_2.1_ > > spec-1.1.jar > > > > trouble processing "javax/xml/rpc/handler/MessageContext.class": > > Ill-advised or mistaken usage of a core class (java.* or javax.*) when > > not building a core library. > > This is often due to inadvertently including a core library file in your > > application's project, when using an IDE (such as Eclipse). If you are > > sure you're not intentionally defining a core class, then this is the > > most likely explanation of what's going on. [...] > > 1 error; aborting > > UNEXPECTED TOP-LEVEL EXCEPTION: > > java.lang.SecurityException: Please do not leave. > > at org.bee.processor.Task$1.checkExit(Task.java:220) > > at java.lang.Runtime.exit(Runtime.java:105) [...] > > > > D) > > trouble processing: > > bad utf-8 byte 9e at offset 00000002 > > ...while parsing cst 03be at offset 000025db > > ...while parsing cst 0007 at offset 0000001e > > ...while parsing org/apache/xalan/res/XSLTErrorResources_ru.class > > ...while processing org/apache/xalan/res/XSLTErrorResources_ru.class > > [...] > > ...while parsing > > org/apache/xerces/impl/xpath/regex/ParserForXMLSchema.class ...while > > processing > > org/apache/xerces/impl/xpath/regex/ParserForXMLSchema.class > > [...] > > ...while parsing org/apache/xerces/impl/xpath/regex/Token.class > > ...while processing org/apache/xerces/impl/xpath/regex/Token.class > > > > > > When using the resulting war file, nothing really changes: the ODE > > frontend still shows me the html pages, but it still says: zero > > processes running. > > > > > > Does anybody have an idea if/how I can get ODE to work on Android phones? > > > > Thank you -- ---------------------------------------------------------------- Alessio Carenini CEFRIEL - ICT Institute Politecnico di Milano Via Fucini, 2 - 20133 Milano (Italy) e: [email protected] - skype: ale.carenini live messenger: [email protected] - w: www.cefriel.it p: +39 0223954352 - f: +39 0223954352 ----------------------------------------------------------------
