Fixed
Details
Assignee
Michael OffnerMichael OffnerReporter
GuardianGuardianLabels
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
Critical
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Guardian
GuardianLabels
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
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"}"