javaee / jaxb-v2

Other
211 stars 100 forks source link

I18N-JAXWS:MBCS of generated WSDL/XSD from JAX-WS webservice are converted to Numeric character reference #524

Open glassfishrobot opened 16 years ago

glassfishrobot commented 16 years ago

If JAX-WS webservice includes MBCS (Multi-Byte Character Set) of its contents, such like package name, webservice name, method name and so on., generated WSDL/XSD files of MBCS are converted to Numeric character reference for example "http://テストpack/". User might be blocked to edit the WSDL or XSD file from Source view.

BEA Webservices tool use JAXB RI 2.1.7, it needs an I18N enhancement on JAXB RI 2.1.7.

I debug into txw2 source code while generating a WSDL from java which target namespace content includes MBCS. com.sun.xml.txw2.output.StreamSerialize creates DataWriter using DumbEscapeHandler which escapes everything above the US-ASCII code range. If writing xml docuemnt with UTF-8 encoding declaration it should be considered to preserve MBCS. Alternatively, the I18N enhancement can be disabled as default and a customizing I18N option (API or system property?) is provided to enable it.

Please feel free to contact me at lali@bea.com if you have any question.

Environment

Operating System: All Platform: All URL: http://bugs.bea.com/WebClarify/CREdit?CR=CR370656

Affected Versions

[2.1.7]

glassfishrobot commented 16 years ago

Reported by longlee

glassfishrobot commented 16 years ago

longlee said: Created an attachment (id=260) the screenshot of numeric unicode reference

glassfishrobot commented 16 years ago

File: HO13256_screenshotOfWSDL.PNG Attached By: longlee

glassfishrobot commented 16 years ago

Was assigned to snajper

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAXB-524