private boolean outputTypeCompatible(DataType wrapperType, DataType outputType, Map<String, XMLTypeHelper> helpers) { // TUSCANY-3283 - use same algorithm as input types as we now support // multiple output values so the real output types will // be wrapped in an "idl:output" data type /* if (getTypeHelper(outputType, helpers) != getTypeHelper(wrapperType, helpers)) { return false; } else { return true; } */ return inputTypesCompatible(wrapperType, outputType, helpers); }
private boolean inputTypesCompatible(DataType wrapperType, DataType<List<DataType>> inputType, Map<String, XMLTypeHelper> helpers) { XMLTypeHelper wrapperHelper = getTypeHelper(wrapperType, helpers); for (DataType dt : inputType.getLogical()) { if (getTypeHelper(dt, helpers) != wrapperHelper) { return false; } } return true; }
public Service createService(Definition definition, PortType portType, String serviceName) { try { Service service = definition.createService(); configureService(definition, service, portType, serviceName); definition.addService(service); return service; } catch (WSDLException e) { throw new WSDLGenerationException(e); } }
private static boolean importPortType(PortType portType, WSDLDefinition wsdlDef, Definition newDef, List<WSDLDefinition> imports) { return addImport(portType.getQName(), PortType.class, wsdlDef, newDef, imports); }
public WSDLDefinitionGenerator(WebServiceBinding wsBinding) { this(BindingWSDLGenerator.requiresSOAP12(wsBinding)); wsBindingName = wsBinding.getName(); }
public Schema createSchemaExt(Definition definition) throws WSDLException { Types types = definition.getTypes(); if (types == null) { types = definition.createTypes(); definition.setTypes(types); } Schema schemaExt = createSchema(definition); types.addExtensibilityElement(schemaExt); return schemaExt; }
public Document createDocument() { Document document; try { if (documentBuilderFactory == null) { documentBuilderFactory = DocumentBuilderFactory.newInstance(); documentBuilderFactory.setNamespaceAware(true); } document = documentBuilderFactory.newDocumentBuilder().newDocument(); } catch (ParserConfigurationException ex) { throw new WSDLGenerationException(ex); } // document.setDocumentURI("http://"); return document; }
/** * Report a warning. * @param message * @param binding * @param parameters */ private static void warning(Monitor monitor, String message, WebServiceBinding wsBinding, String... messageParameters) { Problem problem = monitor.createProblem(BindingWSDLGenerator.class.getName(), "wsdlgen-validation-messages", Severity.WARNING, wsBinding, message, (Object[])messageParameters); if (monitor != null) { monitor.problem(problem); } else { logWarning(problem); } }
/** * Report a warning. * @param message * @param binding * @param parameters */ private static void warning(Monitor monitor, String message, WebServiceBinding wsBinding, String... messageParameters) { Problem problem = monitor.createProblem(WSDLServiceGenerator.class.getName(), "wsdlgen-validation-messages", Severity.WARNING, wsBinding, message, (Object[])messageParameters); if (monitor != null) { monitor.problem(problem); } else { logWarning(problem); } }
public Service createService(Definition definition, PortType portType, String serviceName) { try { Service service = definition.createService(); configureService(definition, service, portType, serviceName); definition.addService(service); return service; } catch (WSDLException e) { throw new WSDLGenerationException(e); } }
private boolean outputTypeCompatible(DataType wrapperType, DataType outputType, Map<String, XMLTypeHelper> helpers) { // TUSCANY-3283 - use same algorithm as input types as we now support // multiple output values so the real output types will // be wrapped in an "idl:output" data type /* if (getTypeHelper(outputType, helpers) != getTypeHelper(wrapperType, helpers)) { return false; } else { return true; } */ return inputTypesCompatible(wrapperType, outputType, helpers); }
private static boolean importPortType(PortType portType, WSDLDefinition wsdlDef, Definition newDef, List<WSDLDefinition> imports) { return addImport(portType.getQName(), PortType.class, wsdlDef, newDef, imports); }
private boolean inputTypesCompatible(DataType wrapperType, DataType<List<DataType>> inputType, Map<String, XMLTypeHelper> helpers) { XMLTypeHelper wrapperHelper = getTypeHelper(wrapperType, helpers); for (DataType dt : inputType.getLogical()) { if (getTypeHelper(dt, helpers) != wrapperHelper) { return false; } } return true; }
public WSDLDefinitionGenerator(WebServiceBinding wsBinding) { this(BindingWSDLGenerator.requiresSOAP12(wsBinding)); wsBindingName = wsBinding.getName(); }
public Schema createSchemaExt(Definition definition) throws WSDLException { Types types = definition.getTypes(); if (types == null) { types = definition.createTypes(); definition.setTypes(types); } Schema schemaExt = createSchema(definition); types.addExtensibilityElement(schemaExt); return schemaExt; }
public Document createDocument() { Document document; try { if (documentBuilderFactory == null) { documentBuilderFactory = DocumentBuilderFactory.newInstance(); documentBuilderFactory.setNamespaceAware(true); } document = documentBuilderFactory.newDocumentBuilder().newDocument(); } catch (ParserConfigurationException ex) { throw new WSDLGenerationException(ex); } // document.setDocumentURI("http://"); return document; }
/** * Report a warning. * @param message * @param binding * @param parameters */ private static void warning(Monitor monitor, String message, WebServiceBinding wsBinding, String... messageParameters) { Problem problem = monitor.createProblem(BindingWSDLGenerator.class.getName(), "wsdlgen-validation-messages", Severity.WARNING, wsBinding, message, (Object[])messageParameters); if (monitor != null) { monitor.problem(problem); } else { logWarning(problem); } }
/** * Report a warning. * @param message * @param binding * @param parameters */ private static void warning(Monitor monitor, String message, WebServiceBinding wsBinding, String... messageParameters) { Problem problem = monitor.createProblem(WSDLServiceGenerator.class.getName(), "wsdlgen-validation-messages", Severity.WARNING, wsBinding, message, (Object[])messageParameters); if (monitor != null) { monitor.problem(problem); } else { logWarning(problem); } }
public Service createService(Definition definition, Binding binding, String serviceName) { try { Service service = definition.createService(); configureService(definition, service, binding.getPortType(), serviceName); definition.addService(service); return service; } catch (WSDLException e) { throw new WSDLGenerationException(e); } }
public Service createService(Definition definition, Binding binding, String serviceName) { try { Service service = definition.createService(); configureService(definition, service, binding.getPortType(), serviceName); definition.addService(service); return service; } catch (WSDLException e) { throw new WSDLGenerationException(e); } }