Arndt
2010-09-02 08:14:51 UTC
Hi,
i wrote this simple Procedure to consume a WebService.
When I call it it throws an Error 415 because of an unexpected charset
(see Log below)
How must I change the procedure to set the charset to utf-8?
If I create a new database with utf-8 collation the procedure works fine.
ALTER PROCEDURE "entwickler"."StringReverser.ReverseString"(
value long varchar )
url 'http://localhost:8000/Reverse' type
'SOAP:DOC' set
'SOAP(OP=ReverseString)' header
'SOAPAction:"http://tempuri.org/IStringReverser/ReverseString"' namespace
'http://tempuri.org/'
<?xml version="1.0"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="http://tempuri.org/">
<SOAP-ENV:Body>
<m:ReverseString>
<m:value>test</m:value>
</m:ReverseString>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
[connid = 14, 02.09 10:00:51.178, RESPONSE]
HTTP/1.1 415 Cannot process the message because the content type
'text/xml; charset=ISO-8859-15' was not the expected type 'text/xml;
charset=utf-8'.
Keep-Alive: true
Content-Length: 0
Server: Microsoft-HTTPAPI/2.0
Date: Thu, 02 Sep 2010 08:00:51 GMT
Connection: close
Thanks
i wrote this simple Procedure to consume a WebService.
When I call it it throws an Error 415 because of an unexpected charset
(see Log below)
How must I change the procedure to set the charset to utf-8?
If I create a new database with utf-8 collation the procedure works fine.
ALTER PROCEDURE "entwickler"."StringReverser.ReverseString"(
value long varchar )
url 'http://localhost:8000/Reverse' type
'SOAP:DOC' set
'SOAP(OP=ReverseString)' header
'SOAPAction:"http://tempuri.org/IStringReverser/ReverseString"' namespace
'http://tempuri.org/'
<?xml version="1.0"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="http://tempuri.org/">
<SOAP-ENV:Body>
<m:ReverseString>
<m:value>test</m:value>
</m:ReverseString>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
[connid = 14, 02.09 10:00:51.178, RESPONSE]
HTTP/1.1 415 Cannot process the message because the content type
'text/xml; charset=ISO-8859-15' was not the expected type 'text/xml;
charset=utf-8'.
Keep-Alive: true
Content-Length: 0
Server: Microsoft-HTTPAPI/2.0
Date: Thu, 02 Sep 2010 08:00:51 GMT
Connection: close
Thanks