一个服务需要的xml格式的字符串参数,用soapUI传递参数时要这样写:

<![CDATA[<?xml version="1.0" encoding="UTF-8"?><root><params><a>lalala</a><b>bababa</b></params></root>]]>

否则会报错:  Illegal processing instruction target ("xml"),原因是soapUI会把<?xm lversion="1.0 "encoding="UTF-8"?>这个头忽略。 但是代码中只要拼正常的xml字符串就行了,不必拼这个测试字符串,这只是soapUI决定的。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
  • 2021-10-05
  • 2021-12-06
  • 2021-10-08
相关资源
相似解决方案