16 years ago
testing MTOM WS
I've built a webservice that wraps Apache FOP. You send it XML, and it gives you an MTOM stream that contains the rendered PDF. Now that its working, I'd like to run some performance tests on it. soapUI says they support MTOM, and I use it for all my other webservice performance testing, so'd I'd be great if I didn't have to write a custom test harness.
So here's the issue: I get the response back in soapUI, and it looks like this:
pdf
application/pdf
JVBERAkAAiNkRUcERRkaYIMijggKNDkbEiioUBUbHrBBlE1HFwFBuWSWStGd+8ee/Nm98f935rn73P3Wfvfda6AJD8gwXCTFgJgAyhWBTh58WIjYtnYAcBDPAAA2wA4HCzs0IW+EYCmQJ82IxsmRP4F726DiD5+yrTP4zBAP+flLlZIjEAUJiM5/L42VwZF8k4PVecJbdPyZi2NE3OMErOIlmCMlaTc
file rendered
As you can see from the request, the binary data is inline in the response. When I look at the "Raw" tab in soapUI, it says:
HTTP/1.1 200 OK
Date: Wed, 13 Jan 2010 17:02:31 GMT
Transfer-Encoding: chunked
Content-Type: text/xml; charset=UTF-8
X-Powered-By: Servlet/2.5 JSP/2.1
and then has the response. (No attachements)
How do I get soapUI to dump and decode the binary data for me? I want to make sure its a valid PDF and all that.
So here's the issue: I get the response back in soapUI, and it looks like this:
As you can see from the request, the binary data is inline in the response. When I look at the "Raw" tab in soapUI, it says:
HTTP/1.1 200 OK
Date: Wed, 13 Jan 2010 17:02:31 GMT
Transfer-Encoding: chunked
Content-Type: text/xml; charset=UTF-8
X-Powered-By: Servlet/2.5 JSP/2.1
and then has the response. (No attachements)
How do I get soapUI to dump and decode the binary data for me? I want to make sure its a valid PDF and all that.