protected ServiceInfo createServiceInfo(InterfaceInfo intf) { ServiceInfo svcInfo = new ServiceInfo(); svcInfo.setInterface(intf); return svcInfo; }
protected ServiceInfo createServiceInfo(InterfaceInfo intf) { ServiceInfo svcInfo = new ServiceInfo(); svcInfo.setInterface(intf); return svcInfo; }
protected ServiceInfo createServiceInfo(InterfaceInfo intf) { ServiceInfo svcInfo = new ServiceInfo(); svcInfo.setInterface(intf); return svcInfo; }
public BindingInfo createBindingInfo(Service service, String namespace, Object obj) { ServiceInfo si = new ServiceInfo(); si.setTargetNamespace(ProtobufBindingFactory.PROTOBUF_BINDING_ID); BindingInfo info = new BindingInfo(si, ProtobufBindingFactory.PROTOBUF_BINDING_ID); return info; }
public static SchemaCollection getSchema(final Definition def) { ServiceInfo serviceInfo = new ServiceInfo(); new SchemaUtil(BusFactory.getThreadDefaultBus(), new HashMap<String, Element>()).getSchemas(def, serviceInfo); return serviceInfo.getXmlSchemaCollection(); }
public static SchemaCollection getSchema(final Definition def) { ServiceInfo serviceInfo = new ServiceInfo(); new SchemaUtil(BusFactory.getThreadDefaultBus(), new HashMap<String, Element>()).getSchemas(def, serviceInfo); return serviceInfo.getXmlSchemaCollection(); }
public static Service createServiceModel() { ServiceInfo serviceInfo = new ServiceInfo(); // does not make sense for protobuf services serviceInfo.setName(new QName("", "protobuf_service_" + System.identityHashCode(serviceInfo))); InterfaceInfo interfaceInfo = new InterfaceInfo(serviceInfo, serviceInfo.getName()); serviceInfo.setInterface(interfaceInfo); Service service = new ServiceImpl(serviceInfo); return service; }
copyExtensionAttributes(description, def); ServiceInfo service = new ServiceInfo(); service.setDescription(description); if (recordOriginal) {
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); }
copyExtensionAttributes(description, def); ServiceInfo service = new ServiceInfo(); service.setDescription(description); if (recordOriginal) {
copyExtensionAttributes(description, def); ServiceInfo service = new ServiceInfo(); service.setDescription(description); if (recordOriginal) {
ServiceInfo si = new ServiceInfo(); infos.add(si); QName qname = JAXRSUtils.getClassQName(cri.getServiceClass());
ServiceInfo si = new ServiceInfo(); infos.add(si); QName qname = JAXRSUtils.getClassQName(cri.getServiceClass());
ServiceInfo serInfo = new ServiceInfo();
service = new ServiceInfo(); service.setDescription(description); description.getDescribed().add(service);
ServiceInfo serviceInfo = new ServiceInfo(); SchemaCollection col = serviceInfo.getXmlSchemaCollection(); col.getXmlSchemaCollection().setSchemaResolver(new CatalogXmlSchemaURIResolver(this.getBus()));
ServiceInfo serviceInfo = new ServiceInfo(); SchemaCollection col = serviceInfo.getXmlSchemaCollection(); col.getXmlSchemaCollection().setSchemaResolver(new CatalogXmlSchemaURIResolver(this.getBus()));
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; }