public void updateWsdl(Bus b, URL wsdlLocation) { updateWsdl(b, wsdlLocation.toString()); }
public static URL getWSDLURL(String s) throws Exception { URL u = JMSTestMtom.class.getResource(s); if (u == null) { throw new IllegalArgumentException("WSDL classpath resource not found " + s); } String wsdlString = u.toString().intern(); broker.updateWsdl(bus, wsdlString); return u; } }
public URL getWSDLURL(String s) throws Exception { URL u = getClass().getResource(s); if (u == null) { throw new IllegalArgumentException("WSDL classpath resource not found " + s); } String wsdlString = u.toString().intern(); wsdlStrings.add(wsdlString); broker.updateWsdl(getBus(), wsdlString); return u; }
public URL getWSDLURL(String s) throws Exception { URL u = getClass().getResource(s); if (u == null) { throw new IllegalArgumentException("WSDL classpath resource not found " + s); } String wsdlString = u.toString().intern(); wsdlStrings.add(wsdlString); broker.updateWsdl(getBus(), wsdlString); return u; }
public <T1, T2> T2 getPort(String serviceName, String portName, Class<T1> serviceClass, Class<T2> portTypeClass) throws Exception { String namespace = "http://cxf.apache.org/jms_simple"; QName qServiceName = new QName(namespace, serviceName); QName qPortName = new QName(namespace, portName); URL wsdl = getClass().getResource("/wsdl/jms_spec_testsuite.wsdl"); String wsdlString = wsdl.toString(); broker.updateWsdl(getBus(), wsdlString); BusFactory.setThreadDefaultBus(getBus()); BusFactory.setDefaultBus(getBus()); Class<? extends Service> svcls = serviceClass.asSubclass(Service.class); Constructor<? extends Service> serviceConstructor = svcls.getConstructor(URL.class, QName.class); Service service = serviceConstructor.newInstance(new Object[] { wsdl, qServiceName }); broker.updateWsdl(getBus(), wsdlString); return service.getPort(qPortName, portTypeClass); }
protected void run() { Bus bus = BusFactory.getDefaultBus(); setBus(bus); Map<String, Object> inProperties = new HashMap<>(); inProperties.put(ConfigurationConstants.ACTION, ConfigurationConstants.SAML_TOKEN_SIGNED); inProperties.put(ConfigurationConstants.PW_CALLBACK_REF, new KeystorePasswordCallback()); inProperties.put(ConfigurationConstants.SIG_VER_PROP_FILE, "bob.properties"); WSS4JInInterceptor inInterceptor = new WSS4JInInterceptor(inProperties); bus.getInInterceptors().add(inInterceptor); broker.updateWsdl(bus, "testutils/jms_test.wsdl"); Endpoint.publish(null, new SecurityGreeterImplTwoWayJMS()); }
protected void run() { Bus bus = BusFactory.getDefaultBus(); setBus(bus); broker.updateWsdl(bus, "testutils/hello_world_doc_lit.wsdl"); broker.updateWsdl(bus, "testutils/jms_test.wsdl"); broker.updateWsdl(bus, "testutils/jms_test_mtom.wsdl"); Endpoint.publish(null, new GreeterImplDoc()); Endpoint.publish(null, new GreeterImplTwoWayJMS()); Endpoint.publish(null, new GreeterImplQueueOneWay()); Endpoint.publish(null, new GreeterImplTopicOneWay()); Endpoint.publish(null, new GreeterByteMessageImpl()); Endpoint.publish(null, new SoapService6SoapPort6Impl()); Endpoint.publish(null, new JmsDestPubSubImpl()); Endpoint.publish(null, new SoapService7SoapPort7Impl()); }
@BeforeClass public static void startServers() throws Exception { broker = new EmbeddedJMSBrokerLauncher(); broker.startInProcess(); bus = BusFactory.getDefaultBus(); broker.updateWsdl(bus, "testutils/jms_test_mtom.wsdl"); Object mtom = new JMSMTOMImpl(); EndpointImpl ep = (EndpointImpl)Endpoint .publish("jms:jndi:dynamicQueues/test.cxf.jmstransport.queue&receiveTimeout=10000", mtom); Binding binding = ep.getBinding(); ((SOAPBinding)binding).setMTOMEnabled(true); }
String wsdlString2 = "testutils/jms_test.wsdl"; wsdlStrings.add(wsdlString2); broker.updateWsdl(getBus(), wsdlString2);
String wsdl2 = "testutils/jms_test.wsdl".intern(); wsdlStrings.add(wsdl2); broker.updateWsdl(getBus(), wsdl2);
String wsdlString2 = "classpath:wsdl/jms_test.wsdl"; wsdlStrings.add(wsdlString2); broker.updateWsdl((Bus)ctx.getBean("cxf"), wsdlString2); HelloWorldPortType greeter = (HelloWorldPortType)ctx.getBean("jmsRPCClient");