axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allen Cronce (JIRA)" <>
Subject [jira] Created: (AXIS-2291) WSDL2Java does not embed annotations in JavaDoc comments for some generated classes
Date Sat, 05 Nov 2005 17:02:20 GMT
WSDL2Java does not embed annotations in JavaDoc comments for some generated classes

         Key: AXIS-2291
     Project: Apache Axis
        Type: Bug
  Components: WSDL processing  
    Versions: 1.3    
 Environment: Mac OS X 10.4.3, java full version "1.4.2_09-232"
    Reporter: Allen Cronce
    Priority: Minor

We have annotations in our XSD in order to document the code generated. But for some classes,
WSDL2Java does not embed the annotation text in the JavaDoc comments of the generated. code.

With the wsdl example below, the wsdl annotation for BirthDayType does make it into the
generated code. But the annotation for CountingType does not make it into the
generated code.

Here's the sample wsdl that demonstrates the problem:

<?xml version="1.0" encoding="UTF-8"?>
<definitions targetNamespace="axisprob.wsdl" xmlns:http=""
	xmlns="" xmlns:xs=""
	xmlns:xsi="" xmlns:wsdlns="axisprob.wsdl"
	<!-- Imports -->
	<xs:import namespace=""
	<!-- Schema -->
		<xs:schema targetNamespace="axisprob.xsd" xmlns:xsdns="axisprob.xsd"
			<!-- Types -->
			<!-- CountingType -->
			<xs:simpleType name="CountingType">
					<xs:documentation xml:lang="en"> This type demonstrates an enumeration 
						type. For some reason this text does not make it into the JavaDoc 
						comments for the class generated. </xs:documentation>
				<xs:restriction base="xs:normalizedString">
					<xs:enumeration value="One"/>
					<xs:enumeration value="Two"/>
					<xs:enumeration value="Three"/>
			<!-- BirthDayType -->
			<xs:complexType name="BirthDayType">
					<xs:documentation xml:lang="en"> This is a type definition for a birthday minus
						year. Note that this text does make it into the JavaDoc comments.</xs:documentation>
					<xs:element name="day" type="xs:nonNegativeInteger"/>
					<xs:element name="month" type="xs:nonNegativeInteger"/>
			<!-- Methods signatures -->
			<!-- problemMessage -->
			<xs:element name="problemMessage">
					<xs:documentation xml:lang="en"> Can you see me? </xs:documentation>
						<xs:element name="count" type="xsdns:CountingType"/>
			<!-- problemMessageResponse -->
			<xs:element name="problemMessageResponse">
					<xs:documentation xml:lang="en"> Can you see me? </xs:documentation>
						<xs:element name="birthday" type="xsdns:BirthDayType"/>
	<!-- Messages -->
	<!-- problemMessage message -->
	<message name="problemMessage">
		<part name="parameters" element="xsdns:problemMessage"/>
	<message name="problemMessageResponse">
		<part name="parameters" element="xsdns:problemMessageResponse"/>
	<!-- Port type -->
	<portType name="axisprobPortType">
		<!-- problemMessage -->
		<operation name="problemMessage">
			<input message="wsdlns:problemMessage"/>
			<output message="wsdlns:problemMessageResponse"/>
	<!-- Binding for axisprob Web APIs - Document style, SOAP over HTTP -->
	<binding name="axisprobSOAPBinding" type="wsdlns:axisprobPortType">
		<soap:binding style="document" transport=""/>
		<!-- problemMessage -->
		<operation name="problemMessage">
			<soap:operation soapAction="urn:axisprob2Action"/>
				<soap:body use="literal" namespace="axisprob.wsdl"/>
				<soap:body use="literal" namespace="axisprob.wsdl"/>
	<!-- Endpoint for axisprob Web APIs -->
	<service name="axisprob2">
		<port name="axisprobPortType" binding="wsdlns:axisprobSOAPBinding">
			<soap:address location="http://localhost:4310/WebObjects/axisprob2.woa/wa/axisprob2"/>

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message