axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Hauck <michael.ha...@maxviva.com>
Subject [axis2] java2wsdl
Date Fri, 29 Sep 2006 08:16:02 GMT
Hi,
is there a way how java2wsdl can deal with static inner classes?
For example:

Service implementation:

package com.maxviva.test.soap;

import java.util.ArrayList;
import java.util.List;

public class MyTestService
{
	public Foo getFoo(String message, int count)
	{
		Foo f = new Foo();
		f.setCount( count );
		
		List<Foo.Bar> bars = new ArrayList<Foo.Bar>();
		for(int i=0; i < count; i++)
		{
			Foo.Bar b = new Foo.Bar();
			b.setMessage( message + "---" + i );
			bars.add( b );
		}
		
		
		return f;
	}
}

Data implementation:
package com.maxviva.test.soap;


public class Foo
{
	private int count;
	private Bar[] bars;

	public Bar[] getBars()
	{
		return bars;
	}
	
	public void setBars( Bar[] bars )
	{
		this.bars = bars;
	}
	public int getCount()
	{
		return count;
	}

	public void setCount( int count )
	{
		this.count = count;
	}
	
	public static class Bar
	{
		private String message = "huhu";

		public String getMessage()
		{
			return message;
		}

		public void setMessage( String message )
		{
			this.message = message;
		}
	}
}

Resulting wsdl:
---snip---
<xs:element type="types:Foo$Bar" name="Foo$Bar" />
<xs:complexType name="Foo$Bar">
---snap---

This causes an error.

Thanks4help,
-- 
Mit freundlichen Gr├╝ssen

Michael Hauck
Software Developer
email: michael.hauck@maxviva.com
---------------------------------------
maxviva GmbH
Luitpoldstra├če 9
D 63739 Aschaffenburg

tel: +49 (0)6021 45482-13
fax: +49 (0)6021 45482-22
www.maxviva.com
---------------------------------------

*************************************************************
Wir sind umgezogen. Bitte beachten Sie die neue Adresse.
*************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message