我正在使用soapUI来测试我的web服务应用程序接口,但是一些字段/参数是对象而不是标准数据类型,例如
<soapenv:Envelope xml>
<soapenv:Header/>
<soapenv:Body>
<api:test>
<api:giveMeSomeText>BEEF1234567890</api:giveMeSomeText>
<api:giveMeJavaURLObject>??????</api:giveMeJavaURLObject>
</api:test>
</soapenv:Body>
</soapenv:Envelope>
如何通过soapUI将参数作为对象赋值给web服务接口?我可以使用CDATA字符串来捆绑我的对象吗,怎么做?
<![CDATA[??????]]>
发布于 2012-11-07 23:04:04
您可以使用CDATA,请参阅以下示例
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sam="http://www.example.org/sample/">
<soapenv:Header/>
<soapenv:Body>
<sam:searchResponse>
<sam:searchResponse>
<item><id>1234</id><description><![CDATA[<item><width>123</width><height>345</height>
<length>098</length><isle>A34</isle></item>]]></description><price>123</price>
</item>
</sam:searchResponse>
</sam:searchResponse>
</soapenv:Body>
</soapenv:Envelope>
https://stackoverflow.com/questions/12928024
复制相似问题