[
https://issues.apache.org/jira/browse/AXIS2C-966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12567513#action_12567513
]
Bill Mitchell commented on AXIS2C-966:
--------------------------------------
Senaka, you fixed all the issues I observed at the upper layers. And I have
verified that the request message sent via libcurl now contains a ?xml
declaration.
But the fix works in part by accident.
guththila_xml_writer_wrapper_write_start_document_with_version_encoding() now
receives a valid encoding and version, so it does not fail the parm checks.
But it calls guththila_write_start_document() which accepts no parameters and
always generates a ?xml declaration specifying version 1.0 and UTF-8, hardcoded
in the string GUTHTHILA_WRITER_SD_DECLARATION.
guththila_write_start_document() has no access to the values passed into
guththila_xml_writer_wrapper. So if anyone configured the document to specify
a different char set encoding, the ?xml declaration would indicate UTF-8
instead of the specified encoding.
I'm not sure if this should be tracked as a separate issue, or as part of the
same issue. My first inclination would be to reopen it, except that what is
there is sufficient, I think, to match the claimed capabilities of 1.3. I don't
know that there is yet any functionality in the upper levels to let the client
or server app get to the om_output structure and set the char-set encoding.
> Guththila has no support for XML declarations
> ---------------------------------------------
>
> Key: AXIS2C-966
> URL: https://issues.apache.org/jira/browse/AXIS2C-966
> Project: Axis2-C
> Issue Type: Bug
> Components: guththila
> Affects Versions: 1.3.0
> Reporter: Senaka Fernando
> Assignee: Senaka Fernando
> Fix For: 1.3.0
>
>
> Guththila has no support for XML declarations. Bill, pointed this out in an
> e-mail sent to the AXIS2C-dev list. It is required that Guththila understands
> the XML declaration elements and simply do not treat it as an error.
> Regards,
> Senaka
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]