Package javax.xml.ws

Examples of javax.xml.ws.Binding


        ClientBinding clientBinding = factory.createClientBinding(address);
        assertNotNull(clientBinding);
        assertTrue(SOAPClientBinding.class.isInstance(clientBinding));
       
        SOAPClientBinding soapClientBinding = (SOAPClientBinding)clientBinding;
        Binding b = soapClientBinding.getBinding();
        assertNotNull(b);
        assertTrue(SOAPBindingImpl.class.isInstance(b));
              
        bus.shutdown(true);      
    }
View Full Code Here


        assertTrue(str.equals("fooObject"));    
    }
   
    public void testBinding() {
        bindingProviderImpl.setBinding(binding);
        Binding thebinding = bindingProviderImpl.getBinding();
        assertEquals("Objects should be equal", binding, thebinding);
    }
View Full Code Here

    public void testConstruction() {
        ServerBinding sb = ei.getServerBinding();
        assertNotNull(sb);
        assertTrue(sb instanceof TestServerBinding);
        Binding b = sb.getBinding();
        assertNotNull(b);
        TestServerBinding tsb = (TestServerBinding)sb;
        ServerTransport st = tsb.getTransport();
        assertNull(st);
        EndpointReferenceType ref = ei.getEndpointReferenceType();
View Full Code Here

        ClientBinding clientBinding = factory.createClientBinding(address);
        assertNotNull(clientBinding);
        assertTrue(XMLClientBinding.class.isInstance(clientBinding));
       
        XMLClientBinding xmlClientBinding = (XMLClientBinding)clientBinding;
        Binding b = xmlClientBinding.getBinding();
        assertNotNull(b);
        assertTrue(XMLBindingImpl.class.isInstance(b));
              
        bus.shutdown(true);      
    }
View Full Code Here

    if (endpointAddress == null)
      endpointAddress = findEndpointAddress();

    Dispatch<T> dispatch = null;
    Binding binding = getBinding(bindingId);

    if (_handlerResolver != null)
      binding.setHandlerChain(_handlerResolver.getHandlerChain(port));

    if (Source.class.equals(type)) {
      dispatch = (Dispatch<T>) new SourceDispatch(bindingId, binding,
                                                  mode, _executor);
    }
View Full Code Here

    }

    if (endpointAddress == null)
      endpointAddress = findEndpointAddress();

    Binding binding = getBinding(bindingId);

    if (_handlerResolver != null)
      binding.setHandlerChain(_handlerResolver.getHandlerChain(port));

    JAXBDispatch dispatch =
      new JAXBDispatch(bindingId, binding, mode, _executor, context);

    if (endpointAddress != null) {
View Full Code Here

      String endpointAddress = findEndpointAddress();
      String bindingId = SOAPBinding.SOAP11HTTP_BINDING;
      //definitions.getBindingId(_serviceName, portName);

      Binding binding = getBinding(bindingId);
      PortProxyHandler handler =
        new PortProxyHandler(skeleton, endpointAddress, binding);

      if (portName == null)
        portName = new QName(skeleton.getNamespace(), skeleton.getPortName());

      PortInfoImpl portInfo = new PortInfoImpl(bindingId, portName,
                                               _serviceName, endpointAddress);

      // Check for @HandlerChain on the service API
      if (_handlerResolver == null) {
        HandlerChain handlerChain =
          (HandlerChain) api.getAnnotation(HandlerChain.class);

        if (handlerChain != null)
          _handlerResolver = JAXWSUtil.createHandlerResolver(api, handlerChain);
      }

      // Check for @HandlerChain on the Service
      if (_handlerResolver == null) {
        HandlerChain handlerChain =
          (HandlerChain) _serviceClass.getAnnotation(HandlerChain.class);

        if (handlerChain != null)
          _handlerResolver = JAXWSUtil.createHandlerResolver(api, handlerChain);
      }

      if (_handlerResolver != null)
        binding.setHandlerChain(_handlerResolver.getHandlerChain(portInfo));

      _portMap.put(portName, portInfo);

      Class[] interfaces = new Class[] {api, BindingProvider.class};
View Full Code Here

    public void testAddingUnusedHandlersThroughConfigFile() {
        HandlerTestServiceWithAnnotation service1 = new HandlerTestServiceWithAnnotation(wsdl, serviceName);
        HandlerTest handlerTest1 = service1.getPort(portName, HandlerTest.class);
       
        BindingProvider bp1 = (BindingProvider)handlerTest1;
        Binding binding1 = bp1.getBinding();
        List<Handler> port1HandlerChain = binding1.getHandlerChain();
        assertEquals(1, port1HandlerChain.size());
    }
View Full Code Here

        Endpoint.publish("", i6);
        Endpoint.publish("", i7);
        Endpoint.publish("", i8);
        Endpoint.publish("", i9);
        EndpointImpl ep = (EndpointImpl)Endpoint.publish("http://cxf.apache.org/transports/jms", mtom);
        Binding binding = ep.getBinding();       
        ((SOAPBinding)binding).setMTOMEnabled(true)
    }
View Full Code Here

        JMSMTOMService service = new JMSMTOMService(wsdl, serviceName);
        assertNotNull(service);

        JMSMTOMPortType mtom = service.getPort(portName, JMSMTOMPortType.class);
        Binding binding = ((BindingProvider)mtom).getBinding();
        ((SOAPBinding)binding).setMTOMEnabled(true);

        Holder<String> name = new Holder<String>("Sam");
        URL fileURL = this.getClass().getResource("/org/apache/cxf/systest/jms/JMSClientServerTest.class");
        Holder<DataHandler> handler1 = new Holder<DataHandler>();
View Full Code Here

TOP

Related Classes of javax.xml.ws.Binding

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.