[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] [Resolved] (XMLBEANS-427) Namespace prefix in attribute
From:       "Cezar Andrei (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2011-09-16 17:10:09
Message-ID: 279395398.35463.1316193009953.JavaMail.tomcat () hel ! zones ! apache ! org
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/XMLBEANS-427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Cezar Andrei resolved XMLBEANS-427.
-----------------------------------

       Resolution: Invalid
    Fix Version/s: Version 2.5

Please use the setLoadAdditionalNamespaces() XmlOption when loading the subtree, with \
all the namespaces in that contest. See following link for details:

http://xmlbeans.apache.org/docs/2.4.0/reference/org/apache/xmlbeans/XmlOptions.html#setLoadAdditionalNamespaces%28java.util.Map%29


> Namespace prefix in attribute value not resolved correctly
> ----------------------------------------------------------
> 
> Key: XMLBEANS-427
> URL: https://issues.apache.org/jira/browse/XMLBEANS-427
> Project: XMLBeans
> Issue Type: Bug
> Components: Binding
> Affects Versions: Version 2.4 
> Reporter: Lukas Krecan
> Assignee: Cezar Andrei
> Fix For: Version 2.5
> 
> Attachments: test-ws-1.0-SNAPSHOT-src.zip
> 
> 
> I have following SOAP request.
> 
> <soapenv:Envelope  xmlns:ns="http://schemas.qqq.com/wsdl/spi/profile/1.0" \
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" \
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header/>
> <soapenv:Body>
> <ns:getRights> 
> <ns:customerCredential xsi:type="ns:CustomerCredentialMsisdn">
> <ns:msisdn>420123456789</ns:msisdn>
> </ns:customerCredential>
> </ns:getRights>
> </soapenv:Body>
> </soapenv:Envelope>
> I only need to bind the payload:
> <ns:getRights> 
> <ns:customerCredential xsi:type="ns:CustomerCredentialMsisdn">
> <ns:msisdn>420123456789</ns:msisdn>
> </ns:customerCredential>
> </ns:getRights>
> Please note that namespace prefix ns is not defined. Usually this is not a problem \
> since in DOM namespaces are already resolved. There is one exception - attribute \
> value. When XmlBeans try to unmarshall the element, they are not able to resolve \
> the namespace and do not work correctly. If following request is used (the only \
> difference is position of ns prefix declaration) everything works fine \
> <soapenv:Envelope  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" \
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header/>
> <soapenv:Body>
> <ns:getRights xmlns:ns="http://schemas.qqq.com/wsdl/spi/profile/1.0"> 
> <ns:customerCredential xsi:type="ns:CustomerCredentialMsisdn">
> <ns:msisdn>420123456789</ns:msisdn>
> </ns:customerCredential>
> </ns:getRights>
> </soapenv:Body>
> </soapenv:Envelope>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic