Generating web-services.xml using the < service > task

A SearchWebServices.com member asks one of our experts, "I am generating web-services.xml using the task. What is the attribute of this < service > task which will set charset="UTF-8" in web-services.xml?" Read the response or pose a question of your own.

I am generating web-services.xml using the < service > task. What is the attribute of this < service > task which will set charset="UTF-8" in web-services.xml?

I assume you're talking about using a Java JSR-109-compliant deployment descriptor to set the character set. As...

far as I'm aware, all products default to UTF-8, so you should only need to set the character set if you need to override this default.

Unfortunately, the JSR-109 specification does not define an attribute for setting the character set, therefore the mechanism used to set it will vary depending on the specific product you're using. For example, WebLogic 8 provides a deployment descriptor attribute called charset. See http://e-docs.bea.com/wls/docs81/webserv/i18n.html.

On the other hand, WebSphere 6 doesn't provide a means to set the character set via the deployment descriptor. Instead it must be set either in your client code or via a handler. See http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/twbs_changeutf.html.

I suggest you submit your question to your vendor's discussion list.

This was first published in October 2005

Dig Deeper on XML and XML schema



Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.



Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: