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

Daniel Kulp resolved CXF-4793.
------------------------------
       Resolution: Cannot Reproduce
    Fix Version/s: Invalid

Cannot reproduce with 3.x codebase.   If it's still an issue, please attach a 
FULL test case.

> 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
>             Fix For: Invalid
>
>
> 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 was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to