开发者

Tool to generate request body of a rest ws?

开发者 https://www.devze.com 2022-12-21 09:43 出处:网络
I have a rest service that can be reached with a post request. But There\'s many complex types as parameters, does it exists some tools that can generate the body request for me ?

I have a rest service that can be reached with a post request.

But There's many complex types as parameters, does it exists some tools that can generate the body request for me ?

Thanks for your help.

Best regards开发者_开发知识库


Tim, you might want to look at the Sun implementation of JAX-RS (called Jersey). It comes with a client side API and makes use of the standard JAX-RS MessageBodyWriter classes. There is also support for JAXB-based generation of XML from domain objects.

Jersey: http://jersey.java.net/

Besides that: yes, you should provide more details to receive a better answer. I also have a hunch that your REST Web service might not be that RESTful after all given that you say it 'can be reached with POST'. That suggest other methods are not supported - is that true?

Jan

0

精彩评论

暂无评论...
验证码 换一张
取 消