[jbossws-issues] [JBoss JIRA] Reopened: (JBWS-3339) Preamble is omitted when supplying WSDL and external XSDs

Kyle Lape (JIRA) jira-events at lists.jboss.org
Tue Aug 30 11:04:27 EDT 2011


     [ https://issues.jboss.org/browse/JBWS-3339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kyle Lape reopened JBWS-3339:
-----------------------------

      Assignee: Kyle Lape


After talking with development, we are going to change the logic so that if you specify UTF-16 in the XML declaration of your XSD, this will be used in the XML declaration returned to clients by JBossWS.  Otherwise, UTF-8 will be used.  This is due to the aforementioned WS-I specification.

> 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
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbossws-issues mailing list