AnsweredAssumed Answered

BPMN2-Spec-compliant Webservice-Call: Problem importing WSDL

Question asked by rguenther on Jul 30, 2011
Latest reply on Sep 13, 2011 by mahdsip
Hey there,
first I would like to say thank you for the wide range of JUnit-Examples which are useful to understand the Engine.
I'm trying to call a simple Webservice the Specification-compliant way. So I did the following steps (meant to be helpful for interested users)
    1) downloaded Eclipse WTP in order to provide own Webservices. Tutorial: eclipse help section.
    2) imported the activiti cxf examples
    3) created a BPMN2-Model with service task which invokes the Webservice (with IOSpecification, without Java Delegate-class)
    4) Edited the org.activiti.engine.test.bpmn.servicetask.WebServiceUELTest in order to execute the process
The WSDL declares a simple string as input and output, but a java.lang.ClassCastException is thrown during it's parsed.
I've posted the WSDL, BPMN 2 Model, the class to execute the BPMN Model and the Console Output while deploying and executing the BPMN Model.
The CxfWSDLImporter.java says:
java.lang.ClassCastException: com.sun.codemodel.JCodeModel$JReferencedClass cannot be cast to com.sun.codemodel.JDefinedClass

This is confusing because I'm using only one xsd:string.

Any suggestions are welcome. Keep up the good work!  :)

Outcomes