Service Test Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

Does HP Service Test Support application/json content Type for Restful services.

Occasional Contributor

Does HP Service Test Support application/json content Type for Restful services.

If yes can some one give me pointers

4 REPLIES
Trusted Contributor

Re: Does HP Service Test Support application/json content Type for Restful services.

Hi 

 

Yes, Service Test 11.20 supports Json as content type for REST Services, even it's already documented on the ST User Guide at page: 222 in the "How to Send a JSON Request to a REST Service" section.

 

Hope this helps. 

 

Juan Pablo MS
HP | Unified Functional Testing Engineer

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Occasional Visitor

Re: Does HP Service Test Support application/json content Type for Restful services.

Hi ,

I am also stuck in at the same place. I want to test JSON based web service. I followed the Help document but my server keeps on returning "HTTP 500 : INternal server error" ..

 

There is very little help mentioned in the document. Can anynbody post an exact solution as how to test a JSON web serivce. I also added the "Content-type" header as "application/json". It did not solve the issue.

Highlighted
Occasional Advisor

Re: Does HP Service Test Support application/json content Type for Restful services.

I am able to do it qwith service test11.5 by selecting request body as Json and successfully sent json request to api..

Occasional Advisor

Re: Does HP Service Test Support application/json content Type for Restful services.

I had the same issue HTTP 500. You may need to add an additional header in the request and this resolved my issue.

Name: User-Agent

Value: Jakarta Commons-HttpClient/3.1