XML Database (MOSC)

MOSC Banner

Encoding Problem - Webservices

edited Dec 19, 2011 9:14AM in XML Database (MOSC) 3 commentsAnswered
I have a function in a package that is to be made available as a web service. In this function I select some data with XQuery and returned this as XMLTYPE. The database is 8859-1. The function should be called by a different system, which is UTF-8. My questions are:

1. Is it possible to extend the SOAP response to the encoding?

My SOAP-response:

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
Needed SOAP-response:<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
2. Is it possible within the function to convert the XMLTYPE in UTF-8 and return it in UTF-8?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center