.net调用java webservice
场景:.net调用java编写的webservice的有关问题
.net调用java编写的webservice的问题
webservice有这样一个接口:
public int sms_send(String user, String password, String[] mobiles,
String content, int type, String subtype, int batchno)
但.net在调用时会报一下错误:
自定义工具错误: 无法导入 Web 服务/架构。无法从命名空间“http://192.168.1.189:8080/axis/services/YKTService”导入绑定“YKTServiceSoapBinding”。 无法导入操作“sms_send”。 缺少数据类型“http://192.168.1.189:8080/axis/services/YKTService:ArrayOf_xsd_string”。 C:\Documents and Settings\Administrator\桌面\20110613\TLCityCardweb2011-06-13\TLCityCardweb\Web\Web References\WebReference\Reference.map 1 1 Web
最让人感觉奇怪的是,这个接口曾经调用没有问题,但现在就报错了。
请大侠们给点思路啊。
------解决方案--------------------
应该是环境配置的问题,看看tomcat和axis的lib目录是否缺少什么jar包
.net调用java编写的webservice的问题
webservice有这样一个接口:
public int sms_send(String user, String password, String[] mobiles,
String content, int type, String subtype, int batchno)
但.net在调用时会报一下错误:
自定义工具错误: 无法导入 Web 服务/架构。无法从命名空间“http://192.168.1.189:8080/axis/services/YKTService”导入绑定“YKTServiceSoapBinding”。 无法导入操作“sms_send”。 缺少数据类型“http://192.168.1.189:8080/axis/services/YKTService:ArrayOf_xsd_string”。 C:\Documents and Settings\Administrator\桌面\20110613\TLCityCardweb2011-06-13\TLCityCardweb\Web\Web References\WebReference\Reference.map 1 1 Web
最让人感觉奇怪的是,这个接口曾经调用没有问题,但现在就报错了。
请大侠们给点思路啊。
------解决方案--------------------
应该是环境配置的问题,看看tomcat和axis的lib目录是否缺少什么jar包