资源简介

使用cxf和spring开发基于https的webservice服务端以及客户端样例

资源截图

代码片段和文件信息

package test.ws;

import org.apache.cxf.bus.spring.BusApplicationContext;
import org.apache.cxf.jaxws.EndpointImpl;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathxmlApplicationContext;

public class StartServer
{

    /**
     * @param args
     * @auther administrator
     * @create 2015-1-27
     */
    public static void main(String[] args)
    {
        BeanFactory beanFactory = new ClassPathxmlApplicationContext(“test/ws/spring-webservice-server.xml“);
//        BeanFactory beanFactory = new BusApplicationContext(“test/ws/spring-webservice-server.xml“ true);
        EndpointImpl endpoint = (EndpointImpl)beanFactory.getBean(“UserServiceWS“);
        endpoint.publish();
        EndpointImpl endpoint_SSL_ONE_WAY_AUTH = (EndpointImpl)beanFactory.getBean(“UserServiceWS_SSL_ONE_WAY_AUTH“);
        endpoint_SSL_ONE_WAY_AUTH.publish();
        EndpointImpl endpoint_TWO_WAY_AUTH = (EndpointImpl)beanFactory.getBean(“UserServiceWS_SSL_TWO_WAY_AUTH“);
        endpoint_TWO_WAY_AUTH.publish();
    }

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       4866  2015-02-03 18:37  test\ws\spring-webservice-client.xml

     文件       4752  2015-02-03 18:17  test\ws\spring-webservice-server.xml

     文件        904  2015-02-03 16:15  test\ws\ssl\resource\cert_one_way_auth\cert_one_way_auth.bat

     文件       1918  2015-02-03 18:07  test\ws\ssl\resource\cert_one_way_auth\client.keystore

     文件        832  2015-02-03 18:07  test\ws\ssl\resource\cert_one_way_auth\server.cer

     文件       1348  2015-02-03 18:07  test\ws\ssl\resource\cert_one_way_auth\server.keystore

     文件       1234  2015-02-03 18:05  test\ws\ssl\resource\cert_two_way_auth\cert_two_way_auth.bat

     文件        780  2015-02-03 18:08  test\ws\ssl\resource\cert_two_way_auth\client.cer

     文件       1919  2015-02-03 18:08  test\ws\ssl\resource\cert_two_way_auth\client.keystore

     文件        832  2015-02-03 18:08  test\ws\ssl\resource\cert_two_way_auth\server.cer

     文件       1917  2015-02-03 18:08  test\ws\ssl\resource\cert_two_way_auth\server.keystore

     文件       2509  2015-02-03 15:57  test\ws\ssl\resource\readme.txt

    I.A....      1098  2015-03-10 18:13  test\ws\StartServer.java

    I.A....      2031  2015-03-10 18:13  test\ws\TestClient.java

     文件       1359  2015-02-03 17:34  test\ws\User.java

     文件        316  2015-02-04 10:01  test\ws\UserService.java

     文件       1029  2015-02-03 18:43  test\ws\UserServiceImpl.java

     目录          0  2015-02-03 18:07  test\ws\ssl\resource\cert_one_way_auth

     目录          0  2015-02-03 18:08  test\ws\ssl\resource\cert_two_way_auth

     目录          0  2015-02-03 18:08  test\ws\ssl\resource

     目录          0  2015-01-29 17:31  test\ws\ssl

     目录          0  2015-02-03 18:10  test\ws

     目录          0  2015-01-27 16:13  test

----------- ---------  ---------- -----  ----

                29644                    23


评论

共有 条评论