Search in sources :

Example 1 with DocLitBareGreeterImpl

use of org.apache.hello_world_soap_http.DocLitBareGreeterImpl in project cxf by apache.

the class Server method run.

protected void run() {
    URL url = getClass().getResource("fault-stack-trace.xml");
    if (url != null) {
        System.setProperty("cxf.config.file.url", url.toString());
    }
    Object implementor;
    String address;
    implementor = new AsyncGreeter();
    address = "http://localhost:" + PORT + "/SoapContext/AsyncSoapPort";
    eps.add(Endpoint.publish(address, implementor));
    implementor = new AsyncEchoProvider();
    address = "http://localhost:" + PORT + "/SoapContext/AsyncEchoProvider";
    eps.add(Endpoint.publish(address, implementor));
    implementor = new GreeterImplMultiPort();
    address = "http://localhost:" + PORT + "/MultiPort/GreeterPort";
    eps.add(Endpoint.publish(address, implementor));
    implementor = new DocLitBareGreeterMultiPort();
    address = "http://localhost:" + PORT + "/MultiPort/DocBarePort";
    eps.add(Endpoint.publish(address, implementor));
    implementor = new GreeterImpl();
    address = "http://localhost:" + PORT + "/SoapContext/SoapPort";
    Endpoint ep = Endpoint.publish(address, implementor);
    eps.add(ep);
    implementor = new GreeterImpl();
    address = "http://localhost:" + PORT + "/SoapContext/SoapPortWithGzip";
    Endpoint ep2 = Endpoint.publish(address, implementor);
    ((EndpointImpl) ep2).getService().getInInterceptors().add(new GZIPInInterceptor());
    ((EndpointImpl) ep2).getService().getOutInterceptors().add(new GZIPOutInterceptor());
    eps.add(ep2);
    implementor = new RefGreeterImpl();
    address = "http://localhost:" + PORT + "/SoapContext/SoapPort2";
    eps.add(Endpoint.publish(address, implementor));
    // publish port with soap12 binding
    address = "http://localhost:" + PORT + "/SoapContext/SoapPort";
    EndpointImpl e = (EndpointImpl) Endpoint.create(javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING, new Greeter12Impl());
    e.publish(address);
    eps.add(e);
    implementor = new DocLitBareGreeterImpl();
    address = "http://localhost:" + BARE_PORT + "/SoapContext/SoapPort";
    eps.add(Endpoint.publish(address, implementor));
    implementor = new GreeterImplBogus();
    address = "http://localhost:" + BOGUS_REAL_PORT + "/SoapContext/SoapPort";
    eps.add(Endpoint.publish(address, implementor));
}
Also used : EndpointImpl(org.apache.cxf.jaxws.EndpointImpl) GZIPInInterceptor(org.apache.cxf.transport.common.gzip.GZIPInInterceptor) URL(java.net.URL) GZIPOutInterceptor(org.apache.cxf.transport.common.gzip.GZIPOutInterceptor) Endpoint(javax.xml.ws.Endpoint) GreeterImpl(org.apache.hello_world_soap_http.GreeterImpl) BaseGreeterImpl(org.apache.hello_world_soap_http.BaseGreeterImpl) DocLitBareGreeterImpl(org.apache.hello_world_soap_http.DocLitBareGreeterImpl) DocLitBareGreeterImpl(org.apache.hello_world_soap_http.DocLitBareGreeterImpl)

Aggregations

URL (java.net.URL)1 Endpoint (javax.xml.ws.Endpoint)1 EndpointImpl (org.apache.cxf.jaxws.EndpointImpl)1 GZIPInInterceptor (org.apache.cxf.transport.common.gzip.GZIPInInterceptor)1 GZIPOutInterceptor (org.apache.cxf.transport.common.gzip.GZIPOutInterceptor)1 BaseGreeterImpl (org.apache.hello_world_soap_http.BaseGreeterImpl)1 DocLitBareGreeterImpl (org.apache.hello_world_soap_http.DocLitBareGreeterImpl)1 GreeterImpl (org.apache.hello_world_soap_http.GreeterImpl)1