使用soapUI对webservice接口进行测试的时候如何传递的参数是xml,需要把传递的参数放在转义符中。<![CDATA[ ]]>
<![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="yes"?>"
<Report>
<orderNumber>SZ2017051116010</orderNumber>
<groupItemNumber>测试</groupItemNumber>
<groupItemName>测试</groupItemName>
<description>胃癌晚期不用治了,回家等死吧</description>
<diagnose>胃癌晚期不用治了,回家等死吧</diagnose>
<suggest>胃癌晚期不用治了,回家等死吧</suggest>
</Report>]]>
否则会报错:org.apache.cxf.interceptor.Fault: Unmarshalling Error: Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs.
原因是soapUI会把<?xm lversion="1.0 "encoding="UTF-8"?>这个头忽略。