What is the difference between JAX-RS and JAX-WS?
Another important point JAX-WS represents SOAP JAX-RS represents REST How to choose between JAX-RS and JAX-WS web services implementation?
Another important point JAX-WS represents SOAP JAX-RS represents REST How to choose between JAX-RS and JAX-WS web services implementation?
It depends. Out of the box, putting nginx in front as a reverse proxy is going to give you: Access logs Error logs Easy SSL termination SPDY support gzip support Easy ways to set HTTP headers for certain routes in a couple of lines Very fast static asset serving (if you’re serving off S3/etc. though, … Read more
The JSON spec requires UTF-8 support by decoders. As a result, all JSON decoders can handle UTF-8 just as well as they can handle the numeric escape sequences. This is also the case for Javascript interpreters, which means JSONP will handle the UTF-8 encoded JSON as well. The ability for JSON encoders to use the … Read more
You should return a 401 Unauthorized Status Code. You might additionally provide hypermedia to establish the token again Think about what happens in a web app. You go to say a banking site. If not auth’d it will send you to the log in page. Then you log in and you are good to go … Read more
Think about purchase as a business entity or a resource in RESTful dictionary. That being said, making a purchase is actually creating a new resource. So: POST /api/purchase will place a new order. The details (user, car, etc.) should be referenced by id (or URI) inside the contents sent to this address. It doesn’t matter … Read more
The two protocols have very different uses in the real world. SOAP(using WSDL) is a heavy-weight XML standard that is centered around document passing. The advantage with this is that your requests and responses can be very well structured, and can even use a DTD. The downside is it is XML, and is very verbose. … Read more
AFAIK, TradeStation is the most famous of the lot. Most other trading softwares provide APIs (NinjaTrader, MetaStock etc). FWIW, there are even competitions of automated trading systems — see this. Also, this is something that the exchange has to support and your broker has to allow. Most exchanges I know of, do not allow automated … Read more
No, they don’t use files. When you click on a link like that, an HTTP request is send to their server with the full URL, like http://bit.ly/duSk8wK (links to this question). They read the path part (here duSk8wK), which maps to their database. In the database, they find a description (sometimes), your name (sometimes) and … Read more
After reading your question, I would say, generate special token to do request required. This token will live in specific time (lets say in one day). Here is an example from to generate authentication token: (day * 10) + (month * 100) + (year (last 2 digits) * 1000) for example: 3 June 2011 (3 … Read more
REST should be used if it is very important for you to minimize the coupling between client and server components in a distributed application. This may be the case if your server is going to be used by many different clients that you do not have control over. It may also be the case if … Read more