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 Michael Hauck <mi...@maxviva.com> on 2006/09/29 10:16:02 UTC
[axis2] java2wsdl
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