public ServiceDelegate createServiceDelegate(URL wsdlDocumentLocation, QName serviceName, @SuppressWarnings("rawtypes") Class serviceClass, WebServiceFeature ... features) { for (WebServiceFeature f : features) { if (!f.getClass().getName().startsWith("javax.xml.ws") && !(f instanceof Feature)) { throw new WebServiceException("Unknown feature error: " + f.getClass().getName()); } } return new ServiceImpl(null, wsdlDocumentLocation, serviceName, serviceClass, features); }
public ServiceDelegate createServiceDelegate(URL wsdlDocumentLocation, QName serviceName, @SuppressWarnings("rawtypes") Class serviceClass, WebServiceFeature ... features) { for (WebServiceFeature f : features) { if (!f.getClass().getName().startsWith("javax.xml.ws") && !(f instanceof Feature)) { throw new WebServiceException("Unknown feature error: " + f.getClass().getName()); } } return new ServiceImpl(null, wsdlDocumentLocation, serviceName, serviceClass, features); }
public void doWith(Field field) throws IllegalArgumentException, IllegalAccessException { if (field.getAnnotation(WebServiceRef.class) != null) { ServiceImpl s = new ServiceImpl(getBus(), null, null, field.getType()); s.addPort(new QName("port"), JBITransportFactory.TRANSPORT_ID, "jbi://" + ID_GENERATOR.generateSanitizedId()); Object o = s.getPort(new QName("port"), field.getType()); field.setAccessible(true); field.set(getPojo(), o); } } });
private synchronized ServiceImpl getService() { if (service == null) { Bus b = BusFactory.getAndSetThreadDefaultBus(bus); try { service = new ServiceImpl(bus, null, version.getServiceName(), Service.class); service.addPort(version.getServiceName(), soapVersion, address); } finally { BusFactory.setThreadDefaultBus(b); } } return service; } private synchronized void resetDispatch(String newad) {
private synchronized ServiceImpl getService() { if (service == null) { Bus b = BusFactory.getAndSetThreadDefaultBus(bus); try { service = new ServiceImpl(bus, null, version.getServiceName(), Service.class); service.addPort(version.getServiceName(), soapVersion, address); } finally { BusFactory.setThreadDefaultBus(b); } } return service; } private synchronized void resetDispatch(String newad) {