public static List<InputSource> build(WSDLModeler wsdlModeler, WsimportOptions options, ErrorReceiver errReceiver) { PseudoSchemaBuilder b = new PseudoSchemaBuilder(wsdlModeler.document); b.wsdlModeler = wsdlModeler; b.options = options; b.build(); int i; for(i = 0; i < b.schemas.size(); i++){ InputSource is = b.schemas.get(i); is.setSystemId(sysId+(i + 1)); } //add w3c EPR binding if(!(options.noAddressingBbinding) && options.target.isLaterThan(Options.Target.V2_1)){ InputSource is = new InputSource(new ByteArrayInputStream(getUTF8Bytes(w3ceprSchemaBinding))); is.setSystemId(sysId+(++i +1)); b.schemas.add(is); } //TODO: uncomment after JAXB fixes the issue related to passing multiples of such bindings //add member submission EPR binding // InputSource is1 = new InputSource(new ByteArrayInputStream(memberSubmissionEPR.getBytes())); // is1.setSystemId(sysId+(++i + 1)); // b.schemas.add(is1); return b.schemas; }
public static List<InputSource> build(WSDLModeler wsdlModeler, WsimportOptions options, ErrorReceiver errReceiver) { PseudoSchemaBuilder b = new PseudoSchemaBuilder(wsdlModeler.document); b.wsdlModeler = wsdlModeler; b.options = options; b.build(); int i; for(i = 0; i < b.schemas.size(); i++){ InputSource is = b.schemas.get(i); is.setSystemId(sysId+(i + 1)); } //add w3c EPR binding if(!(options.noAddressingBbinding) && options.target.isLaterThan(Options.Target.V2_1)){ InputSource is = new InputSource(new ByteArrayInputStream(getUTF8Bytes(w3ceprSchemaBinding))); is.setSystemId(sysId+(++i +1)); b.schemas.add(is); } //TODO: uncomment after JAXB fixes the issue related to passing multiples of such bindings //add member submission EPR binding // InputSource is1 = new InputSource(new ByteArrayInputStream(memberSubmissionEPR.getBytes())); // is1.setSystemId(sysId+(++i + 1)); // b.schemas.add(is1); return b.schemas; }
public static List<InputSource> build(WSDLModeler wsdlModeler, WsimportOptions options, ErrorReceiver errReceiver) { PseudoSchemaBuilder b = new PseudoSchemaBuilder(wsdlModeler.document); b.wsdlModeler = wsdlModeler; b.options = options; b.build(); int i; for(i = 0; i < b.schemas.size(); i++){ InputSource is = b.schemas.get(i); is.setSystemId(sysId+(i + 1)); } //add w3c EPR binding if(!(options.noAddressingBbinding) && options.target.isLaterThan(Options.Target.V2_1)){ InputSource is = new InputSource(new ByteArrayInputStream(getUTF8Bytes(w3ceprSchemaBinding))); is.setSystemId(sysId+(++i +1)); b.schemas.add(is); } //TODO: uncomment after JAXB fixes the issue related to passing multiples of such bindings //add member submission EPR binding // InputSource is1 = new InputSource(new ByteArrayInputStream(memberSubmissionEPR.getBytes())); // is1.setSystemId(sysId+(++i + 1)); // b.schemas.add(is1); return b.schemas; }
if (options.target.isLaterThan(Options.Target.V2_1)) { writeXmlSeeAlso(cls);
if (options.target.isLaterThan(Options.Target.V2_1)) { writeXmlSeeAlso(cls);
if (options.target.isLaterThan(Options.Target.V2_1)) { writeXmlSeeAlso(cls);
if (options.target.isLaterThan(Options.Target.V2_1)) { writeXmlSeeAlso(cls);
if (!loadedVersion.isLaterThan(targetVersion)) { if (Service.class.getClassLoader() == null) System.err.println(WscompileMessages.INVOKER_NEED_ENDORSED(loadedVersion.getVersion(), targetVersion.getVersion()));
if (!loadedVersion.isLaterThan(targetVersion)) { if (Service.class.getClassLoader() == null) System.err.println(WscompileMessages.INVOKER_NEED_ENDORSED(loadedVersion.getVersion(), targetVersion.getVersion()));
if (!loadedVersion.isLaterThan(targetVersion)) { if (Service.class.getClassLoader() == null) System.err.println(WscompileMessages.INVOKER_NEED_ENDORSED(loadedVersion.getVersion(), targetVersion.getVersion()));
if (!loadedVersion.isLaterThan(targetVersion)) { if (Service.class.getClassLoader() == null) System.err.println(WscompileMessages.INVOKER_NEED_ENDORSED(loadedVersion.getVersion(), targetVersion.getVersion()));
protected ClassLoader createClassLoader() throws ClassNotFoundException, IOException { ClassLoader cl = getClass().getClassLoader(); if (doEndorsedMagic) { return Invoker.createClassLoader(cl); } else { Options.Target targetVersion; if (targetVersionAttribute != null) { targetVersion = Options.Target.parse(targetVersionAttribute); } else { targetVersion = Options.Target.getDefault(); } Options.Target loadedVersion = Options.Target.getLoadedAPIVersion(); //Check if the target version is supported by the loaded API version if (loadedVersion.isLaterThan(targetVersion)) { return cl; } else { if (Service.class.getClassLoader() == null) throw new BuildException(WscompileMessages.WRAPPER_TASK_NEED_ENDORSED(loadedVersion.getVersion(), targetVersion.getVersion())); else { throw new BuildException(WscompileMessages.WRAPPER_TASK_LOADING_INCORRECT_API(loadedVersion.getVersion(), Which.which(Service.class), targetVersion.getVersion())); } } } } }
protected ClassLoader createClassLoader() throws ClassNotFoundException, IOException { ClassLoader cl = getClass().getClassLoader(); if (doEndorsedMagic) { return Invoker.createClassLoader(cl); } else { Options.Target targetVersion; if (targetVersionAttribute != null) { targetVersion = Options.Target.parse(targetVersionAttribute); } else { targetVersion = Options.Target.getDefault(); } Options.Target loadedVersion = Options.Target.getLoadedAPIVersion(); //Check if the target version is supported by the loaded API version if (loadedVersion.isLaterThan(targetVersion)) { return cl; } else { if (Service.class.getClassLoader() == null) throw new BuildException(WscompileMessages.WRAPPER_TASK_NEED_ENDORSED(loadedVersion.getVersion(), targetVersion.getVersion())); else { throw new BuildException(WscompileMessages.WRAPPER_TASK_LOADING_INCORRECT_API(loadedVersion.getVersion(), Which.which(Service.class), targetVersion.getVersion())); } } } } }
protected ClassLoader createClassLoader() throws ClassNotFoundException, IOException { ClassLoader cl = getClass().getClassLoader(); if (doEndorsedMagic) { return Invoker.createClassLoader(cl); } else { Options.Target targetVersion; if (targetVersionAttribute != null) { targetVersion = Options.Target.parse(targetVersionAttribute); } else { targetVersion = Options.Target.getDefault(); } Options.Target loadedVersion = Options.Target.getLoadedAPIVersion(); //Check if the target version is supported by the loaded API version if (loadedVersion.isLaterThan(targetVersion)) { return cl; } else { if (Service.class.getClassLoader() == null) throw new BuildException(WscompileMessages.WRAPPER_TASK_NEED_ENDORSED(loadedVersion.getVersion(), targetVersion.getVersion())); else { throw new BuildException(WscompileMessages.WRAPPER_TASK_LOADING_INCORRECT_API(loadedVersion.getVersion(), Which.which(Service.class), targetVersion.getVersion())); } } } } }
protected ClassLoader createClassLoader() throws ClassNotFoundException, IOException { ClassLoader cl = getClass().getClassLoader(); if (doEndorsedMagic) { return Invoker.createClassLoader(cl); } else { Options.Target targetVersion; if (targetVersionAttribute != null) { targetVersion = Options.Target.parse(targetVersionAttribute); } else { targetVersion = Options.Target.getDefault(); } Options.Target loadedVersion = Options.Target.getLoadedAPIVersion(); //Check if the target version is supported by the loaded API version if (loadedVersion.isLaterThan(targetVersion)) { return cl; } else { if (Service.class.getClassLoader() == null) throw new BuildException(WscompileMessages.WRAPPER_TASK_NEED_ENDORSED(loadedVersion.getVersion(), targetVersion.getVersion())); else { throw new BuildException(WscompileMessages.WRAPPER_TASK_LOADING_INCORRECT_API(loadedVersion.getVersion(), Which.which(Service.class), targetVersion.getVersion())); } } } } }
public static List<InputSource> build(WSDLModeler wsdlModeler, WsimportOptions options, ErrorReceiver errReceiver) { PseudoSchemaBuilder b = new PseudoSchemaBuilder(wsdlModeler.document); b.wsdlModeler = wsdlModeler; b.options = options; b.build(); int i; for(i = 0; i < b.schemas.size(); i++){ InputSource is = b.schemas.get(i); is.setSystemId(sysId+(i + 1)); } //add w3c EPR binding if(!(options.noAddressingBbinding) && options.target.isLaterThan(Options.Target.V2_1)){ InputSource is = new InputSource(new ByteArrayInputStream(getUTF8Bytes(w3ceprSchemaBinding))); is.setSystemId(sysId+(++i +1)); b.schemas.add(is); } //TODO: uncomment after JAXB fixes the issue related to passing multiples of such bindings //add member submission EPR binding // InputSource is1 = new InputSource(new ByteArrayInputStream(memberSubmissionEPR.getBytes())); // is1.setSystemId(sysId+(++i + 1)); // b.schemas.add(is1); return b.schemas; }
public void init(Model model, WsimportOptions options, ErrorReceiver receiver, TJavaGeneratorExtension... extensions) { init(model, options, receiver); extensionHandlers = new ArrayList<TJavaGeneratorExtension>(); // register handlers for default extensions // 2.2 Spec requires generation of @Action when wsam:Action is explicitly stated in wsdl if (options.target.isLaterThan(Options.Target.V2_2)) { register(new W3CAddressingJavaGeneratorExtension()); } for (TJavaGeneratorExtension j : extensions) { register(j); } this.extension = new JavaGeneratorExtensionFacade(extensionHandlers.toArray(new TJavaGeneratorExtension[extensionHandlers.size()])); }
public void init(Model model, WsimportOptions options, ErrorReceiver receiver, TJavaGeneratorExtension... extensions) { init(model, options, receiver); extensionHandlers = new ArrayList<TJavaGeneratorExtension>(); // register handlers for default extensions // 2.2 Spec requires generation of @Action when wsam:Action is explicitly stated in wsdl if (options.target.isLaterThan(Options.Target.V2_2)) { register(new W3CAddressingJavaGeneratorExtension()); } for (TJavaGeneratorExtension j : extensions) { register(j); } this.extension = new JavaGeneratorExtensionFacade(extensionHandlers.toArray(new TJavaGeneratorExtension[extensionHandlers.size()])); }
public void init(Model model, WsimportOptions options, ErrorReceiver receiver, TJavaGeneratorExtension... extensions) { init(model, options, receiver); extensionHandlers = new ArrayList<TJavaGeneratorExtension>(); // register handlers for default extensions // 2.2 Spec requires generation of @Action when wsam:Action is explicitly stated in wsdl if (options.target.isLaterThan(Options.Target.V2_2)) { register(new W3CAddressingJavaGeneratorExtension()); } for (TJavaGeneratorExtension j : extensions) { register(j); } this.extension = new JavaGeneratorExtensionFacade(extensionHandlers.toArray(new TJavaGeneratorExtension[extensionHandlers.size()])); }
public void init(Model model, WsimportOptions options, ErrorReceiver receiver, TJavaGeneratorExtension... extensions) { init(model, options, receiver); extensionHandlers = new ArrayList<TJavaGeneratorExtension>(); // register handlers for default extensions // 2.2 Spec requires generation of @Action when wsam:Action is explicitly stated in wsdl if (options.target.isLaterThan(Options.Target.V2_2)) { register(new W3CAddressingJavaGeneratorExtension()); } for (TJavaGeneratorExtension j : extensions) { register(j); } this.extension = new JavaGeneratorExtensionFacade(extensionHandlers.toArray(new TJavaGeneratorExtension[extensionHandlers.size()])); }