You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Nicholas Ardlie <Ni...@crimtrac.gov.au> on 2003/06/25 02:27:42 UTC

Bug in Axis 1.1 java2wsdl using Message Style

It seems that there is still a namespace bug in Axis when using the java2wsdl utility for message style services. (that throw custom exceptions)
It worked fine for me until I defined custom exceptions thrown from my methods.
It is a very similar problem to the one that was fixed between 1.1rc2 and 1..1.
The resulting WSDL contains an empty targetNamespace attribute for the schema element and the wsdl:part element writes the attribute reference element="fault" rather than element="impl:fault".
I'm working around this by recompililng the org.apache.axis.wsdl.fromJava.Types class, having commented out the 'noNamespace00' AxisFault thrown at line 656.
I then run an ant task that hacks the WSDL to fill in the targetNamespace attribute and add the NS prefix to the element="fault" attribute.
Not ideal but it gets me around the problem for the moment.

Wish I had time to look into the Axis code further but I really don't.
Probably an easy one to solve for whoever addressed the java2wsdl namespace issue between 1.1rc2 and 1.1.

regards,
Nick.


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************