axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Venkat Reddy (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-2195) WSDL2Java generates a org.xmlsoap.schemas.wsdl.soap.TFault object that is not a Throwable.
Date Tue, 30 Aug 2005 04:34:33 GMT
    [ http://issues.apache.org/jira/browse/AXIS-2195?page=comments#action_12320520 ] 

Venkat Reddy commented on AXIS-2195:
------------------------------------

I don't think you will ever need to generate a class like TFault.

1. The last two imports in your wsdl may be not required. Its enough if you add a namespace
for these schemas.
2. The <wsdl:part name="ErrorMessage" element="soap:fault"/> might need to refer to
a element type definition instead of "soap:fault".

- venkat

> WSDL2Java generates a org.xmlsoap.schemas.wsdl.soap.TFault object that is not a Throwable.
> ------------------------------------------------------------------------------------------
>
>          Key: AXIS-2195
>          URL: http://issues.apache.org/jira/browse/AXIS-2195
>      Project: Apache Axis
>         Type: Bug
>     Versions: 1.2.1
>  Environment: Windows XP, "Apache Axis 1.2.1 Final ChangeLog (Changes after 1.2 Final)"
>     Reporter: David Wong
>  Attachments: AgencyIntegrationServices-V1.0.wsdl, src.zip
>
> I am also having compilation problems with version 1.2 wsdl2java generated code. Wsdl2java
generates a soap binding impl class that has methods which throw a org.xmlsoap.schemas.wsdl.soap.TFault
object. The TFault object generated has the following inheritance heirarchy:
> java.io.Serializable
>         |
>         org.xmlsoap.schemas.wsdl.TExtensibilityElement
>                   |
>                   org.xmlsoap.schemas.wsdl.soap.TBody
>                            |
>                            org.xmlsoap.schemas.wsdl.soap.TFaultRes
>                                    |
>                                    org.xmlsoap.schemas.wsdl.soap.TFault
> Since this heirarchy does not include a Throwable, the compiler will error out and tell
you that you are trying to throw something that is not throwable. The WSDL that I am using
works with Axis 1.1 and in that version, TFaultRes is inherited from AxisFault which is a
RemoteException. I am attaching the WSDL file I used (AgencyIntegrationServices-V1.0.wsdl)
to this issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message