[jbossws-issues] [JBoss JIRA] (JBWS-3339) Preamble is omitted when supplying WSDL and external XSDs
Alessio Soldano (Updated) (JIRA)
jira-events at lists.jboss.org
Mon Jan 2 09:38:10 EST 2012
[ https://issues.jboss.org/browse/JBWS-3339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alessio Soldano updated JBWS-3339:
----------------------------------
Fix Version/s: jbossws-native-4.0.1
> Preamble is omitted when supplying WSDL and external XSDs
> ---------------------------------------------------------
>
> Key: JBWS-3339
> URL: https://issues.jboss.org/browse/JBWS-3339
> Project: JBoss Web Services
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: jbossws-native
> Affects Versions: jbossws-native-3.1.2
> Reporter: Kyle Lape
> Assignee: Kyle Lape
> Labels: character_encoding, webservices, wsdl, xsd
> Fix For: jbossws-native-4.0.1
>
>
> The XML preamble is omitted when serving external WSDL resources. This can cause problem when specifying a non-default character set using the XML preamble.
> For example, you access an external XSD: {noformat}http://localhost:8080/testService/Service?wsdl&resource=external.xsd{noformat}
> The file on the server starts like this:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <xsd:schema ...>
> ...
> </xsd:schema>
> {code}
> But when it's served to a client, it starts like this:
> {code:xml}
> <xsd:schema ...>
> ...
> </xsd:schema>
> {code}
> This affects the WSDL and any resources referenced by the WSDL.
> Looking at the code, this is what happens when a request for a WSDL resource is received:
> - The WSDL resource is read in from the file system.
> - It is then parsed into a DOM tree.
> - JBossWS then replaces references to external resources with appropriate URLs that can be reached using "?wsdl" URLs.
> - The DOM tree is then marshaled to XML text.
> In this process, the XML preamble is lost.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbossws-issues
mailing list