客户提供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"这个返回结果,是在那一端出问题?
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"这个返回结果,是在那一端出问题?
解决方案 »
- hibernate annotaction onetoone出错
- java调用dll文件
- 被一个C++的领导开发java项目
- 求精通Spring2.x-企业应用开发详解 电子书
- 请教存储过程!
- hibernate插入数据出现问题,各位大侠帮忙看看,急!
- 为什么tomcat5.x不能直接引用servlet和调用servlet别名,而tomcat4.x可以?
- 一个BMP的问题,怎么调用findByPrimaryKey?请大家帮我看看,谢谢
- 电商网站怎么实现下单后后台客服可以有提示
- 怎样远程获得window的cpu、内存的使用率
- javascript 删除表中的一行出现个错误
- MessageDigest对inputstream和fileinputstream进行摘要 同样内容结果却不同??
Axis 的版本为1.4, 客户端是用eclipse自动生成的