You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Robert Lazarski (Jira)" <ji...@apache.org> on 2026/01/25 00:48:00 UTC

[jira] [Comment Edited] (AXIS2C-1396) When outputting faults, sometimes, it is necessary to namespace qualify text values. Currently this is not suported in Axis2/C

    [ https://issues.apache.org/jira/browse/AXIS2C-1396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18054164#comment-18054164 ] 

Robert Lazarski edited comment on AXIS2C-1396 at 1/25/26 12:47 AM:
-------------------------------------------------------------------

  1. Significant API change: Adding namespace support to text nodes     
  would require:                                                        
    - New public API function axiom_text_set_namespace()                
    - Modifying the serializer to prepend namespace prefixes            
    - Potential breaking changes for existing consumers                 
  
2. Workaround exists: Users can manually construct the prefixed QName 
  string (e.g., set the text to "env:Sender" directly) - this works for 
  serialization even if it's not "pure" from an XML infoset perspective 

3. Narrow use case: This mainly affects SOAP fault code values, which 
  is a specific scenario  


was (Author: robertlazarski):
  1. Significant API change: Adding namespace support to text nodes     
  would require:                                                        
    - New public API function axiom_text_set_namespace()                
    - Modifying the serializer to prepend namespace prefixes            
    - Potential breaking changes for existing consumers                 
  2. Workaround exists: Users can manually construct the prefixed QName 
  string (e.g., set the text to "env:Sender" directly) - this works for 
  serialization even if it's not "pure" from an XML infoset perspective 
  3. Narrow use case: This mainly affects SOAP fault code values, which 
  is a specific scenario  

> When outputting faults, sometimes, it is necessary to namespace qualify text values. Currently this is not suported in Axis2/C
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2C-1396
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1396
>             Project: Axis2-C
>          Issue Type: Improvement
>          Components: xml/om
>    Affects Versions: 1.6.0
>         Environment: Any
>            Reporter: Korale Gamaralalage Nandika Chandrasiri Jayawardana
>            Priority: Major
>
> When handling Soap faults, it is necessary to qualify the text data with a namespace prefix. 
> Eg.
> <env:Code>
>      <env:Value>env:Sender</env:Value>
>      <env:Subcode>
>       <env:Value>m:MessageTimeout</env:Value>
>      </env:Subcode>
>    </env:Code>
> For this, it is necessary to have a method to axiom_text_t to set the namespce and that correct namespace prefix must be appended to the text value serialized



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org