Examples of addPort()


Examples of org.apache.cxf.tools.common.model.JavaServiceClass.addPort()

        Collection<EndpointInfo> ports = service.getEndpoints();

        for (EndpointInfo port : ports) {
            JavaPort javaport = processPort(model, port);
            sclz.addPort(javaport);
        }
        model.addServiceClass(name, sclz);
    }

    private JavaPort processPort(JavaModel model, EndpointInfo port) throws ToolException {
View Full Code Here

Examples of org.apache.hello_world.nmr.HelloWorldService.addPort()

        Bus bus = (Bus) ctx.getBean(Bus.DEFAULT_BUS_ID);
        bus.setExtension(cfg, Configurer.class);
       
        HelloWorldService ss = new HelloWorldService(wsdl, serviceName);
        QName portName = new QName("http://apache.org/hello_world/nmr", "SoapPort");
        ss.addPort(portName, NMRConstants.NS_NMR_BINDING, "local://nmrendpoint");
       
        Greeter port = ss.getPort(portName, Greeter.class);
               
        String rep = port.greetMe("ffang");
        assertEquals(rep, "Hello ffang");
View Full Code Here

Examples of org.apache.hello_world_soap_http.SOAPService.addPort()

    }
   
    @Test
    public void testSOAPMessageInvokeToOneWay() throws Exception {
        SOAPService service = new SOAPService(null, SERVICE_NAME);
        service.addPort(PORT_NAME, SOAPBinding.SOAP11HTTP_BINDING,
                        "http://localhost:" + greeterPort
                        + "/SOAPDispatchService/SoapDispatchPort");
        assertNotNull(service);
       
        Dispatch<SOAPMessage> disp = service
View Full Code Here

Examples of org.apache.hello_world_soap_http.xmlbeans.SOAPService.addPort()

        URL wsdl = this.getClass().getResource("/wsdl_systest_databinding/xmlbeans/hello_world.wsdl");
        assertNotNull("We should have found the WSDL here. " , wsdl);     
       
        SOAPService ss = new SOAPService(wsdl, SERVICE_NAME);
        QName soapPort = new QName("http://apache.org/hello_world_soap_http/xmlbeans", "SoapPort");
        ss.addPort(soapPort, SOAPBinding.SOAP11HTTP_BINDING, "http://localhost:9010/SoapContext/SoapPort");
        Greeter port = ss.getPort(soapPort, Greeter.class);
        String resp;
        ClientProxy.getClient(port).getInInterceptors().add(new LoggingInInterceptor());
        ClientProxy.getClient(port).getOutInterceptors().add(new LoggingOutInterceptor());
        resp = port.sayHi();
View Full Code Here

Examples of org.apache.hello_world_soap_http_xmlbeans.xmlbeans.SOAPService.addPort()

        URL wsdl = this.getClass().getResource("/wsdl_systest_databinding/xmlbeans/hello_world.wsdl");
        assertNotNull("We should have found the WSDL here. " , wsdl);     
       
        SOAPService ss = new SOAPService(wsdl, SERVICE_NAME);
        QName soapPort = new QName("http://apache.org/hello_world_soap_http_xmlbeans/xmlbeans", "SoapPort");
        ss.addPort(soapPort, SOAPBinding.SOAP11HTTP_BINDING, "http://localhost:"
                   + NOWSDL_PORT + "/SoapContext/SoapPort");
        Greeter port = ss.getPort(soapPort, Greeter.class);
        String resp;
        ClientProxy.getClient(port).getInInterceptors().add(new LoggingInInterceptor());
        ClientProxy.getClient(port).getOutInterceptors().add(new LoggingOutInterceptor());
View Full Code Here

Examples of org.apache.qpid.server.BrokerOptions.addPort()

            setSystemProperty(TEST_CONFIG, testConfig);
            setSystemProperty(TEST_VIRTUALHOSTS, virtualHostsConfig);

            BrokerOptions options = new BrokerOptions();
            options.setConfigFile(_configFile.getAbsolutePath());
            options.addPort(port);

            addExcludedPorts(port, DEFAULT_SSL_PORT, options);
            addIncludedPorts(port, DEFAULT_SSL_PORT, options);

            options.setJmxPortRegistryServer(getManagementPort(port));
View Full Code Here

Examples of org.apache.stratos.messaging.event.topology.MemberActivatedEvent.addPort()

            for (PortMapping portMapping : portMappings) {
                port = new Port(portMapping.getProtocol(),
                        Integer.parseInt(portMapping.getPort()),
                        Integer.parseInt(portMapping.getProxyPort()));
                member.addPort(port);
                memberActivatedEvent.addPort(port);
            }

            memberActivatedEvent.setMemberIp(member.getMemberIp());
            TopologyManager.updateTopology(topology);
View Full Code Here

Examples of org.jgraph.graph.DefaultGraphCell.addPort()

    else
      // Set black border
      GraphConstants.setBorderColor(cell.getAttributes(), Color.black);

    // Add a Floating Port
    cell.addPort();

    return cell;
  }

}
View Full Code Here

Examples of org.objectweb.celtix.tools.common.model.JavaServiceClass.addPort()

        Map ports = service.getPorts();

        for (Iterator ite = ports.values().iterator(); ite.hasNext();) {
            Port port = (Port)ite.next();
            JavaPort javaport = processPort(model, port);
            sclz.addPort(javaport);
        }
        model.addServiceClass(name, sclz);
    }

    private JavaPort processPort(JavaModel model, Port port) throws ToolException {
View Full Code Here

Examples of org.openhab.binding.insteonplm.internal.device.InsteonDevice.addPort()

      return null;
    }
    InsteonDevice dev =  InsteonDevice.s_makeDevice(dt);
    dev.setAddress(aConfig.getAddress());
    dev.setDriver(m_driver);
    dev.addPort(m_driver.getDefaultPort());
    if (!dev.hasValidPollingInterval()) {
      dev.setPollInterval(m_devicePollInterval);
    }
    if (m_driver.isModemDBComplete() && dev.getStatus() != DeviceStatus.POLLING) {
      int ndev = checkIfInModemDatabase(dev);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.