Hi,
I'm writing a JMeter test to test a RESTful webservice I've written. The webservice POST methods both consume and produce "text/xml" content type. In my test I have an HTTP Request with a "user" request parameter and a file to send with the request containing the XML. I configured the file as: File Path: ./Resource.xml Parameter Name: <empty> MIME Type: text/xml The sampler request is as follows: Thread Name: Thread Group 1-1 Sample Start: 2010-08-23 16:12:34 MDT Load time: 3 Latency: 3 Size in bytes: 1129 Sample Count: 1 Error Count: 1 Response code: 415 Response message: Unsupported Media Type Response headers: HTTP/1.1 415 Unsupported Media Type X-Powered-By: Servlet/3.0 Server: GlassFish Server Open Source Edition 3.0.1 Content-Type: text/html Content-Length: 1129 Date: Mon, 23 Aug 2010 22:12:34 GMT HTTPSampleResult fields: ContentType: text/html DataEncoding: ISO-8859-1 As shown above, I get a 415 error. The request looks like this: POST http://localhost:8080/MyWebService/resource/ POST data: user=TestUser [no cookies] Request Headers: Content-Length: 13 Connection: keep-alive Content-Type: application/x-www-form-urlencoded The XML wasn't included, so, thinking that the issue was the relative path to the xml file, I changed it to an absolute path. However, I still get the same response. How should I configure the sampler to include the contents of the xml file? Thanks! Shelli

