{
System.out.println(
"Array "
+ classname
+ " contains unexpected no of variables");
throw new WrapperFault(
"Array type "
+ classname
+ " contain unexpected no of types");
}
//include header file for the contained type
QName qname = WrapperUtils.getArrayType(type).getName();
if (!CUtils.isSimpleType(qname))
{
/* This is a must for complex schemas (includes cycle)*/
writer.write("class " + attribs[0].getTypeName() + ";\n\n");
}
else
{
writer.write("#include <axis/AxisUserAPI.hpp>\n\n");
}
writeArrayStruct();
this.writer.write(
"#endif /* !defined(__"
+ classname.toUpperCase()
+ "_"
+ getFileType().toUpperCase()
+ "_H__INCLUDED_)*/\n");
writer.flush();
writer.close();
if (WSDL2Ws.verbose)
{
System.out.println(
getFilePath().getAbsolutePath() + " created.....");
}
}
catch (IOException e)
{
e.printStackTrace();
throw new WrapperFault(e);
}
}