Closed repat closed 8 years ago
This is how the SDK does it, so something like this configurable like the config array would be good.
$aHeader = array('UserID' => 42, 'Token' => "abcdef123456");
$auth_vals = new SoapVar($aHeader, SOAP_ENC_OBJECT);
$ns = "Authentification";
$oSoapHeader = new SoapHeader($ns, 'verifyingToken', $auth_vals, false);
$this->client->__setSoapHeaders($oSoapHeader);
I'm still getting a 500 error for this one, which might not be Dreamfactory's fault though.
We have added soap header option on the soap service config tab and it's getting ready to be shipped in the next release of DreamFactory.
Hi,
Background: I would like to use the SOAP API of Plentymarkets with DreamFactory.
Problem: At the moment I'm getting the attached error message for
GetServerTime
with an empty body.Solution: I'm pretty sure that the SoapHeader would be required, but I can't find an option for it. I can however set Options in the settings, but as far as I understood it's this options array:
However, the token I need for authorization needs to go in the header, see documentation (for my specific use case) here: https://www.plentymarkets.co.uk/manual/data-exchange/soap-api/authentication/
I think others might have that problem too, e.g. this forum post from Feb '15.
Error message: