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 "Pradeep Selvaraj (JIRA)" <ax...@ws.apache.org> on 2009/07/30 16:25:14 UTC
[jira] Created: (AXIS-2799) Problem in generation of java code
using wsdl2java in Axis
Problem in generation of java code using wsdl2java in Axis
----------------------------------------------------------
Key: AXIS-2799
URL: https://issues.apache.org/jira/browse/AXIS-2799
Project: Axis
Issue Type: Bug
Components: WSDL processing
Environment: Axis1 release
Reporter: Pradeep Selvaraj
We started using Axis for our project recently.
There is a major difference in the way exception classes are generated by Axis when compared with other frameworks. Our Sample WSDL file
defines 6 elements of type MessagingFaultDetail and also tags those 6 elements as faults in the definition of different requests.
WSDL:
<xsd:complexType name="MessagingFaultDetail">
<xsd:sequence>
<xsd:element minOccurs="0" maxOccurs="1" name="detailMessage" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="MessagingFault" type="types:MessagingFaultDetail"/>
<xsd:element name="InvalidFormatFault" type="types:MessagingFaultDetail"/>
<xsd:element name="AuthenticationFault" type="types:MessagingFaultDetail"/>
<xsd:element name="MessageNotFoundFault" type="types:MessagingFaultDetail"/>
<xsd:element name="PromptNotFoundFault" type="types:MessagingFaultDetail"/>
<xsd:element name="PromptExistsFault" type="types:MessagingFaultDetail"/>
With this WSDL file, XFire generated 6 exception classes that internally use the class MessagingFaultDetail.
But Axis generates just one exception class MessagingFaultDetail. This affects the granularity of exception handling.
This affects the way that exceptions are handled in our application.
Is it possible to configure Axis wsdl2java so that it generates exception classes similar to XFire or others?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.