Options.Target targetVersion; if (targetArgIndex != -1) { targetVersion = Options.Target.parse(args[targetArgIndex+1]); } else { targetVersion = Options.Target.getDefault(); Options.Target loadedVersion = Options.Target.getLoadedAPIVersion(); if (!loadedVersion.isLaterThan(targetVersion)) { if (Service.class.getClassLoader() == null) System.err.println(WscompileMessages.INVOKER_NEED_ENDORSED(loadedVersion.getVersion(), targetVersion.getVersion())); else { System.err.println(WscompileMessages.WRAPPER_TASK_LOADING_INCORRECT_API(loadedVersion.getVersion(), Which.which(Service.class), targetVersion.getVersion()));
if (options.target.isLaterThan(Options.Target.V2_2)) { JMethod constructor2 = cls.constructor(JMod.PUBLIC); constructor2.varParam(WebServiceFeature.class, "features"); if (options.target.isLaterThan(Options.Target.V2_2)) { JMethod constructor3 = cls.constructor(JMod.PUBLIC); constructor3.param(URL.class, "wsdlLocation"); if (options.target.isLaterThan(Options.Target.V2_2)) { JMethod constructor4 = cls.constructor(JMod.PUBLIC); constructor4.param(URL.class, "wsdlLocation"); if (options.target.isLaterThan(Options.Target.V2_2)) { JMethod constructor6 = cls.constructor(JMod.PUBLIC); constructor6.param(URL.class, "wsdlLocation"); if (options.target.isLaterThan(Options.Target.V2_1)) { writeGetPort(port, retType, cls);
if (options.target.isLaterThan(Options.Target.V2_2)) { JMethod constructor2 = cls.constructor(JMod.PUBLIC); constructor2.varParam(WebServiceFeature.class, "features"); if (options.target.isLaterThan(Options.Target.V2_2)) { JMethod constructor3 = cls.constructor(JMod.PUBLIC); constructor3.param(URL.class, "wsdlLocation"); if (options.target.isLaterThan(Options.Target.V2_2)) { JMethod constructor4 = cls.constructor(JMod.PUBLIC); constructor4.param(URL.class, "wsdlLocation"); if (options.target.isLaterThan(Options.Target.V2_2)) { JMethod constructor6 = cls.constructor(JMod.PUBLIC); constructor6.param(URL.class, "wsdlLocation"); if (options.target.isLaterThan(Options.Target.V2_1)) { writeGetPort(port, retType, cls);
if (options.target.isLaterThan(Options.Target.V2_2)) { JMethod constructor2 = cls.constructor(JMod.PUBLIC); constructor2.varParam(WebServiceFeature.class, "features"); if (options.target.isLaterThan(Options.Target.V2_2)) { JMethod constructor3 = cls.constructor(JMod.PUBLIC); constructor3.param(URL.class, "wsdlLocation"); if (options.target.isLaterThan(Options.Target.V2_2)) { JMethod constructor4 = cls.constructor(JMod.PUBLIC); constructor4.param(URL.class, "wsdlLocation"); if (options.target.isLaterThan(Options.Target.V2_2)) { JMethod constructor6 = cls.constructor(JMod.PUBLIC); constructor6.param(URL.class, "wsdlLocation"); if (options.target.isLaterThan(Options.Target.V2_1)) { writeGetPort(port, retType, cls);
if (options.target.isLaterThan(Options.Target.V2_2)) { JMethod constructor2 = cls.constructor(JMod.PUBLIC); constructor2.varParam(WebServiceFeature.class, "features"); if (options.target.isLaterThan(Options.Target.V2_2)) { JMethod constructor3 = cls.constructor(JMod.PUBLIC); constructor3.param(URL.class, "wsdlLocation"); if (options.target.isLaterThan(Options.Target.V2_2)) { JMethod constructor4 = cls.constructor(JMod.PUBLIC); constructor4.param(URL.class, "wsdlLocation"); if (options.target.isLaterThan(Options.Target.V2_2)) { JMethod constructor6 = cls.constructor(JMod.PUBLIC); constructor6.param(URL.class, "wsdlLocation"); if (options.target.isLaterThan(Options.Target.V2_1)) { writeGetPort(port, retType, 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);
} else if (args[i].equals("-target")) { String token = requireArgument("-target", args, ++i); target = Target.parse(token); if(target == null) throw new BadCommandLineException(WscompileMessages.WSIMPORT_ILLEGAL_TARGET_VERSION(token));
if (options.target.isLaterThan(Options.Target.V2_1)) { writeXmlSeeAlso(cls);
} else if (args[i].equals("-target")) { String token = requireArgument("-target", args, ++i); target = Target.parse(token); if(target == null) throw new BadCommandLineException(WscompileMessages.WSIMPORT_ILLEGAL_TARGET_VERSION(token));
} else if (args[i].equals("-target")) { String token = requireArgument("-target", args, ++i); target = Target.parse(token); if(target == null) throw new BadCommandLineException(WscompileMessages.WSIMPORT_ILLEGAL_TARGET_VERSION(token));
} else if (args[i].equals("-target")) { String token = requireArgument("-target", args, ++i); target = Target.parse(token); if(target == null) throw new BadCommandLineException(WscompileMessages.WSIMPORT_ILLEGAL_TARGET_VERSION(token));
Options.Target targetVersion; if (targetArgIndex != -1) { targetVersion = Options.Target.parse(args[targetArgIndex+1]); } else { targetVersion = Options.Target.getDefault(); Options.Target loadedVersion = Options.Target.getLoadedAPIVersion(); if (!loadedVersion.isLaterThan(targetVersion)) { if (Service.class.getClassLoader() == null) System.err.println(WscompileMessages.INVOKER_NEED_ENDORSED(loadedVersion.getVersion(), targetVersion.getVersion())); else { System.err.println(WscompileMessages.WRAPPER_TASK_LOADING_INCORRECT_API(loadedVersion.getVersion(), Which.which(Service.class), targetVersion.getVersion()));
Options.Target targetVersion; if (targetArgIndex != -1) { targetVersion = Options.Target.parse(args[targetArgIndex+1]); } else { targetVersion = Options.Target.getDefault(); Options.Target loadedVersion = Options.Target.getLoadedAPIVersion(); if (!loadedVersion.isLaterThan(targetVersion)) { if (Service.class.getClassLoader() == null) System.err.println(WscompileMessages.INVOKER_NEED_ENDORSED(loadedVersion.getVersion(), targetVersion.getVersion())); else { System.err.println(WscompileMessages.WRAPPER_TASK_LOADING_INCORRECT_API(loadedVersion.getVersion(), Which.which(Service.class), targetVersion.getVersion()));
Options.Target targetVersion; if (targetArgIndex != -1) { targetVersion = Options.Target.parse(args[targetArgIndex+1]); } else { targetVersion = Options.Target.getDefault(); Options.Target loadedVersion = Options.Target.getLoadedAPIVersion(); if (!loadedVersion.isLaterThan(targetVersion)) { if (Service.class.getClassLoader() == null) System.err.println(WscompileMessages.INVOKER_NEED_ENDORSED(loadedVersion.getVersion(), targetVersion.getVersion())); else { System.err.println(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 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; }
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())); } } } } }