You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Sagara Gunathunga (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2012/03/23 08:16:22 UTC

[jira] [Issue Comment Edited] (AXIS2-5276) Exception class created using WSDL2Java with unpackclasses does not extend java.lang.Exception

    [ https://issues.apache.org/jira/browse/AXIS2-5276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13236420#comment-13236420 ] 

Sagara Gunathunga  edited comment on AXIS2-5276 at 3/23/12 7:16 AM:
--------------------------------------------------------------------

I could see following class signature with following command.

axis2-1.6.1/bin/wsdl2java.sh -uri test.wsdl -u


/**
 * AdminServiceException.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis2 version: 1.6.1  Built on : Aug 31, 2011 (12:22:40 CEST)
 */

package com.rsa.csd.ws.admin;

public class AdminServiceException extends java.lang.Exception{
}
                
      was (Author: sagara):
    I could see following class signature when I was use following command with given WSDL file. 

axis2-1.6.1/bin/wsdl2java.sh -uri test.wsdl -u


/**
 * AdminServiceException.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis2 version: 1.6.1  Built on : Aug 31, 2011 (12:22:40 CEST)
 */

package com.rsa.csd.ws.admin;

public class AdminServiceException extends java.lang.Exception{
}
                  
> Exception class created using WSDL2Java with unpackclasses does not extend java.lang.Exception
> ----------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5276
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5276
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.6.1, nightly
>            Reporter: Jose L Martinez-Avial
>            Assignee: Sagara Gunathunga 
>         Attachments: test.wsdl
>
>
> The attached WSDL includes a customized Exception(AdminServiceException). When the client code is generated for that WSDL using WSDL2Java, using the option to unpack the classes, the class AdminServiceException does not extend from java.lang.Exception, so the methods on the Service and Stub, which throws that exception, can't be compiled.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org