public XFire createXFire() throws ServletException { try { XFire xfire = (XFire) getServletContext().getAttribute(XFIRE_INSTANCE); if (xfire == null) { XFireFactory factory = XFireFactory.newInstance(); xfire = factory.getXFire(); } return xfire; } catch (Exception e) { throw new ServletException("Couldn't start XFire.", e); } }
private void create0() { TransportManager tm = (org.codehaus.xfire.XFireFactory.newInstance().getXFire().getTransportManager()); HashMap props = new HashMap(); props.put("annotations.allow.interface", "true"); props.put("objectServiceFactory.style", "document"); AnnotationServiceFactory asf = new AnnotationServiceFactory( new Jsr181WebAnnotations(), tm, new AegisBindingProvider(new JaxbTypeRegistry())); asf.setBindingCreationEnabled(true); service0 = asf.create((com.cordys.service.client.LockMessagePortType.class), props); { AbstractSoapBinding soapBinding = asf.createSoap11Binding( service0, new QName( "http://schemas.cordys.com/1.0/notification", "LockMessagePortTypeLocalBinding"), "urn:xfire:transport:local"); } { AbstractSoapBinding soapBinding = asf.createSoap11Binding( service0, new QName("http://schemas.cordys.com/1.0/notification", "LockMessageBinding"), "http://schemas.xmlsoap.org/soap/http"); } }
@SuppressWarnings({"rawtypes", "unchecked"}) private void create0() { TransportManager tm = (org.codehaus.xfire.XFireFactory.newInstance().getXFire().getTransportManager()); HashMap props = new HashMap(); props.put("annotations.allow.interface", true); AnnotationServiceFactory asf = new AnnotationServiceFactory( new Jsr181WebAnnotations(), tm, new AegisBindingProvider(new JaxbTypeRegistry())); asf.setBindingCreationEnabled(false); service0 = asf.create((ProcessWebServiceSoap.class), props); { @SuppressWarnings("unused") AbstractSoapBinding soapBinding = asf.createSoap11Binding( service0, new QName("http://www.ultimus.com", "ProcessWebServiceSoap"), "http://schemas.xmlsoap.org/soap/http"); } { @SuppressWarnings("unused") AbstractSoapBinding soapBinding = asf.createSoap11Binding( service0, new QName("http://www.ultimus.com", "ProcessWebServiceSoapLocalBinding"), "urn:xfire:transport:local"); } }