我的 WS 接口:
@WebService
public interface WS{
String decide(String word, MapWrapper parameters);
}
使用 WrapperClass:
public class MapWrapper {
public HashMap<String, String> map;
}
和
from("cxf:http://localhost:8080/WS?serviceClass=ws.WS&dataFormat=POJO").to("stream:out"); //Just for testing purpose
使用 SOAPUI 调用时会出现以下异常:
Error during type conversion from type: org.apache.cxf.message.MessageContentsList to the required type: byte[] with value [Test, ws.WS@1221bc6] due argument type mismatch
我认为 MapWrapper 类导致了这个异常。但是如何解决这个问题呢?