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 "Nikolay Metchev (JIRA)" <ax...@ws.apache.org> on 2005/12/08 17:21:08 UTC
[jira] Created: (AXIS-2332) exceptions which are wrapped arrays should not get unwrapped
exceptions which are wrapped arrays should not get unwrapped
------------------------------------------------------------
Key: AXIS-2332
URL: http://issues.apache.org/jira/browse/AXIS-2332
Project: Apache Axis
Type: Bug
Components: WSDL processing
Versions: 1.3
Reporter: Nikolay Metchev
If you define your exception to be something of the sort:
<xs:complexType name="WebServiceException">
<xs:sequence>
<xs:element maxOccurs="unbounded" type="tns:AdminError" name="error"/>
</xs:sequence>
</xs:complexType>
...
<message name="WebServiceException">
<part type="tns:WebServiceException" name="WebServiceException"/>
</message>
...
<operation name="Login">
<input message="tns:LoginRequest"/>
<output message="tns:Success"/>
<fault message="tns:WebServiceException" name="WebServiceException"/>
</operation>
Then wsdl2java will generate java code which doesn't compile. It will try and "unwrap" the WebServiceException type and declare a port type with the following signature:
public boolean login(com.teamphone.enterprise.admin.service.LoginRequest loginRequest) throws java.rmi.RemoteException, com.teamphone.enterprise.admin.service.AdminError[];
The work around is to use the -w option of wsdl2java.
The correct functionality is not to unwrap exception of this type.
--
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