[英]How to create a rest client with service endpoint url and no java classes given?
I have been given a rest service endpoint url, http://edc.edu.com:8087/edc/connections/activate
and told to generate a client, it's using POST method and no data shall be passed, just a ping to the web service. 我得到了一个休息服务端点URL,
http://edc.edu.com:8087/edc/connections/activate
//edc.edu.com:8087 / http://edc.edu.com:8087/edc/connections/activate
connections / activate,并被告知生成一个客户端,它使用的是POST方法,并且不应传递任何数据,只是对网络服务。 How to create a client using just a url, the Application type used is JSON? 如何仅使用URL(使用的应用程序类型为JSON)创建客户端?
If you are using chrome browser, then add the extension Advanced Rest Client (ARC) . 如果您使用的是chrome浏览器,则添加扩展Advanced Rest Client(ARC) 。 Using this client you can call your service using any HTTP method (GET,POST etc).You can set the application type to json by setting the content type to 'Content-Type: application/json'
使用此客户端,您可以使用任何HTTP方法(GET,POST等)调用服务。您可以通过将内容类型设置为“ Content-Type:application / json”来将应用程序类型设置为json。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.