You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "David Portabella (Created) (JIRA)" <ji...@apache.org> on 2012/01/12 11:32:39 UTC
[jira] [Created] (CXF-4026) SOAP re-declaring qname inside body
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
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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CXF-4026) SOAP re-declaring qname inside body
Posted by "Daniel Kulp (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp updated CXF-4026:
-----------------------------
Fix Version/s: NeedMoreInfo
We'd like need more information. A test case would be perfect. We do have tests that send such messages that work fine so in some cases, it does work. Is there a full stack trace? Is this occuring in a Handler or maybe in security processing or something?
> 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: NeedMoreInfo
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CXF-4026) SOAP re-declaring qname inside body
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (CXF-4026) SOAP re-declaring qname inside body
Posted by "David Portabella (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13212695#comment-13212695 ]
David Portabella commented on CXF-4026:
---------------------------------------
Hi, the above test still shows the problem in our environment, but it's a bit difficult to isolate it to have a compact test case.
Instead, I'll try to build a test case showing the problem starting from a simple test case.
I see that you already have a simple test that accepts an XSD type through a POST.
apache-cxf-2.5.2-src/testutils/src/main/java/org/apache/cxf/customer/wraped/CustomerService.java
I'll modify this test until I get the same problem as before.
how do I run this test?
can I run it without deploying it to an application server?
Regards,
David
> 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: NeedMoreInfo
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira