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; }
private void customize(ServiceInfo service) { if (context.containsKey(ToolConstants.CFG_TNS)) { String ns = (String)context.get(ToolConstants.CFG_TNS); service.setTargetNamespace(ns); } if (context.containsKey(ToolConstants.CFG_PORT)) { String portName = (String)context.get(ToolConstants.CFG_PORT); EndpointInfo einfo = service.getEndpoints().iterator().next(); QName qn = new QName(einfo.getName().getNamespaceURI(), portName); einfo.setName(qn); } if (context.containsKey(ToolConstants.CFG_SERVICENAME)) { String svName = getServiceName(); service.setName(new QName(service.getName().getNamespaceURI(), svName)); } EndpointInfo endpointInfo = service.getEndpoints().iterator().next(); String address = ToolConstants.DEFAULT_ADDRESS + "/" + endpointInfo.getName().getLocalPart(); if (context.get(ToolConstants.CFG_ADDRESS) != null) { address = (String)context.get(ToolConstants.CFG_ADDRESS); } endpointInfo.setAddress(address); context.put(ToolConstants.CFG_ADDRESS, address); }
private void customize(ServiceInfo service) { if (context.containsKey(ToolConstants.CFG_TNS)) { String ns = (String)context.get(ToolConstants.CFG_TNS); service.setTargetNamespace(ns); } if (context.containsKey(ToolConstants.CFG_PORT)) { String portName = (String)context.get(ToolConstants.CFG_PORT); EndpointInfo einfo = service.getEndpoints().iterator().next(); QName qn = new QName(einfo.getName().getNamespaceURI(), portName); einfo.setName(qn); } if (context.containsKey(ToolConstants.CFG_SERVICENAME)) { String svName = getServiceName(); service.setName(new QName(service.getName().getNamespaceURI(), svName)); } EndpointInfo endpointInfo = service.getEndpoints().iterator().next(); String address = ToolConstants.DEFAULT_ADDRESS + "/" + endpointInfo.getName().getLocalPart(); if (context.get(ToolConstants.CFG_ADDRESS) != null) { address = (String)context.get(ToolConstants.CFG_ADDRESS); } endpointInfo.setAddress(address); context.put(ToolConstants.CFG_ADDRESS, address); }
copyDocumentation(service, serv); service.setProperty(WSDL_SCHEMA_ELEMENT_LIST, this.schemaList); service.setTargetNamespace(def.getTargetNamespace()); service.setName(serv.getQName()); copyExtensors(service, serv.getExtensibilityElements());
copyDocumentation(service, serv); service.setProperty(WSDL_SCHEMA_ELEMENT_LIST, this.schemaList); service.setTargetNamespace(def.getTargetNamespace()); service.setName(serv.getQName()); copyExtensors(service, serv.getExtensibilityElements());
copyDocumentation(service, serv); service.setProperty(WSDL_SCHEMA_ELEMENT_LIST, this.schemaList); service.setTargetNamespace(def.getTargetNamespace()); service.setName(serv.getQName()); copyExtensors(service, serv.getExtensibilityElements());
serviceInfo.setTargetNamespace(serviceInfo.getName().getNamespaceURI());
serviceInfo.setTargetNamespace(serviceInfo.getName().getNamespaceURI());
serviceInfo.setTargetNamespace(serviceInfo.getName().getNamespaceURI());