3066 Posts in 866 Topics by 648 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 895 Views |
-
SOAPModelAccess / Content-Type of response

5 September 2010 at 1:22am Last edited: 4 February 2011 9:23pm
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.phpfunction 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 -
Re: SOAPModelAccess / Content-Type of response

4 February 2011 at 9:21pm Last edited: 4 February 2011 9:22pm
Sorry for bumping this post.
Are there any ideas out there, how to fix this issue ?Rob
Edit: 2.4.4. is in use ...
-
Re: SOAPModelAccess / Content-Type of response

2 February 2012 at 8:31am
search in the following link , it may help u
http://csharp.net-informations.com/communications/csharp-communications-tutorial.htm
savs.
| 895 Views | ||
|
Page:
1
|
Go to Top |


