Ask the Expert

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

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?

    Requires Free Membership to View

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

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

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

This was first published in October 2005

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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: