Webservice call fails if more than one function declared as "remote" with returntype "xml"

Description

A webservice that has only one function declared as "remote" with returntype "xml" works fine. With the presence of a second function declared as "remote" and returntype "xml", the call fails.

Generating the WSDL works fine.

The attached example-code show the problem.

Another interesting issue with more than one function declared as remote: having to identical functions does work fine, serving a WSDL with one function.

Environment

None

Attachments

1
  • 11 May 2015, 10:50 am

Activity

Show:

Philip Eyb 13 May 2015 at 08:57

Ok, thanks for analysis! Changed title and description as requested.

Michael Offner 11 May 2015 at 12:02

when you change in your example the return type from XML to for example String it works.
So the subject should be extended with "with "returntype" XML"

Michael Offner 11 May 2015 at 11:57

In CFML you cannot overload functions by define multiple functions with different signature, like you for example can in Java.
In CFML functions are object, like every variable, so declaring a function twice, simply means that the second function overwrite the second.

So it is as you would do this:
```
component {
this.test=function (){echo(123);};
this.test=function (){echo(456);};
}
```

Michael Offner 11 May 2015 at 11:05

We have a lot testcase using more than one remote function, but 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:50
Updated 19 May 2021 at 11:42

Flag notifications