String endpoint = "http://localhost:" +"8080"+ "/axis/services/RegEventService";
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName("RegEvent" );
Integer ret = (Integer) call.invoke( new Object [] {1});
以上代码,最后一行输入参数1,就报错,若输入的是一个String型参数,就没问题。
我用的是JB开发,提示错误为: incompatible types;found:int , required: java.lang.object
该怎么处理?谢谢!
------解决方案--------------------