axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fadila Mumbasic (JIRA)" <>
Subject [jira] [Created] (AXIS2-5029) Problem with automatically generated WSDL and nested classes
Date Tue, 10 May 2011 12:30:47 GMT
 Problem with automatically generated WSDL and nested classes

                 Key: AXIS2-5029
             Project: Axis2
          Issue Type: Bug
          Components: wsdl
    Affects Versions: 1.5.3
         Environment: Windows
            Reporter: Fadila Mumbasic

The automatically generated WSDL does not contain the "type" attribute
for the element which corrsponds to the nested class.

My Java class looks like:

package com.uniserv.nested.test;

public class NestedClass {
		public static class InnerStruct{
		    private String x;
		    private String y;
		    public InnerStruct(){
		        x= "";
		        y= "";
		    public String getX(){
		        return this.x;
		    public String getY(){
                   return this.y;
		    public void setX(String x){
		        this.x = x;
		    public void setY(String y){
                   this.y = y;
		public class Output{
		    private InnerStruct[] innerStructArray;
		    public Output() {
		        innerStructArray = null;
		    public InnerStruct[] getInnerStructArray(){
		        return this.innerStructArray;
		    public void setInnerStructArray (InnerStruct[]
		        this.innerStructArray = innerStructArray;
	    public Output testIt (String a ){
	        Output  output = new Output();
	        InnerStruct[] innerStructArray =
	        if(innerStructArray == null){
	            innerStructArray = new NestedClass.InnerStruct[2];
	            InnerStruct struct1 = new NestedClass.InnerStruct();
	            innerStructArray[0]= struct1;
	            InnerStruct struct2 = new NestedClass.InnerStruct();
                  innerStructArray[1]= struct2;
	        return output;

The automaticaly generated WSDL contains following:

- <wsdl:types>
- <xs:schema xmlns:ax210=""
attributeFormDefault="qualified" elementFormDefault="qualified"
 	 <xs:import namespace="" /> 
- <xs:element name="testIt">
- <xs:complexType>
	- <xs:sequence>
 	 <xs:element minOccurs="0" name="a" nillable="true"
type="xs:string" /> 
- <xs:element name="testItResponse">
- <xs:complexType>
- <xs:sequence>
  <xs:element minOccurs="0" name="return" nillable="true"
type="ax210:Output" /> 
- <xs:schema attributeFormDefault="qualified"
- <xs:complexType name="Output">
- <xs:sequence>
  <xs:element maxOccurs="unbounded" minOccurs="0"
name="innerStructArray" nillable="true" /> 
- <xs:complexType name="InnerStruct">
- <xs:sequence>
  <xs:element minOccurs="0" name="x" nillable="true" type="xs:string" />

  <xs:element minOccurs="0" name="y" nillable="true" type="xs:string" />


The definition of the complexType Output does not contain the type of
the particular elements:
 <xs:element maxOccurs="unbounded" minOccurs="0" name="innerStructArray"
nillable="true" /> 

I would expect to see
<xs:element maxOccurs="unbounded" minOccurs="0" name="innerStructArray"
nillable="true" type="ax210:InnerStruct" /> 

This message is automatically generated by JIRA.
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message