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

William Buch commented on AXIS2-5995:
-------------------------------------

So in doing this code below, I am not seeing any change.  Any pointers on how 
to set the options propertly?
{noformat}
*no* further _formatting_ is done here
public class UnifiedProfileInput implements XmlBeanList 
{  
  private UnifiedProfileRqDocument unifiedProfileRq; 
  private AppInfoDocument appInfoDoc;  

  public UnifiedProfileInput(String userId, String profileId, String 
applicationId) 
  { 
    XmlOptions options = new XmlOptions(); 
    Map<String, String> ns = new HashMap<String, String>();
    ns.put("http://www.ACORD.org/standards/PC_Surety/ACORD1.10.0/xml/";, 
"acord"); 
    options.setUseDefaultNamespace(); options.setCompileNoValidation(); 
    options.setSaveAggressiveNamespaces(); 
options.setCharacterEncoding("UTF-8"); 
    options.setCompileSubstituteNames(ns); 
options.setSaveSuggestedPrefixes(ns); 
    options.setSaveImplicitNamespaces(ns); 
options.setLoadAdditionalNamespaces(ns); 
    options.setLoadSubstituteNamespaces(ns); unifiedProfileRq = 
      UnifiedProfileRqDocument.Factory.newInstance(options); 
    UnifiedProfileRqType unifiedProfileRqType = 
unifiedProfileRq.addNewUnifiedProfileRq();
    ...
  }
}{noformat}
{code:java}
 {code}
 

 

> Invalid char in xml namespace prefix
> ------------------------------------
>
>                 Key: AXIS2-5995
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5995
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.7.9
>            Reporter: William Buch
>            Priority: Blocker
>         Attachments: 12.21.2020.axis.logs.txt
>
>
> When upgrading from Axis2 1.5.1 to Axis2 1.7.9, xmlbeans based XML is 
> creating a namespace with invalid characters in them. Please see sample 
> below. I am not sure how to resolve this and looking for any pointers. In 
> debugging I cannot find the place where the xmlns:x / = is being added or why 
> it would add it like this.
>  
> {{<soapenv:Body><urn:UnifiedProfileRqxmlns:urn="urn:com.thehartford.pc.acord_extensions"
>  xmlns:x / ="http://www.ACORD.org/standards/PC_Surety/ACORD1.10.0/xml/";><x / 
> :ItemIdInfo><x / :OtherIdentifier><x / 
> :OtherIdTypeCd>UserId</x/:OtherIdTypeCd>                <x / 
> :OtherId>NBVQA670</x/:OtherId>
>             </x/:OtherIdentifier>            <x / :OtherIdentifier><x / 
> :OtherIdTypeCd>ProfileId</x/:OtherIdTypeCd>                <x / 
> :OtherId>Min</x/:OtherId>
>             </x/:OtherIdentifier>            <x / :OtherIdentifier><x / 
> :OtherIdTypeCd>ApplicationId</x/:OtherIdTypeCd>                <x / 
> :OtherId>NBV</x/:OtherId>
>             </x/:OtherIdentifier>            <x / :OtherIdentifier><x / 
> :OtherIdTypeCd>UseContractorSearch</x/:OtherIdTypeCd>                <x / 
> :OtherId>true</x/:OtherId>
>             </x/:OtherIdentifier>
>         </x/:ItemIdInfo>    </urn:UnifiedProfileRq></soapenv:Body>}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to