axis调用cxf服务端 参数为自定义对象
String endpoint="http://ws.uip.highsoft";fielCall.setOperationName(new QName(endpoint, method));
DataHandler dh=new DataHandler(new FileDataSource(new File(filePath)));
QName qName=new QName("http://ws.uip.highsoft", "FileUpload");这在cxf中对应的wsdl结构是什么啊
call.registerTypeMapping(FileUpload.class, qName, new BeanSerializerFactory(FileUpload.class, qName), new BeanDeserializerFactory(FileUpload.class,qName));
String[] nameArray = names.split(",|,");
/*fielCall.addParameter(nameArray[0],Constants.XSD_BASE64, ParameterMode.IN);
fielCall.addParameter(nameArray[1], Constants.XSD_STRING,ParameterMode.IN);*/
fielCall.setReturnType(Constants.SOAP_BOOLEAN);
FileUpload fileUpload=new FileUpload();
fileUpload.setDataHandler(dh);
fileUpload.setFileName(fileName);
boolean flag=(Boolean)fielCall.invoke(new Object[]{fileUpload});
form.setReservedProp("retInfo",flag+"");
补充:Java , Java EE