public class NillableTypesTestCase extends JBossWSTest
{
public void testNillableTypes() throws Exception
{
String targetNS = "http://org.jboss.ws";
JavaToXSD jxsd = new JavaToXSD();
QName q = new QName(targetNS,"NillableType", Constants.PREFIX_TNS);
XSTypeDefinition xst = jxsd.getSchemaCreator().generateType(q,NillableType.class);
WSSchemaUtils sutils = WSSchemaUtils.getInstance(null, null);
JBossXSModel xsmodel = sutils.createXSModel();
xsmodel.addXSTypeDefinition(xst);
StringWriter sw = new StringWriter();
sutils.serialize(xsmodel,sw);