Hello, I have been trying to understand how the taverna mobile application works. I added some functionality to list your own workflows (rather than all of them or your favourites). I can get the app to request 'my' workflow list from myExperiment but when the app tries to parse it I get the following error:
org.simpleframework.xml.core.AttributeException: Attribute 'uri' does not have a match in class org.apache.taverna.mobile.data.model.Workflows at line 2 Here is the xml that is returned: <?xml version="1.0" encoding="UTF-8"?> <user uri="http://www.myexperiment.org/user.xml?id=474" resource=" http://www.myexperiment.org/users/474" id="474"> <workflows> <workflow uri="http://www.myexperiment.org/workflow.xml?id=2770" resource="http://www.myexperiment.org/workflows/2770" id="2770" version="1">Disability estimates by year</workflow> <workflow uri="http://www.myexperiment.org/workflow.xml?id=3628" resource="http://www.myexperiment.org/workflows/3628" id="3628" version="4">Free text search to Concept Wiki URI</workflow> </workflows> </user> This is different from the format that the 'All workflows' returns within the app. I'm not sure what line 2 refers to here, is it the class or the xml? If it is the xml then is it the <user> node that it doesn't like. The simpleframework docs seem to suggest that you can have optional elements http://simple.sourceforge.net/download/stream/doc/tutorial/tutorial.php#optional. Can it be told to ignore elements? So....how can I change the org.apache.taverna.mobile.data.model.Workflows and I guess the org.apache.taverna.mobile.data.model.Workflow code to accept the above xml format as well? Cheers, Ian
