public static void generate(Model model, WsimportOptions options, ErrorReceiver receiver) { ServiceGenerator serviceGenerator = new ServiceGenerator(model, options, receiver); serviceGenerator.doGeneration(); }
private ServiceGenerator(Model model, WsimportOptions options, ErrorReceiver receiver) { init(model, options, receiver); }
String className = Names.customJavaTypeClassName(intf); if (donotOverride && GeneratorUtil.classExists(options, className)) { log("Class " + className + " exists. Not overriding."); return; cls = getClass(className, ClassType.CLASS); } catch (JClassAlreadyExistsException e) { receiver.error(service.getLocator(), GeneratorMessages.GENERATOR_SERVICE_CLASS_ALREADY_EXIST(className, service.getName())); writeClassLoaderBaseResourceWSDLLocation(className, cls, urlField, exField); } else if (wsdlLocation.startsWith("http://") || wsdlLocation.startsWith("https://") || wsdlLocation.startsWith("file:/")) { writeAbsWSDLLocation(cls, urlField, exField); } else if (wsdlLocation.startsWith("META-INF/")) { writeClassLoaderResourceWSDLLocation(className, cls, urlField, exField); } else { writeResourceWSDLLocation(className, cls, urlField, exField); for (String doc : getJAXWSClassComment()) { comment.add(doc); writeWebServiceClientAnnotation(service, webServiceClientAnn); writeHandlerConfig(Names.customJavaTypeClassName(service.getJavaInterface()), cls, options); retType = getClass(port.getJavaInterface().getName(), ClassType.INTERFACE); } catch (JClassAlreadyExistsException e) { QName portTypeName = writeDefaultGetPort(port, retType, cls);
ServiceGenerator.generate(wsdlModel, options, receiver);
String className = Names.customJavaTypeClassName(intf); if (donotOverride && GeneratorUtil.classExists(options, className)) { log("Class " + className + " exists. Not overriding."); return; cls = getClass(className, ClassType.CLASS); } catch (JClassAlreadyExistsException e) { receiver.error(service.getLocator(), GeneratorMessages.GENERATOR_SERVICE_CLASS_ALREADY_EXIST(className, service.getName())); writeClassLoaderBaseResourceWSDLLocation(className, cls, urlField, exField); } else if (wsdlLocation.startsWith("http://") || wsdlLocation.startsWith("https://") || wsdlLocation.startsWith("file:/")) { writeAbsWSDLLocation(cls, urlField, exField); } else if (wsdlLocation.startsWith("META-INF/")) { writeClassLoaderResourceWSDLLocation(className, cls, urlField, exField); } else { writeResourceWSDLLocation(className, cls, urlField, exField); for (String doc : getJAXWSClassComment()) { comment.add(doc); writeWebServiceClientAnnotation(service, webServiceClientAnn); writeHandlerConfig(Names.customJavaTypeClassName(service.getJavaInterface()), cls, options); retType = getClass(port.getJavaInterface().getName(), ClassType.INTERFACE); } catch (JClassAlreadyExistsException e) { QName portTypeName = writeDefaultGetPort(port, retType, cls);
ServiceGenerator.generate(wsdlModel, options, receiver);
String className = Names.customJavaTypeClassName(intf); if (donotOverride && GeneratorUtil.classExists(options, className)) { log("Class " + className + " exists. Not overriding."); return; cls = getClass(className, ClassType.CLASS); } catch (JClassAlreadyExistsException e) { receiver.error(service.getLocator(), GeneratorMessages.GENERATOR_SERVICE_CLASS_ALREADY_EXIST(className, service.getName())); writeClassLoaderBaseResourceWSDLLocation(className, cls, urlField, exField); } else if (wsdlLocation.startsWith("http://") || wsdlLocation.startsWith("https://") || wsdlLocation.startsWith("file:/")) { writeAbsWSDLLocation(cls, urlField, exField); } else if (wsdlLocation.startsWith("META-INF/")) { writeClassLoaderResourceWSDLLocation(className, cls, urlField, exField); } else { writeResourceWSDLLocation(className, cls, urlField, exField); for (String doc : getJAXWSClassComment()) { comment.add(doc); writeWebServiceClientAnnotation(service, webServiceClientAnn); writeHandlerConfig(Names.customJavaTypeClassName(service.getJavaInterface()), cls, options); retType = getClass(port.getJavaInterface().getName(), ClassType.INTERFACE); } catch (JClassAlreadyExistsException e) { QName portTypeName = writeDefaultGetPort(port, retType, cls);
public static void generate(Model model, WsimportOptions options, ErrorReceiver receiver) { ServiceGenerator serviceGenerator = new ServiceGenerator(model, options, receiver); serviceGenerator.doGeneration(); }
private ServiceGenerator(Model model, WsimportOptions options, ErrorReceiver receiver) { init(model, options, receiver); }
ServiceGenerator.generate(wsdlModel, options, receiver);
String className = Names.customJavaTypeClassName(intf); if (donotOverride && GeneratorUtil.classExists(options, className)) { log("Class " + className + " exists. Not overriding."); return; cls = getClass(className, ClassType.CLASS); } catch (JClassAlreadyExistsException e) { receiver.error(service.getLocator(), GeneratorMessages.GENERATOR_SERVICE_CLASS_ALREADY_EXIST(className, service.getName())); writeClassLoaderBaseResourceWSDLLocation(className, cls, urlField, exField); } else if (wsdlLocation.startsWith("http://") || wsdlLocation.startsWith("https://") || wsdlLocation.startsWith("file:/")) { writeAbsWSDLLocation(cls, urlField, exField); } else if (wsdlLocation.startsWith("META-INF/")) { writeClassLoaderResourceWSDLLocation(className, cls, urlField, exField); } else { writeResourceWSDLLocation(className, cls, urlField, exField); for (String doc : getJAXWSClassComment()) { comment.add(doc); writeWebServiceClientAnnotation(service, webServiceClientAnn); writeHandlerConfig(Names.customJavaTypeClassName(service.getJavaInterface()), cls, options); retType = getClass(port.getJavaInterface().getName(), ClassType.INTERFACE); } catch (JClassAlreadyExistsException e) { QName portTypeName = writeDefaultGetPort(port, retType, cls);
public static void generate(Model model, WsimportOptions options, ErrorReceiver receiver) { ServiceGenerator serviceGenerator = new ServiceGenerator(model, options, receiver); serviceGenerator.doGeneration(); }
private ServiceGenerator(Model model, WsimportOptions options, ErrorReceiver receiver) { init(model, options, receiver); }
ServiceGenerator.generate(wsdlModel, options, receiver);
public static void generate(Model model, WsimportOptions options, ErrorReceiver receiver) { ServiceGenerator serviceGenerator = new ServiceGenerator(model, options, receiver); serviceGenerator.doGeneration(); }
private ServiceGenerator(Model model, WsimportOptions options, ErrorReceiver receiver) { init(model, options, receiver); }