cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "maomaode (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CXF-337) Java2WSDL fails to generate wsdl from POJO
Date Mon, 23 Apr 2007 05:06:15 GMT

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

maomaode resolved CXF-337.
--------------------------

    Resolution: Fixed

The Java2WSDL has been changed to use the RT, and we have fixed this issue, please close this
issue.
Ref: CXF539 CXF-559

> Java2WSDL fails to generate wsdl from POJO
> ------------------------------------------
>
>                 Key: CXF-337
>                 URL: https://issues.apache.org/jira/browse/CXF-337
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0-RC
>            Reporter: Bharath Ganesh
>         Assigned To: maomaode
>             Fix For: 2.0-RC
>
>
> I could also see the java2wsdl tool is buggy for a number of cases. For exampple I have
a POJO annotated with JSR 181 annotations to be exposed as a WS. 
> import javax.jws.*;
> @WebService
> public class Calculator
> {
>     public int add (int a, int b) throws AddException{
>         if(a<0 || b<0){
>             throw new AddException("No negetive please");
>         }
>         return a+b;
>     }
> }
> When I run the java2wsdl tool by providing the above class, I get the following error.

> Error : Can not load the request wrapper class com.pramati.rs.ws.jaxws.Add,  please check
the @Reque
> stWrapper annotation and see if the class is in your classpath
> The @RequestWrapper annotation is not mandatory. The container could have well used RPC/Literal.

> Later when I annotated the Service with @SOAPBinding(style= SOAPBinding.Style.RPC, use=
SOAPBinding.Use.LITERAL) , the problem I faced was: 
> Error : com.pramati.rs.ws.AddException.getFaultInfo()

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


Mime
View raw message