通过C#程序调用java webservice的带参数的契约方法,Tomcat报错信息如下:
DefaultValidationEventHandler: [ERROR]: unexpected element (uri:"http://service.SKVerifyDataService.better517na.com/", local:"skVerifyInfoListVo"). Expected elements are <{}arg0>
Location: line 1
这种情况有没有兄弟遇到过呢?求帮助~~~
终于找到解决方法了,在java webservice的契约方法的参数加上@WebParam属性。具体代码如下:
public String insertAvInfo(@WebParam(name = "skVerifyInfoListVo", targetNamespace = "http://service.SKVerifyDataService.better517na.com/") String skVerifyInfoListVo);