Definition def = WSDLFactory.newInstance().newDefinition();
TypeMapping tm = DefaultTypeMappingImpl.getSingletonDelegate();
Namespaces namespaces = new Namespaces();
ServiceDesc serviceDesc = new JavaServiceDesc();
types = new Types(def, tm, tm, namespaces, "any:name.space", new ArrayList(), serviceDesc);