微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

CXF的webservice接口中字符串参数中文问题

22162][WARN][main] 10:51:45,122 method:org.apache.cxf.common.logging.LogUtils.doLog(LogUtils.java:405)/nInterceptor for {http://xx.com/}TourPlanSearchFacadeService#{http://facade.ext.xx.com/}searchPlan has thrown exception,unwinding Now
org.apache.cxf.interceptor.Fault: Unmarshalling Error: Unexpected character '<' (code 60) excepted space,or '>' or "/>"
 at [row,col {unkNown-source}]: [1,996] 
at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:823)
at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:644)
at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:157)
at org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:108)

报上面错误,google,发现是是xx方法(String keyword)传入为中文报错

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐