CXF webService 客服端调用问题

吕檀溪 发布于 2014/12/11 17:02
阅读 92
收藏 0
public class HouseTest {
private static JaxWsDynamicClientFactory factory=JaxWsDynamicClientFactory.newInstance();
private static Client client=factory.createClient("http://192.168.0.164:8080/ecenplatform/webservices/houseWebService?wsdl");
public static void main(String[] args) {
loadHouseByPage();
}
public static void loadHouseByPage(){
try {
JSONObject jsonObject=JSONObject.fromObject(new TenePageParamDto());
Object[] obj=client.invoke("loadHouseByPage",jsonObject.toString());
System.out.println(obj[0].toString());
} catch (Exception e) {
e.printStackTrace();
}  

}

}


这是我书写的CXF客服端代码,在JDK1.7上没有问题,但是换到JDK1.6就出现了JaxWsDynamicClientFactory 不能创建的问题,求解决

加载中
返回顶部
顶部