Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

In the client when i call ErrorResponse exc = response.getEntity(ErrorResponse.class); i get the following stack trace. Any ideas? [org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.] at com.sun.jersey.core.provider.jaxb.AbstractRootElementProvider.readFrom(AbstractRootElementProvider.java:108) at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:549) at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:519) at ie.netelek.assets.ws.intf.AssetService.populateCombos(AssetService.java:85) at ie.netelek.assets.add.AddAssetController.populateCombos(AddAssetController.java:181) at ie.netelek.assets.add.AddAssetController.initialize(AddAssetController.java:126) at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2152) at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2028)
- Alan
Brilliant and simple tutorial on implementing a basic RESTful service that connects all the dots…
- K
Pankaj, How does the client know about the EmpRequest, EmpResponse and ErrorResponse classes ? Do we have to copy them from the service side to the client side (similar to how it is done in SOAP WS where the required classes are generated from the WSDL using wsgen utility) ? Can you please clarify ? Thanks
- K
Hi Pankaj, Thanks for the wonderful post. I have my own webservice implementation using jersey client. I have made it secure using the BASIC authentication. It works good but my requirement is to customize the 401 Unauthorized error the validationError XML which I generate in other business errors. Is there any way that we can customize 401 Unauthorized error? Right now if the Auth constraints are invalid, the request does not come to any of the classes in my application. Any help would be appreciated. Thanks in the anticipation. Regards, Amishi
- Amishi Shah
If you ever come to Portugal i will buy you a beer… even if i need to go across the entire country lol
- Tiago Cabral
The content and the collection of questions on your website is amazing. Please provide some interview questions on SOAP and REST webservices.
- Kavya Jindal
Pankaj, Excellent and brief content about REST webservices. Can you please explain about SOAP, WSDL also. Thanks, Sowmya
- Sowmya