bindingInfo.getService().setProperty("soap.force.doclit.bare", Boolean.TRUE); if (this.getServiceFactory().isPopulateFromClass()) { for (EndpointInfo ei : bindingInfo.getService().getEndpoints()) {
si.setProperty("soap.force.doclit.bare", Boolean.TRUE); if (!isFromWsdl()) { for (EndpointInfo ei : si.getEndpoints()) {
si.setProperty("soap.force.doclit.bare", Boolean.TRUE); if (null == wsdlURL) { for (EndpointInfo ei : si.getEndpoints()) {
public static Schema getSchema(ServiceInfo serviceInfo, Bus b) { if (serviceInfo == null) { return null; } Schema schema = serviceInfo.getProperty(Schema.class.getName(), Schema.class); if (schema == null && !serviceInfo.hasProperty(Schema.class.getName() + ".CHECKED")) { try { synchronized (serviceInfo) { return createSchema(serviceInfo, b); } } finally { serviceInfo.setProperty(Schema.class.getName() + ".CHECKED", Boolean.TRUE); } } return schema; }
public static Schema getSchema(ServiceInfo serviceInfo, Bus b) { if (serviceInfo == null) { return null; } Schema schema = serviceInfo.getProperty(Schema.class.getName(), Schema.class); if (schema == null && !serviceInfo.hasProperty(Schema.class.getName() + ".CHECKED")) { try { synchronized (serviceInfo) { return createSchema(serviceInfo, b); } } finally { serviceInfo.setProperty(Schema.class.getName() + ".CHECKED", Boolean.TRUE); } } return schema; }
public static Schema getSchema(ServiceInfo serviceInfo, Bus b) { if (serviceInfo == null) { return null; } Schema schema = serviceInfo.getProperty(Schema.class.getName(), Schema.class); if (schema == null && !serviceInfo.hasProperty(Schema.class.getName() + ".CHECKED")) { try { synchronized (serviceInfo) { return createSchema(serviceInfo, b); } } finally { serviceInfo.setProperty(Schema.class.getName() + ".CHECKED", Boolean.TRUE); } } return schema; }
public static Schema getSchema(ServiceInfo serviceInfo, Bus b) { if (serviceInfo == null) { return null; } Schema schema = serviceInfo.getProperty(Schema.class.getName(), Schema.class); if (schema == null && !serviceInfo.hasProperty(Schema.class.getName() + ".CHECKED")) { try { synchronized (serviceInfo) { return createSchema(serviceInfo, b); } } finally { serviceInfo.setProperty(Schema.class.getName() + ".CHECKED", Boolean.TRUE); } } return schema; }
public void validate(final ServiceInfo service) throws ToolException { for (ServiceValidator validator : getServiceValidators()) { service.setProperty(ToolContext.class.getName(), context); validator.setService(service); if (!validator.isValid()) { throw new ToolException(validator.getErrorMessage()); } } }
public void validate(final ServiceInfo service) throws ToolException { for (ServiceValidator validator : getServiceValidators()) { service.setProperty(ToolContext.class.getName(), context); validator.setService(service); if (!validator.isValid()) { throw new ToolException(validator.getErrorMessage()); } } }
public void validate(final ServiceInfo service) throws ToolException { for (ServiceValidator validator : getServiceValidators()) { service.setProperty(ToolContext.class.getName(), context); validator.setService(service); if (!validator.isValid()) { throw new ToolException(validator.getErrorMessage()); } } }
public static CorbaTypeMap get(ServiceInfo service) { if (service != null) { synchronized (service) { CorbaTypeMap map = service.getProperty(KEY, CorbaTypeMap.class); if (map == null) { List<TypeMappingType> corbaTypes = service.getDescription() .getExtensors(TypeMappingType.class); if (corbaTypes != null) { map = CorbaUtils.createCorbaTypeMap(corbaTypes); service.setProperty(KEY, map); } } return map; } } return null; } }
/** * Retrieve the map of known wsdl Definition objects for this endpoint. * * @param endpointInfo information for a web service 'port' inside of a service * @return Map<String, Definition> */ protected Map<String, Definition> getWSDLKeyDefinition(EndpointInfo endpointInfo) { Map<String, Definition> mp = CastUtils.cast((Map<?, ?>)endpointInfo.getService() .getProperty(WSDLS_KEY)); if (mp == null) { endpointInfo.getService().setProperty(WSDLS_KEY, new ConcurrentHashMap<String, Definition>(8, 0.75f, 4)); mp = CastUtils.cast((Map<?, ?>)endpointInfo.getService().getProperty(WSDLS_KEY)); } return mp; }
/** * Retrieve the map of known xsd SchemaReference objects for this endpoint. * * @param endpointInfo information for a web service 'port' inside of a service * @return Map<String, SchemaReference> */ protected Map<String, SchemaReference> getSchemaKeySchemaReference(EndpointInfo endpointInfo) { Map<String, SchemaReference> smp = CastUtils.cast((Map<?, ?>)endpointInfo.getService() .getProperty(SCHEMAS_KEY)); if (smp == null) { endpointInfo.getService().setProperty(SCHEMAS_KEY, new ConcurrentHashMap<String, SchemaReference>(8, 0.75f, 4)); smp = CastUtils.cast((Map<?, ?>)endpointInfo.getService() .getProperty(SCHEMAS_KEY)); } return smp; }
/** * Retrieve the map of known wsdl Definition objects for this endpoint. * * @param endpointInfo information for a web service 'port' inside of a service * @return Map<String, Definition> */ protected Map<String, Definition> getWSDLKeyDefinition(EndpointInfo endpointInfo) { Map<String, Definition> mp = CastUtils.cast((Map<?, ?>)endpointInfo.getService() .getProperty(WSDLS_KEY)); if (mp == null) { endpointInfo.getService().setProperty(WSDLS_KEY, new ConcurrentHashMap<String, Definition>(8, 0.75f, 4)); mp = CastUtils.cast((Map<?, ?>)endpointInfo.getService().getProperty(WSDLS_KEY)); } return mp; }
void createService(ProtocolVariation protocol) { ServiceInfo si = new ServiceInfo(); si.setProperty(Schema.class.getName(), getSchema()); QName serviceQName = new QName(protocol.getWSRMNamespace(), SERVICE_NAME); si.setName(serviceQName); buildInterfaceInfo(si, protocol); WrappedService service = new WrappedService(applicationEndpoint.getService(), serviceQName, si); DataBinding dataBinding = null; Class<?> create = protocol.getCodec().getCreateSequenceType(); try { JAXBContext ctx = JAXBContext.newInstance(PackageUtils.getPackageName(create), create.getClassLoader()); dataBinding = new JAXBDataBinding(ctx); } catch (JAXBException e) { throw new ServiceConstructionException(e); } service.setDataBinding(dataBinding); service.setInvoker(servant); services.put(protocol, service); }
/** * Retrieve the map of known xsd SchemaReference objects for this endpoint. * * @param endpointInfo information for a web service 'port' inside of a service * @return Map<String, SchemaReference> */ protected Map<String, SchemaReference> getSchemaKeySchemaReference(EndpointInfo endpointInfo) { Map<String, SchemaReference> smp = CastUtils.cast((Map<?, ?>)endpointInfo.getService() .getProperty(SCHEMAS_KEY)); if (smp == null) { endpointInfo.getService().setProperty(SCHEMAS_KEY, new ConcurrentHashMap<String, SchemaReference>(8, 0.75f, 4)); smp = CastUtils.cast((Map<?, ?>)endpointInfo.getService() .getProperty(SCHEMAS_KEY)); } return smp; }
public ServiceInfo buildMockService(Definition def, PortType p) { DescriptionInfo description = new DescriptionInfo(); if (recordOriginal) { description.setProperty(WSDL_DEFINITION, def); } description.setName(def.getQName()); description.setBaseURI(def.getDocumentBaseURI()); copyExtensors(description, def.getExtensibilityElements()); copyExtensionAttributes(description, def); ServiceInfo service = new ServiceInfo(); service.setDescription(description); if (recordOriginal) { service.setProperty(WSDL_DEFINITION, def); } getSchemas(def, service); service.setProperty(WSDL_SCHEMA_ELEMENT_LIST, this.schemaList); buildInterface(service, p); return service; }
public ServiceInfo buildMockService(Definition def, PortType p) { DescriptionInfo description = new DescriptionInfo(); if (recordOriginal) { description.setProperty(WSDL_DEFINITION, def); } description.setName(def.getQName()); description.setBaseURI(def.getDocumentBaseURI()); copyExtensors(description, def.getExtensibilityElements()); copyExtensionAttributes(description, def); ServiceInfo service = new ServiceInfo(); service.setDescription(description); if (recordOriginal) { service.setProperty(WSDL_DEFINITION, def); } getSchemas(def, service); service.setProperty(WSDL_SCHEMA_ELEMENT_LIST, this.schemaList); buildInterface(service, p); return service; }
public ServiceInfo buildMockService(Definition def, PortType p) { DescriptionInfo description = new DescriptionInfo(); if (recordOriginal) { description.setProperty(WSDL_DEFINITION, def); } description.setName(def.getQName()); description.setBaseURI(def.getDocumentBaseURI()); copyExtensors(description, def.getExtensibilityElements()); copyExtensionAttributes(description, def); ServiceInfo service = new ServiceInfo(); service.setDescription(description); if (recordOriginal) { service.setProperty(WSDL_DEFINITION, def); } getSchemas(def, service); service.setProperty(WSDL_SCHEMA_ELEMENT_LIST, this.schemaList); buildInterface(service, p); return service; }
if (cls != null && !cls.isEmpty()) { for (ServiceInfo si : getService().getServiceInfos()) { si.setProperty(EXTRA_CLASS, cls);