代码如下:
public void test4() throws RemoteException, ServiceException, MalformedURLException{
/** step1: 创建一个Service实例,注意是必须的!*/
Service service = new Service(); 
/**step2:创建Call实例,也是必须的!*/
Call call = (Call) service.createCall();
/**step3: 为Call设置服务的位置 操作方法名 */
QName name = new QName("tns:HotelInformation", "HotelInformation");   

call.registerTypeMapping(HotelInformation.class, name, new BeanSerializerFactory(HotelInformation.class, name),new BeanDeserializerFactory(HotelInformation.class, name));    
//System.out.println(obj);
call.setTargetEndpointAddress(new java.net.URL("http://10.68.25.108/hbms/services/HBEServices"));
call.setOperationName("HotelInformation");    
User us = new User();
CityVo c = new CityVo();
Object [] o =  (Object[]) call.invoke(new Object[] { });  
List list = null;
list = Arrays.asList(o);

//String s =c.getCityName();
System.out.println("ok");
System.out.println(list.size());
}
如下异常:org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.请高人指点下吧。需要WSDL的加我QQ:446405157.能帮解决的非常感谢。困惑好几天了