Thank You, Ivan for your inputs, Tried with rerunning the script exactly like postman, like added User-Agent, Accept-Encoding, Accept-Language and changed the Content-Type from text/xml to application/xml in the Header Manager. It started working.
On Thu, Jan 19, 2017 at 9:39 PM, Ivan Rancati <[email protected]> wrote: > Hello, > > two ideas: > > - what encoding are you using? In your jmeter.log file there should be a > line similar to > sampleresult.default.encoding is set to UTF-8 | ISO-8859-1 ... > From your error message, it could be that the server expects utf-8 but the > request is differently encoded > > - try to intercept the two outgoing requests, with a proxy such as > Webscarab or Fiddler, then compare them > > > Info you could provide to the mailing list: > - operating system > - version of Jmeter and jdk/jre > - implementation used in your http sampler (3.1, 4, java) > > best regards > Ivan > > On Thu, Jan 19, 2017 at 4:14 PM, Sankar Das <[email protected]> > wrote: > > > Hi, > > > > I am trying to do one api testing using Jmeter. When firing the same > > request from Postman I am getting proper response with response code 200. > > > > But when trying to do the same from JMeter getting 200 response code and > > success message but the request is not passing through. Whereas in > Postman, > > it is passing and one orderid is gretting created. > > > > When checked in logs, it is saying message request is not in proper > format > > and getting below error message. > > > > Error Massage: > > > > org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: > Invalid > > UTF-8 middle byte 0x6b (at char #4353, byte #3999) > > > > What can I do to prevent this error. Please help. > > >
