private List<ServiceInfo> buildServices(Definition d, QName name, QName endpointName, DescriptionInfo description) { Service service = d.getService(name); if (service == null) { org.apache.cxf.common.i18n.Message msg = new org.apache.cxf.common.i18n.Message("MISSING_SERVICE", LOG, name); throw new WSDLRuntimeException(msg); } return buildServices(d, service, endpointName, description); }
private List<ServiceInfo> buildServices(Definition d, QName name, QName endpointName, DescriptionInfo description) { Service service = d.getService(name); if (service == null) { org.apache.cxf.common.i18n.Message msg = new org.apache.cxf.common.i18n.Message("MISSING_SERVICE", LOG, name); throw new WSDLRuntimeException(msg); } return buildServices(d, service, endpointName, description); }
private List<ServiceInfo> buildServices(Definition d, QName name, QName endpointName, DescriptionInfo description) { Service service = d.getService(name); if (service == null) { org.apache.cxf.common.i18n.Message msg = new org.apache.cxf.common.i18n.Message("MISSING_SERVICE", LOG, name); throw new WSDLRuntimeException(msg); } return buildServices(d, service, endpointName, description); }
@SuppressWarnings("unchecked") protected void parseWSDL(String wsdlURL) { try { WSDLManager mgr = bus.getExtension(WSDLManager.class); registerWSDLExtensibilityPlugins(mgr.getExtensionRegistry()); wsdlDefinition = mgr.getDefinition(wsdlURL); parseImports(wsdlDefinition); if (wsdlDefinition.getServices().isEmpty()) { for (Definition def : importedDefinitions) { Set<QName> services = def.getServices().keySet(); for (QName sName : services) { if (!wsdlDefinition.getServices().keySet().contains(sName)) { wsdlDefinition.getServices().put(sName, def.getService(sName)); } } } } } catch (Exception we) { Message msg = new Message("FAIL_TO_CREATE_WSDL_DEFINITION", LOG, wsdlURL, we.getMessage()); throw new WSDLRuntimeException(msg, we); } }
@SuppressWarnings("unchecked") protected void parseWSDL(String wsdlURL) { try { WSDLManager mgr = bus.getExtension(WSDLManager.class); registerWSDLExtensibilityPlugins(mgr.getExtensionRegistry()); wsdlDefinition = mgr.getDefinition(wsdlURL); parseImports(wsdlDefinition); if (wsdlDefinition.getServices().isEmpty()) { for (Definition def : importedDefinitions) { Set<QName> services = def.getServices().keySet(); for (QName sName : services) { if (!wsdlDefinition.getServices().keySet().contains(sName)) { wsdlDefinition.getServices().put(sName, def.getService(sName)); } } } } } catch (Exception we) { Message msg = new Message("FAIL_TO_CREATE_WSDL_DEFINITION", LOG, wsdlURL, we.getMessage()); throw new WSDLRuntimeException(msg, we); } }
@SuppressWarnings("unchecked") protected void parseWSDL(String wsdlURL) { try { WSDLManager mgr = bus.getExtension(WSDLManager.class); registerWSDLExtensibilityPlugins(mgr.getExtensionRegistry()); wsdlDefinition = mgr.getDefinition(wsdlURL); parseImports(wsdlDefinition); if (wsdlDefinition.getServices().isEmpty()) { for (Definition def : importedDefinitions) { Set<QName> services = def.getServices().keySet(); for (QName sName : services) { if (!wsdlDefinition.getServices().keySet().contains(sName)) { wsdlDefinition.getServices().put(sName, def.getService(sName)); } } } } } catch (Exception we) { Message msg = new Message("FAIL_TO_CREATE_WSDL_DEFINITION", LOG, wsdlURL, we.getMessage()); throw new WSDLRuntimeException(msg, we); } }
@SuppressWarnings("unchecked") protected void parseWSDL(String wsdlURL) { try { WSDLManager mgr = bus.getExtension(WSDLManager.class); registerWSDLExtensibilityPlugins(mgr.getExtensionRegistry()); wsdlDefinition = mgr.getDefinition(wsdlURL); parseImports(wsdlDefinition); if (wsdlDefinition.getServices().isEmpty()) { for (Definition def : importedDefinitions) { Set<QName> services = def.getServices().keySet(); for (QName sName : services) { if (!wsdlDefinition.getServices().keySet().contains(sName)) { wsdlDefinition.getServices().put(sName, def.getService(sName)); } } } } } catch (Exception we) { Message msg = new Message("FAIL_TO_CREATE_WSDL_DEFINITION", LOG, wsdlURL, we.getMessage()); throw new WSDLRuntimeException(msg, we); } }
if (input != null) { if (input.getMessage() == null) { throw new WSDLRuntimeException(LOG, "NO_MESSAGE", "input", op.getName(), input.getName()); if (output != null) { if (output.getMessage() == null) { throw new WSDLRuntimeException(LOG, "NO_MESSAGE", "output", op.getName(), output.getName());
LOG, port.getName()); throw new WSDLRuntimeException(msg);
LOG, port.getName()); throw new WSDLRuntimeException(msg);
if (input != null) { if (input.getMessage() == null) { throw new WSDLRuntimeException(LOG, "NO_MESSAGE", "input", op.getName(), input.getName()); if (output != null) { if (output.getMessage() == null) { throw new WSDLRuntimeException(LOG, "NO_MESSAGE", "output", op.getName(), output.getName());
LOG, port.getName()); throw new WSDLRuntimeException(msg);
if (input != null) { if (input.getMessage() == null) { throw new WSDLRuntimeException(LOG, "NO_MESSAGE", "input", op.getName(), input.getName()); if (output != null) { if (output.getMessage() == null) { throw new WSDLRuntimeException(LOG, "NO_MESSAGE", "output", op.getName(), output.getName());
LOG, binding.getQName()); throw new WSDLRuntimeException(msg);
LOG, binding.getQName()); throw new WSDLRuntimeException(msg);
part.getName(), part.getElementName()); throw new WSDLRuntimeException(errorMessage); LOG, part.getName()); throw new WSDLRuntimeException(errorMessage);
part.getName(), part.getElementName()); throw new WSDLRuntimeException(errorMessage); LOG, part.getName()); throw new WSDLRuntimeException(errorMessage);
LOG, binding.getQName()); throw new WSDLRuntimeException(msg);
part.getName(), part.getElementName()); throw new WSDLRuntimeException(errorMessage); LOG, part.getName()); throw new WSDLRuntimeException(errorMessage);