cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Schaarschmidt (JIRA)" <>
Subject [jira] [Created] (CXF-4793) JavaToWs: xsd-imports for thrown exceptions are missing
Date Wed, 30 Jan 2013 13:37:12 GMT
Daniel Schaarschmidt created CXF-4793:

             Summary: JavaToWs: xsd-imports for thrown exceptions are missing
                 Key: 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:
public class SmallWsImpl
  public String helloWorld() throws Exception
    return "Hello";

But in the generated xsd the namespace ns0 for the exception is defined, but the corresponding
xsd-file is generated but not imported:

<xsd:schema xmlns:ns0="" xmlns:tns="" xmlns:xsd=""
attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="">
  <xsd:element name="helloWorld" type="tns:helloWorld"/>
  <xsd:element name="Exception" nillable="true" type="ns0:Exception"/>

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:

View raw message