/** * Create the WSDL Definition object and return it. This function will never create * imports to schemas. * @return the WSDL definition. * @throws WSDLException */ public Definition build() throws WSDLException { useSchemaImports = false; return build(null); }
/** * Create the WSDL Definition object and return it. This function will never create * imports to schemas. * @return the WSDL definition. * @throws WSDLException */ public Definition build() throws WSDLException { useSchemaImports = false; return build(null); }
/** * Create the WSDL Definition object and return it. This function will never create * imports to schemas. * @return the WSDL definition. * @throws WSDLException */ public Definition build() throws WSDLException { useSchemaImports = false; return build(null); }
protected Definition getDefinition(EndpointInfo endpointInfo) throws WSDLException { return new ServiceWSDLBuilder(bus, endpointInfo.getService()).build(); }
/** * Return a WSDL definition model for a server. * * @param server the server. * @return the definition. * @throws WSDLException */ public Definition getWSDLDefinition(Server server) throws WSDLException { Service service = server.getEndpoint().getService(); ServiceWSDLBuilder wsdlBuilder = new ServiceWSDLBuilder(bus, service.getServiceInfos().get(0)); wsdlBuilder.setUseSchemaImports(false); return wsdlBuilder.build(); }
/** * Return a WSDL definition model for a server. * * @param server the server. * @return the definition. * @throws WSDLException */ public Definition getWSDLDefinition(Server server) throws WSDLException { Service service = server.getEndpoint().getService(); ServiceWSDLBuilder wsdlBuilder = new ServiceWSDLBuilder(bus, service.getServiceInfos().get(0)); wsdlBuilder.setUseSchemaImports(false); return wsdlBuilder.build(); }
/** * Return a WSDL definition model for a server. * * @param server the server. * @return the definition. * @throws WSDLException */ public Definition getWSDLDefinition(Server server) throws WSDLException { Service service = server.getEndpoint().getService(); ServiceWSDLBuilder wsdlBuilder = new ServiceWSDLBuilder(bus, service.getServiceInfos().get(0)); wsdlBuilder.setUseSchemaImports(false); return wsdlBuilder.build(); }
/** * Create a wsdl Definition object from the endpoint information and register * it in the local data structure for future reference. * * @param bus CXF's hub for access to internal constructs * @param mp a map of known wsdl Definition objects * @param message * @param smp a map of known xsd SchemaReference objects * @param base the request URL * @param endpointInfo information for a web service 'port' inside of a service * @throws WSDLException */ protected void updateWSDLKeyDefinition(Bus bus, Map<String, Definition> mp, Message message, Map<String, SchemaReference> smp, String base, EndpointInfo endpointInfo) throws WSDLException { if (!mp.containsKey("")) { ServiceWSDLBuilder builder = new ServiceWSDLBuilder(bus, endpointInfo.getService()); builder.setUseSchemaImports( MessageUtils.getContextualBoolean(message, WSDL_CREATE_IMPORTS, false)); // base file name is ignored if createSchemaImports == false! builder.setBaseFileName(endpointInfo.getService().getName().getLocalPart()); Definition def = builder.build(new HashMap<String, SchemaInfo>()); mp.put("", def); updateDefinition(bus, def, mp, smp, base, "", ""); } }
/** * Create a wsdl Definition object from the endpoint information and register * it in the local data structure for future reference. * * @param bus CXF's hub for access to internal constructs * @param mp a map of known wsdl Definition objects * @param message * @param smp a map of known xsd SchemaReference objects * @param base the request URL * @param endpointInfo information for a web service 'port' inside of a service * @throws WSDLException */ protected void updateWSDLKeyDefinition(Bus bus, Map<String, Definition> mp, Message message, Map<String, SchemaReference> smp, String base, EndpointInfo endpointInfo) throws WSDLException { if (!mp.containsKey("")) { ServiceWSDLBuilder builder = new ServiceWSDLBuilder(bus, endpointInfo.getService()); builder.setUseSchemaImports( MessageUtils.getContextualBoolean(message, WSDL_CREATE_IMPORTS, false)); // base file name is ignored if createSchemaImports == false! builder.setBaseFileName(endpointInfo.getService().getName().getLocalPart()); Definition def = builder.build(new HashMap<String, SchemaInfo>()); mp.put("", def); updateDefinition(bus, def, mp, smp, base, "", ""); } }
Definition def = builder.build();
def = builder.build(imports); wsdlWriter.writeWSDL(def, os); os.close();
def = builder.build(imports); wsdlWriter.writeWSDL(def, os); os.close();
@Override protected Definition getDefinition(EndpointInfo endpointInfo) throws WSDLException { WSDLManager wsdlManager = bus.getExtension(WSDLManager.class); if (wsdlManager != null) { String wsdlLocation = endpointInfo.getService().getProperty(CxfConstants.WSDL_LOCATION, String.class); if(wsdlLocation != null) { return loadDefinition(wsdlManager, wsdlLocation); } } return new ServiceWSDLBuilder(bus, endpointInfo.getService()).build(); }
.iterator().next()).build(); EndpointInfo ei = server.getEndpoint().getService().getServiceInfos().iterator().next() .getEndpoints().iterator().next(); opInfo.setProperty(WSDLServiceBuilder.WSDL_OPERATION, null); description = WSDLFactory.newInstance().newWSDLWriter().getDocument(swBuilder.build()); } catch (WSDLException ex) { throw new DeploymentException(ex);
.getDocument(swBuilder.build()); if (endpoint == null) { endpoint = ei.getName().getLocalPart();