SoapRequest to WSDL. Different return type between ACF and Lucee

Description

Hi,
Found that Soap request from php to ACF10 WSDL return: “Object”
Same request to Lucee return: “String”

<?php $url = "http://xxxxx.com/test1.cfc?wsdl"; $client = new SoapClient($url, array("trace" => 1, "exception" => 0)); $result = $client->create('hello'); echo '<pre>'; var_dump($result); if(isset($result->return)){ echo '<pre>'; print_r("Is Object"); die; }

 

test1.cfc

<cfcomponent output="false"> <cffunction name = "create" returnType = "string" output = "no" access = "remote"> <cfargument name = "input" type = "string"> <cfreturn serializeJSON(ARGUMENTS)> </cffunction> </cfcomponent>

 

How to get same response type for ACF and Lucee? or extract returned value, without try{}catch()

 

Response from ACF ( Tested on ACF10 ):

object(stdClass)#2 (1) { ["return"]=> string(14) "{"INPUT":null}" } Is Object

 

Response from Lucee:

string(17) "{"input":"hello"}"

 

Same Soap Request from ACF10 to ACF10, from Lucee to ACF10, from ACF10 to Lucee return:

string(17) "{"input":"hello"}"

 

Activity

Show:

Michael Offner 21 May 2024 at 19:58

this part of the project is deprecated and only get security fixes, sorry.

Pothys - MitrahSoft 9 September 2019 at 14:04

I've checked this ticket with ACF and lucee 5.3.3.14 & latest version( 5.3.5.3-SNAPSHOT ).
Both ACF and lucee returns the same result {"input":"hello"}
And also checked with PHP, it returns "NULL" value for that.
So, will confirm this.

Fixed

Details

Assignee

Reporter

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

Priority

Created 5 September 2019 at 11:38
Updated 21 May 2024 at 19:58
Resolved 21 May 2024 at 19:58

Flag notifications