客户提供webservice接口,我用Axis生成客户端,调用webservice短信发送接口,用来发送短信到指定手机号码,调用代码如下:
APServiceSoapBindingStub aps;
try {
APServiceService apService = new APServiceServiceLocator();
aps = (APServiceSoapBindingStub)apService.getAPService();
String test = aps.sendMessage(APName, APPassword, compCode, account, calledNumber, sendTime, content);
//Result-------Failure of the loading
System.out.println("Result-------" + test); } catch (AxisFault e) {
e.printStackTrace();
} catch (RemoteException e) {
e.printStackTrace();
} catch (ServiceException e) {
e.printStackTrace();
}========运行, 短信不能发送, 控制台输出: WARN [main] - Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
Result-------Failure of the loading======================该webservice接口是电信提供的,用指定账号登录对应的网站,可发送短信,目前不能确定"Failure of the loading"这个返回结果,是在那一端出问题?