|
|
@ -1,6 +1,5 @@
|
|
|
|
package org.jeecgframework.web.demo.ws.test;
|
|
|
|
package org.jeecgframework.web.demo.ws.test;
|
|
|
|
|
|
|
|
|
|
|
|
import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -12,19 +11,19 @@ import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public class JeecgWServiceClient {
|
|
|
|
public class JeecgWServiceClient {
|
|
|
|
|
|
|
|
|
|
|
|
public static void main11(String[] args) {
|
|
|
|
// public static void main11(String[] args) {
|
|
|
|
JaxWsProxyFactoryBean bean = new JaxWsProxyFactoryBean();
|
|
|
|
// JaxWsProxyFactoryBean bean = new JaxWsProxyFactoryBean();
|
|
|
|
bean.setServiceClass(JeecgWServiceI.class);
|
|
|
|
// bean.setServiceClass(JeecgWServiceI.class);
|
|
|
|
bean.setAddress("http://localhost:8080/jeecg/cxf/JeecgWService");
|
|
|
|
// bean.setAddress("http://localhost:8080/jeecg/cxf/JeecgWService");
|
|
|
|
JeecgWServiceI client = (JeecgWServiceI) bean.create();
|
|
|
|
// JeecgWServiceI client = (JeecgWServiceI) bean.create();
|
|
|
|
System.out.println(client.sayHello());
|
|
|
|
// System.out.println(client.sayHello());
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
public static void main(String[] args) {
|
|
|
|
// public static void main(String[] args) {
|
|
|
|
JaxWsProxyFactoryBean bean = new JaxWsProxyFactoryBean();
|
|
|
|
// JaxWsProxyFactoryBean bean = new JaxWsProxyFactoryBean();
|
|
|
|
bean.setServiceClass(JeecgWServiceI.class);
|
|
|
|
// bean.setServiceClass(JeecgWServiceI.class);
|
|
|
|
bean.setAddress("http://localhost:8080/jeecg/cxf/JeecgWDemoService");
|
|
|
|
// bean.setAddress("http://localhost:8080/jeecg/cxf/JeecgWDemoService");
|
|
|
|
JeecgWServiceI client = (JeecgWServiceI) bean.create();
|
|
|
|
// JeecgWServiceI client = (JeecgWServiceI) bean.create();
|
|
|
|
System.out.println(client.sayHello());
|
|
|
|
// System.out.println(client.sayHello());
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|