Calling SOAP service returns Exception, Expecting pdf BLOB


#1

Hello.

I’m calling an External SOAP service that should return a PDF BLOB.

$result = $platform['api']->post->__invoke('ourPDFReturningService/invoke', $payload);

I’ve tried unsuccessfully multiple custom service languages to get more information as to what is going on.

The dreamfactory log returns

local.ERROR: Exception: {“response”:"[object] (DreamFactory\Core\Utility\ServiceResponse: {})"}

I think the contents of my Result variable is

array(94) {
    [0]=>
    string(144) "0 /opt/dreamfactory-2.0.1-1/apps/dreamfactory/htdocs/vendor/dreamfactory/df-soap/src/Services/Soap.php(253): SoapClient->__call('invoke', Array)"
    [1]=>
    string(134) "1 /opt/dreamfactory-2.0.1-1/apps/dreamfactory/htdocs/vendor/dreamfactory/df-soap/src/Services/Soap.php(253): SoapClient->invoke(Array)"
    [2]=>
    string(176) "2 /opt/dreamfactory-2.0.1-1/apps/dreamfactory/htdocs/vendor/dreamfactory/df-soap/src/Services/Soap.php(292): DreamFactory\Core\Soap\Services\Soap->callFunction('invoke', Array)"
    [3]=>
    string(73) "3 [internal function]: DreamFactory\Core\Soap\Services\Soap->handlePost()"
    [4]=>
    string(139) "4 /opt/dreamfactory-2.0.1-1/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Components/RestHandler.php(267): call_user_func(Array)"
    [5]=>
    string(176) "5 /opt/dreamfactory-2.0.1-1/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Components/RestHandler.php(173): DreamFactory\Core\Components\RestHandler->processRequest()"
    [6]=>
    string(242) "6 /opt/dreamfactory-2.0.1-1/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Services/BaseRestService.php(65): DreamFactory\Core\Components\RestHandler->handleRequest(Object(DreamFactory\Core\Scripting\ScriptServiceRequest), 'invoke')"

Any ideas ?

Regards, Kieren.