You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2012/12/05 17:46:58 UTC

[jira] [Resolved] (CXF-4026) SOAP re-declaring qname inside body

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

Daniel Kulp resolved CXF-4026.
------------------------------

       Resolution: Cannot Reproduce
    Fix Version/s:     (was: NeedMoreInfo)
                   Invalid


Could not reproduce and no testcase produced after more than 10 months.
                
> SOAP re-declaring qname inside body 
> ------------------------------------
>
>                 Key: CXF-4026
>                 URL: https://issues.apache.org/jira/browse/CXF-4026
>             Project: CXF
>          Issue Type: Bug
>            Reporter: David Portabella
>            Priority: Minor
>             Fix For: Invalid
>
>
> This request fails on CXF:
> <soapenv:Envelope 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
> xmlns:myqname="http://example.com/hello" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Header/>
> <soapenv:Body>
> <myqname:MyRequest>
> ...
> </myqname:MyRequest>
> </soapenv:Body>
> </soapenv:Envelope>
> with the error:
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body>
> <soap:Fault>
> <faultcode>soap:Client</faultcode>
> <faultstring>Unmarshalling Error: UndeclaredPrefix: Cannot resolve 'myqname:MyRequest' as a QName: the prefix 'myqname' is not declared.</faultstring>
> </soap:Fault>
> </soap:Body>
> </soap:Envelope>
> However, if I re-define the myqname inside the body node, then it works.
> <soapenv:Envelope 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
> xmlns:myqname="http://example.com/hello" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Header/>
> <soapenv:Body>
> <myqname:MyRequest xmlns:myqname="http://example.com/hello">
> ...
> </myqname:MyRequest>
> </soapenv:Body>
> </soapenv:Envelope>
> Is this a bug from CXF?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira