Hi,
these days i'm trying to consume a SS-Model by a C# (.NET 2.0) SOAP Client.
The wsdl is correctly interprated since SS 2.4.x !! :-)
But i'm always getting an error when getXML() is invoked.
Something like:
... the expected Content-Type is text/xml. The Content-Type of the response is "text/html; charset=UTF-8"
I tried to insert at:
SOAPModelAccess.php
function getXML($class, $id, $relation = false, $username = null, $password = null) {
$this->authenticate($username, $password);
$response = Director::test(
$this->buildRestfulURL($class, $id, $relation, 'xml'),
null,
null,
'GET'
);
$response->addHeader('Content-Type', 'text/xml');
return ($response->isError()) ? $this->getErrorMessage($response) : $response->getBody();
}
with no luck ......
Can anyone help me ?
Greetings,
Rob