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 2008/07/07 20:48:31 UTC

[jira] Commented: (CXF-1690) java2wsdl generates incorrect targetnamespace in the wsdl

    [ https://issues.apache.org/jira/browse/CXF-1690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12611278#action_12611278 ] 

Daniel Kulp commented on CXF-1690:
----------------------------------


Any chance I can get an example for this?

I just created an exception like:
@WebFault(targetNamespace = "http://xxx.demo.com")
public class FaultWithNamespace extends Exception {
    private FaultWithNamespaceDetails details;
    
    public FaultWithNamespace(String msg) {
        super(msg);
    }
    public FaultWithNamespace(String msg, FaultWithNamespaceDetails details) {
        super(msg);
        this.details = details;
    }
    public FaultWithNamespace(FaultWithNamespaceDetails details) {
        super();
        this.details = details;
    }
    public FaultWithNamespaceDetails getFaultInfo() {
        return details;
    }
    
    @XmlType(name = "FaultWithNamespaceDetails")
    public static class FaultWithNamespaceDetails {
        private long id;
        
        public FaultWithNamespaceDetails() {
        }
        public FaultWithNamespaceDetails(int i) {
            id = i;
        }
        
        public long getId() {
            return id;
        }
        public void setId(long id) {
            this.id = id;
        }
    }
}

and it generated the same schemas and such as the reference implementation.

> java2wsdl generates incorrect targetnamespace in the wsdl
> ---------------------------------------------------------
>
>                 Key: CXF-1690
>                 URL: https://issues.apache.org/jira/browse/CXF-1690
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 2.0.7
>         Environment: Windows XP, java 6, CXF 2.0.7, maven 2.0.9, cxf-codegen-plugin 2.0.7(java2wsdl)
>            Reporter: Lajos Kesik
>            Priority: Critical
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> There is an annotation on the exception class:
> @WebFault(targetNamespace="http://xxx.demo.com", faultBean="com.demo.yyy.DemoExceptionBean")
> public class DemoException extends Exception implements Serializable{......
> java2wsdl does not use the defined targetNamespace in wsdl generation.
> The DemoException in the wsdl does not have the target namespace definition.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.