Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I'm looking around for a good solution for JSON-RPC either in JAVA and Javascript (both sides, but I don't mean it has to be the same project!).
Post your hints. I'd like a mainstream project with lot of examples around.
I've tried jsonrpc4j but I can't get it working with spring...
Wikipedia have list of JSON-RPC libraries in various languages.
You can use spring-json view to transfer data from client to server using JSON.
spring-json view
on the official website you will find a list of JSON-RPC libraries/Clients for all languages including java and javascript
http://json-rpc.org/wiki/implementations
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
My question is very concise. I have an API from RapidApi and I am looking to make a interactive Web Application. How can I integrate the API into Java in order to get access to all the methods that the API provides? Thank you.
The API will most probably be a REST API. Have a look at https://restfulapi.net/ for background info.
The process of interacting with a REST API is called "consuming" the API.
Basically you just launch a HTTP request to the API, and the result is a JSON data structure.
The details of the HTTP Requests (URL, HTTP methods to use, and data to send), and the JSON return format are documented by the API.
Although it can be done without using any specific framework, it is probably easier with a framework like Spring.
If you know the basic concepts of Spring you could follow one of their guides about this topic: https://spring.io/guides/gs/consuming-rest/
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
there seems to be many ways to access a REST web service. but different documentation out there states they all have problems and now i am confused what to use.
Here are our options:
HTTPClient - from apache, but deprecated. However Apache does provide some alternative
HttpURLConnection - has bugs in it.
AndroidHttpClient - includes the workaround for a major bug in HttpURLConnection
I really don’t know which one to use from the list above. Is there one which I am missing that I should be using
to access a REST web service ?
Ideally, to access a REST Web service, you use a higher-level library, like Retrofit, that handles more of the work for you.
Otherwise, Google's official recommendation is to use HttpURLConnection.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am trying to scrape data from two websites. I want to build a generic web parser to scrape those website. I need a generic parser because i might need to parse additional websites in the future. I want to parse the websites using java and store specific data in MySQL. What are the steps I should take? Can anyone guide me in this?
I've done this same thing for scraping the web using java and building a parser is an absolute nightmare, there are so many more things to consider that you realize at the start.
Use jSoup. It is sooo easy, and leaves you time to enjoy the finer things in life.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I have a Java web service and want to document the public API so the documentation is able to be browsed from the web from the same URL as the web service. How is this usually done?
There is wsdldocumentation tag:
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Your Documentation</wsdl:documentation>
There is no standard way of doing so. The WSDL is not humanly readable, and the page listing - if any - the possible WSDL's is automatically generated.
You will need to investigate how the web service layer you have chosen, do it, and see if there is any way to "hook into" that mechanism.
You can also use a documentation tool like iDocIt! to add documentation to the WSDL. It is an Open Source Eclipse Plugin for documenting APIs. http://code.google.com/p/idocit
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
we are using the java 6 scripting engine in our product, and now we are thinking on adding some debugging abilities.
my question is:
is it possible? does the java 6 scripting engine has the same capabilities like rhino as far as debugging.
some documentation about how to start doing it, some code samples any information would be great since i could not find anything on the web.
thanks
I'd start by looking at how the open source Firebug (www.getfirebug.com) tool is implemented, unless you're completely wedded to the idea of a "pure" sand-boxed Rhino environment (and even then Firebug could probably teach you a few things).