• Post Reply Bookmark Topic Watch Topic
  • New Topic

Testing client code

 
doug mccann
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are supposed to offer a REST interface on a product. It is not done. I need to write a Java client to any open REST service so we can see what the exchange between client and services looks like. Where would you go to test a client? A simple service?

Thanks
 
Sujeeth Pakala
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Option 1 : From browser.
Option 2 : Using HTTPClient API.
Option 3 : Use JAX-WS's Dispatch class to invoke a REST service.

Switch on the TCP monitor on your IDE. This shows how to configure TCP on eclipse.
 
doug mccann
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sujeeth, but I was actually looking for a URL where I could send the request and look at the TCP exchanged. I have not found one that does not seem to require an account of some sort.
 
Sujeeth Pakala
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understood from your first post that you are building REST service for a product. And, in second post you mention you are looking for URL.

Totally confused :-?
 
doug mccann
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sujeeth, we want to enable an embedded device to respond to REST requests. I was hoping to see the exchange between client and server. Actually I am trying to help the C/C++ guy who is writing the service. I was just going to use Java to write a client, but he was not too clear on exactly how the request and response looked - and he has no nice libraries for his embedded work. Thanks for response, and I hope this clarifies my question.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!