rafaljanik
15 years agoNew Contributor
how can I access the contentLenght from response?
Hi, I have a problem with accessing ContentLenght in messageExchange.
My Rest Service returns octetStream, in XML view I can see:
<data contentType="application/octet-stream" contentLength="119623"> ...</data>
How can I access this value (119623) which is real size of my content (and write the assertion script)?
Methods from interface com.eviware.soapui.model.iface.MessageExchange
exchangeMessage.getResponseContent()
and
exchangeMessage.getRawResponseData()
.length() return different values - in each case not the contentLength.
Is there a possibility to get get the contentLength ?
Regards,
rafal
My Rest Service returns octetStream, in XML view I can see:
<data contentType="application/octet-stream" contentLength="119623"> ...</data>
How can I access this value (119623) which is real size of my content (and write the assertion script)?
Methods from interface com.eviware.soapui.model.iface.MessageExchange
exchangeMessage.getResponseContent()
and
exchangeMessage.getRawResponseData()
.length() return different values - in each case not the contentLength.
Is there a possibility to get get the contentLength ?
Regards,
rafal