Webservice call fails for operation with returntype="xml"

Description

Consuming a webservice (hosted on Lucee) fails, if the returntype data-type of the called operation is declared as "xml":

  • java.lang.ClassCastException: java.util.HashMap cannot be cast to org.w3c.dom.Node

Generating the WSDL works fine.

The attached example-code shows the problem.

Environment

None

Attachments

1
  • 11 May 2015, 10:10 am

Activity

Show:

Michael Klippel 18 October 2018 at 08:50

Actually I use Lucee 5.2.7+63 and the problem is still there!

Michael Offner 11 May 2015 at 12:07

the server converts the XML node to a HashMap, then the client is not able to convert this bck to a Node. We need a XML serializer/deserializer for this.

Michael Offner 11 May 2015 at 11:08

The exception indicates that the system tries to convert a hashmap to a node (xml) what is not possible. Interesting because Lucee itself mostly use hashmap pro ..., we will check the testcase

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 11 May 2015 at 10:11
Updated 19 May 2021 at 11:27

Flag notifications