Daniel Schaarschmidt created CXF-4793:
-----------------------------------------
Summary: JavaToWs: xsd-imports for thrown exceptions are missing
Key: CXF-4793
URL: https://issues.apache.org/jira/browse/CXF-4793
Project: CXF
Issue Type: Bug
Components: Tooling
Affects Versions: 2.7.2
Reporter: Daniel Schaarschmidt
When I create a WebService that throws an exception and generate a wsdl from it
(Ant, JavaToWs) with separate xsd's, the namespace for the exception type is
correct, but the necessary xsd-import is missing.
Example Service:
{code}
@WebService
public class SmallWsImpl
{
public String helloWorld() throws Exception
{
return "Hello";
}
}
{code}
But in the generated xsd the namespace ns0 for the exception is defined, but
the corresponding xsd-file is generated but not imported:
{code:xml}
<xsd:schema xmlns:ns0="http://lang.java"
xmlns:tns="http://ws.extern.app.basis.de/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified"
elementFormDefault="unqualified"
targetNamespace="http://ws.extern.app.basis.de/">
<xsd:element name="helloWorld" type="tns:helloWorld"/>
[...]
<xsd:element name="Exception" nillable="true" type="ns0:Exception"/>
{code}
--
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