RESTful 1 « restful « Java Enterprise Q&A





1. Can my .NET Web Services be considered as a RESTful interface?    stackoverflow.com

Happy New Year. I have a bunch of SOAP Web Services. They all have an HTTP POST and GET interfaces along with the SOAP interface. I believe POST and GET are offered ...

2. Java and other clients for WCF RESTful Services    stackoverflow.com

I am wanting to expose some data service endpoints for internal application use and am debating on WCF REST as a possible solution. What are my options for other ...

3. Is RESTful faster than SOAP? and when to use one of them?    stackoverflow.com

Duplicate: This is a duplicate of "What are the best uses of REST services?" and many others. Please close it. In web development: Should i learn RESTful services very well and make ...

4. How do I write a restful web service that accepts a binary file (pdf)    stackoverflow.com

I'm trying to write a restful web service in java that will take a few string params and a binary file (pdf) param. I understand how to do the strings but ...

5. Restful vs Soapbased    stackoverflow.com

Friends, If I need to make a choice between using Restful versus Soap based web services, what factors should be considered in making this choice. Assuming that my applications can support both ...

6. Restful web service in java    stackoverflow.com

I have a project and i was trying to create a restful webservis. I searched a lot and almost finished all the net documentation. Always having a problem. Can someone say ...

7. Restful and SOAP    stackoverflow.com

How can i implement both restful and Soap together?

8. How can I pass a user name and password for calling the restful web service    stackoverflow.com

I have a restful web service running and that is a password protected application. I am using Client and WebResource in my java code to call the service. But when I ...

9. What is RESTFul Web Services in Java    stackoverflow.com

Well as the title suggest, what is this Restful Web Service thing in Java, What are its benefits over SOAP Web Services, why the hell someone implemented again some other technology? ...





10. Why isn't SOAP-based web service RESTful?    stackoverflow.com

I understand RESTful is an architecture style, but what exactly makes SOAP-based web service not count for RESTful? It's not clear to me which points below (from Wikipedia), is not ...

11. main difference between SOAP and RESTful web services in java    stackoverflow.com

Follow up question to this post Fow now I have a slight idea about difference of SOAP and RESTful. My question is when to use SOAP and when to use RESTful, ...

12. Ways to test RESTful services?    stackoverflow.com

I want to test my RESTful applications directly via HTTP and I am looking for tools that can help me with that task. Basically I am looking for an easy wrapper ...

13. How to port WCF RESTful web service to Axis 2/C (or WSO C++)    stackoverflow.com

We are looking at redoing some web service applications (currently in prototype phase) from WCF/C# to a C++ cross platform web service framework. So, I'm looking at Axis2/C or WSO2 ...

14. Suggestions on RESTful Java Web Services Framework...     stackoverflow.com

I googled some information about web services, it seems like a enterprise level application. I found that RESTful design is very cool idea on this. I find that Apache CXF looks ...

15. EclEmma JAVA Code coverage - Unable to coverage service layer of RESTful Webservice    stackoverflow.com

I am using EMMA eclipse plugin to generate code coverage reports. My application is a RESTFul webservice. Junits are written such that a client is created for the webservice and invoked with various ...

16. Consume restful webservice through web proxy    stackoverflow.com

I'm trying to consume a restful webservice in java using the Apache Wink framework through my school web proxy requiring authentification

ClientConfig clientConfig = new ClientConfig();
clientConfig.proxyHost("proxy.school.com");
clientConfig.proxyPort(3128);
//nothing to set username and ...





17. I can't create a clear picture, why and when to use RESTful services?    stackoverflow.com

Why and when to use RESTful services? I know how to create a WCF webservice. But I am not able to comprehend when to use a SOAP based service and when to ...

18. Can we have both RESTful and SOAP Web Services in our application    stackoverflow.com

We have been using SOAP based web services in our J2EE application. Now there is a requirement of having client for RESTful web services. If we are going to have client ...

19. RESTful Strings matcher in Java    stackoverflow.com

I'm looking for a Java library that evaluates REST-style URLs. Something like:

public Result evaluate(String url, String pattern);
The pattern would be something like: /users/{userId}/photos/{photoId}.html The result must include:
  • indication if the url matches pattern
  • the ...

20. Developing Restful Web Service with JAX-WS/Axis2    stackoverflow.com

I'm new with Restful Web Services and got some questions about some of the requirements needed to create one. 1) I got only Apache2 installed on machine and I can't install any ...

21. RESTful Web Development With Java EE 6 - what are the options?    stackoverflow.com

I'm trying to figure out what the best options are for developing a RESTful web application with Java EE 6. For example, I want to be able to interpret a URL ...

22. RESTful call in Java    stackoverflow.com

I am going to make a RESTful call in Java. However, I don't know how to make the call. Do I need to use the URLConnection or others? Can anyone help ...

23. how is Restful web services better than SOAP based webservices    stackoverflow.com

I Have gone through various sites and the only answer they provide is - Restful webservices makes use of Http's own methods such as (GET,POST,PUT,DELETE).. Whereas SOAP based webservices makes use ...

24. Need good tutorials of web service in java of restful, SOA and axis [video tutorials]    stackoverflow.com

hey hi, Friends i have planned to start developing on web services in java, so plz i need some useful tutorials for developing web ...

25. WCF RESTful service Endpoint NOT Found    stackoverflow.com

I have try to write a soap and RESTful WCF service, since it is the first time, find some source from internet, then get through some errors but this error stops ...

26. Web services(SOAP based/Restful)    stackoverflow.com

I want to learn Java WebServices. I read couple of articles on IBM developer works but I think I am getting confused about where to start. My main interest is Restful ...

27. restful call Wrong MediaType format for MediaType:"*; q=.2"    stackoverflow.com

Trying to execute restful web service using POST method. Here is the relevant part of my interface:

@Path("/customers")
public interface CustomerResource {
 @POST
 @Consumes(MediaType.APPLICATION_XML)
 public Response createCustomer(InputStream is);
      ...

28. Are Restful web services created in axis2/c truly RESTful?    stackoverflow.com

I'm a newbie to RESTful webservices and I'm trying to create a RESTful webservice in one of our previous SOAP based webservice hosted in axis2c which by it's documentation says that ...

29. How to consume restful wcf service in java?    stackoverflow.com

I have a .net restful wcf service . I want to know how can i consume in java. Kindly,help me. Thank you

30. What's an appropriate way of appending metadata to objects before returning via a RESTful WS?    stackoverflow.com

I have a RESTful web service that responds to /user/{userId} with a marshalled XML representation of a User domain object (using JAXB). What's an appropriate way of communicating back to the ...

31. Byte array versus Base 64 string in RESTful web service    stackoverflow.com

My REST web service has to send an image file to the client. I am confused between 2 options : send the image as a byte array, or should I encode ...

32. Designing RESTful login service    stackoverflow.com

I went through a similar question here. But I am yet not clear over concepts. Here is my scenario... My client (a mobile device app) has a login screen to enter ...

33. Are there javadoc-like tools to generate RESTful web service apidoc from JAX-RS annotations?    stackoverflow.com

I'm developing a web service with CXF by using JAX-RS annotations on resources. These annotations specify arguments names, default values, and the valid input and output mime types. It'd be nice ...

34. In Restful web services how to get username or password programmatically (basic authentication)    stackoverflow.com

I have restful web services in a jee application (ejb3) running on jboss. And do not know how to get username or password programmatically, like when service method is called I ...

35. How to call a RestFul web service in the async way?    stackoverflow.com

I am wondering how to call a restful web service asynchronously? Any suggestions?

36. HTTPS Restful Image Web Search    stackoverflow.com

I'm wondering if anyone has a recommendation on a key word image web search. I'm currently using http://flickr.com/services/rest/?method=flickr.photos.search but it doesn't serve the images up via https and ...

37. Wait for data to download in RESTful Webservice    stackoverflow.com

I am sending one request to fetch data on the server side RESTful webservices , now in my webservice i have written a code to fetch historical data from external service ...

38. How to Persist Connection between RESTful Webservices    stackoverflow.com

I have a two restful webservices:

  1. getMarketData
  2. stopMarketData
getMarketData pulls the data from external service. stopMarketData will stop the pulling process of data being fetched from external service. Now the problem is, when I fire ...

39. What library was used to create RESTFul Web Services in C/C++ and Java (jdk 1.4)?    stackoverflow.com

This question may sound weird but I have to do a research paper on the history of RestFul web services. I want to know what C or C++ library could be ...

40. RESTful Webservice GET file    stackoverflow.com

I have a RESTful service implemented in java to upload files. Here is the code:

@POST
@Produces("text/plain")
public String uploadFile(@Context HttpServletRequest request) {

    String resultStatus = "fileupload error";
    ...

41. How to authenticate restful web service using oAuth    stackoverflow.com

I want to do authentication in RESTful web service for every request. I have read scope about OAuth in website. What should I store in database or which token key or ...

42. how to resole the errors occuring in restful webservice testing time? the problem is    stackoverflow.com

javax.servlet.ServletException: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: null
Error Code: 0

root cause

    javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services ...

43. Choosing Java Restful framework for heavily loaded server    stackoverflow.com

I'm trying to figure out what Java Restful framework is the best suitable fom heavily loaded identity manager server. Did someone run load tests for Restful frameworks and is willing to share ...

44. swig, soap or restful for my c/c++ library    stackoverflow.com

I have a library/API that is completely built with C/C++ for over 10 years (under Linux). Now I want to export the API as a web service for other web projects ...

45. Convert SOAP to a virtual Restful service?    stackoverflow.com

Is there a way to use my SOAP web service(spring-ws, java) as a XML based RESTful service virtually? I don't want to re-write whole my SOAP web service into RESTful from scratch ...

46. How do I specify relative file paths in restful web applications    stackoverflow.com

Deployment of my restful application will be "exploded" from a single WAR file. All file paths will need to be relative and not absolute (Nesting from a single WEB-INF directory). What ...

47. Strategy for minimizing dependencies between internal subsytems in a RESTful Java ecosystem    stackoverflow.com

The architecture of our system is such that there is a set of functionally subdivided RESTful subsystems. Many of these subsystems not only have to respond to requests from browsers but ...

48. Java Restful Web Services (jax rs) authentication pattern    stackoverflow.com

I have started using JAX-RS to created a simple restful interface to my web application. Currently, it is only being used (read only) by one internal client which has access to ...

49. How to make restful calls from server?    stackoverflow.com

Hi i have a restful project and I make rest calls from client side. But for a case I need to make restful calls from server side. How can i do ...

50. Recommended Java packages/jars to access and process RESTful web services    stackoverflow.com

I want to access an external RESTFul Web service via Java, and use an open source package that processes the returned XML or Json result and creates object(s) from this data. I ...

51. calling Restful Service from Java    stackoverflow.com

Here I am not creating a RESTful service indeed I have to call an external Restful service from my java code. Currently I am implementing this using Apache HttpClient. The response that ...

52. RESTful cross authentication    stackoverflow.com

I have 2 RESTful services realized in JAX-RS (Jersey): "A" and "B". They are deployed on a separate application servers. "A" and "B" are both of mine.

  1. Client connect and login at ...

53. WSDL2REST - is there a C# version? (convert SOAP to RESTful web service)    stackoverflow.com

converting a WSDL to a REST web service, Is there a C# version of this library? http://wsdl2rest.sourceforge.net/

54. Are asynchronous RESTful web services possible?    stackoverflow.com

Reading RESTful documentation, it does not seem like it is possible to implement an asynchronous instance, but someone may know better on SO. What I mean here is I would like ...

55. Can main thread end in RESTful webservice while worker thread continues?    stackoverflow.com

I have a Java RESTful webservice that will be called about every 10 seconds by another process. If conditions are right, the webservice needs to perform a potentially extensive ETL ...

56. Stuck at Restful implementation (Jax-RS)    stackoverflow.com

My server side code:-

@ApplicationPath("/externalpartnerws")
public class ExternalPartnerApplication extends javax.ws.rs.core.Application {
    public Set<Class<?>> getClasses() {
        return  new HashSet<Class<?>>() { { add(ExternalPartnerApplicationResource.class); } ...

57. RESTful testing, transfer results    jmeter.512774.n5.nabble.com

Hi, I played a bit with jmeter and I just installed the jmeterrestsampler[1]. So far it works well, but I still have some open questions, maybe you can point me to the correct faqs ;-) * Can I transfer the result header of a http request to the next step? (Parts of the Location: header) * Can I write a ThreadGroup ...

58. RESTful Webservice    jmeter.512774.n5.nabble.com

> From: [hidden email] > To: [hidden email] > Subject: RE: RESTful Webservice > Date: Mon, 22 Jun 2009 19:12:47 +0530 > > > Good to know that it is possible to use JMeter to test REST services. I have been trying to do that, but have failed so far to find how to do it. In particular, I am trying ...

59. Which Sampler to use to test RESTful Web Service?    jmeter.512774.n5.nabble.com

Sampler --> Web Services will work for this ________________________________________ From: Deepak Shetty [[hidden email]] Sent: Wednesday, July 15, 2009 11:03 AM To: JMeter Users List Subject: Re: Which Sampler to use to test RESTful Web Service? hi Sampler > HTTP Request (with HTTPClient or the normal one) regards deepak On Tue, Jul 14, 2009 at 10:17 PM, Anwaruddin Mohammad < [hidden ...

60. RESTful interoperability    coderanch.com

Hi, Jason. I can think of a few levels of interoperability: 1. Interoperability between HTTP clients. Different clients should send the same HTTP requests to convey the same messages. The main problem here is that some clients are designed for simplicity and only support a subset of the HTTP methods (GET only, or GET and POST only). All the Java clients ...

61. RESTful Web Services Book Promotion Quries?    coderanch.com

NDP Prasad, RWS is fundamentally a book about design, so most of it can be applied to any programming language. My model was "Design Patterns". The examples in that book are all in C++, but it's not a C++ book. The chapters with the most Ruby code are 3 and 7, which go in-depth to design and build a complex web ...

62. RESTful Web Services book for beginners?    coderanch.com

I have no doubt that you can learn about REST web services from this book. However usually when people talk about "Web Services" in general they are talking about SOAP Web Services and possibly how there are applied in a "Services Oriented Architecture". Most of the tools available today generate SOAP Web Services. The design principles of REST are aimed at ...

64. RESTful Web Services:About the book    coderanch.com

Pallavi, REST is a different style of designing web services. In a typical SOAP/WSDL service you expose to the network a small number of "service" objects (usually one), and each object can expose a large number of operations with custom names. A RESTful design is more data-oriented. The dataset is exposed to the network through a large number of standard HTTP ...

65. [thought on RESTful WS] the analogy of OSI vs TCP/IP    coderanch.com

I'm not sure that I can communicate this thought so early in the morning, but... Back in school, I remember a parallel being drawn between the OSI model of networking and the TCP/IP model. OSI was much more academic and formal with its famous 7 layered architecture; the TCP/IP model was tighter and seemed more pragmatic. Not in terms of bits ...

66. [Query on Discovery of RESTFul Services] Leonard , Sam    coderanch.com

Hi Leonard,Sam After creating the RESTFul service can I publish it to the UDDI? Can we generate WSDL's out of the deployed RESTFull Web Service? How will be prospect user of the webservice be able to discover their URL's where the resource is deployed and the verb to be used? Sorry, If I am sounding to basic.. But just trying to ...

67. Winners: RESTful Web Services    coderanch.com

68. RESTful Webservice    coderanch.com

I have never written any sort of webservice, but an tasked to do so now. We have decided to use restlets. I need to write a certificate based authentication webservice, where the client will pass us criteria (guid, username, password, etc), and then we need to look up this data and see if the guid is valid, and the username/password are ...

69. RESTful best approach    coderanch.com

Hi all, I'm building a Portal using the REST way. In this portal there are some shopping features. For sure we have then the usual suspects: the catalog and the basket. I have portlet to show product list, product detail and to interact with the basket. Some product can be added directly to the Basket while others should be configured first ...

70. Issue accessing restful service    coderanch.com

I'm getting the below exception while accessing a restful web service [SOAPException: faultCode=SOAP-ENV:Client; msg=No Serializer found to serialize a 'org.apache.soap.rpc.Parameter' using encoding style 'http://schemas.xmlsoap.org/soap/envelope/'.; targetException=java.lang.IllegalArgumentException: No Serializer found to serialize a 'org.apache.soap.rpc.Parameter' using encoding style 'http://schemas.xmlsoap.org/soap/envelope/'.] This is the public URL of wsdl and client program http://68.87.86.50/oss/services/ScoutPACKETCABLEResetService?wsdl ------------------------------------------------------------------------------ import java.net.*; import java.util.*; import org.apache.soap.*; import org.apache.soap.rpc.*; import org.apache.soap.transport.http.*; public class WSClient ...

71. RESTful in real world    coderanch.com

72. How to build RESTful Web services in Java    coderanch.com

We have built a set of web services. However few of our clients are not able to understand web services. Hence we need to build some wrapper over our web services so that they can send in http request and receive xml responses. I have heard that REST can do something similar. Are their any framework which can help me build ...

73. Issues related to RESTful web servicers    coderanch.com

Security is an issue. SOAP stacks have the full arsenal of tools afforded by WS-Security, but REST has only HTTP-based approaches (like Basic authentication and SSL encryption) available. Can anyone give me specific issues , problems related to RESTful web services ? Ok. Lets say security is an issue ??? So what are the specific issues related to web service security ...

74. restful    coderanch.com

I have applied correct content type for excel i.e httpResp.setContentType("application/vnd.ms-excel"); httpResp.addHeader("Content-Disposition", "attachment; filename=\"exceltemplate.xls\""); but still i am getting that IE cannot download. I doubt if the front end that is ajax is not able to receieve the response.since that is being read and flushed in filter but not downloadable in front end i.e ajax

75. Restful vs Soap Survey    coderanch.com

76. RESTful web services and status code philosophy    coderanch.com

OK, for a GET specifying a record (or some such) that doesn't exist, the response has status code 404 (not found). That's easy. But what about a PUT that fails because the user gave bad input? 404 doesn't seem to cut it. And there doesn't seem to be any other pre-defined status codes that don't already have some heavy HTTP semantics ...

77. RestFul web services with Axis 2    coderanch.com

Hi All, I am new to web service and I have to implement RESTFul web service using Axis2. I have created the service and it is working fine when tested with normal http client. But when I am trying to call it through other client getting error saying content-type required. When set the content type in client code getting other error ...

78. JDK 1.4 for RESTful web service?    coderanch.com

Hello Friends, For one of my project I'm thinking of developing Web service using RESTful architecture. I just wanted to know about JDk 1.4 support for RESTful web service. I can see the some examples in internet but all with Annotations. I'm yet to dig into the details, before that i would like to know your inputs. Thanks

79. RESTful query query #2: Executing a stored query    coderanch.com

If you have a look at the original topic RESTful APIs: GETs with bodies? you'll see that the issue never came up because the query was POSTed to the "parent" resource. The "parent" resource generates a URI to the "child" resource and the results are retrieved from the "child" resource URI. So that lack of symmetry of the representations never came ...

80. Error handling in RESTful Webservices    coderanch.com

81. Video: RESTful Enterprise Development    coderanch.com

83. RESTFul web service    coderanch.com

Hi! The following example is a very quick and dirty example on how to implement a standalone RESTful service using the RESTlet framework. I have put the two parameters in the query string, but if you do serious service development you will probably want to enclose a JSON or XML fragment containing the parameters when invoking the service. The Grizzly libraries ...

84. RestFul web Services    coderanch.com

85. SOAP x RESTful WebServices    coderanch.com

What are the benefits in using SOAP instead of RESTful WebServices? Is SOAP mostly implemented using HTTP protocol? Is it really more difficult than REST? Which one is more secure or requires more security (like firewall, etc.)? Which one Google uses? Sorry for the spitting questions, I'm still a little confused about those. The only reference I found was Wikipedia, which ...

86. Exposing a service as both Restful and Soap    coderanch.com

Hi! The simplest way is to use a Java-first approach according to, for instance, the following tutorial: http://www.netbeans.org/kb/docs/websvc/jax-ws.html You should pay attention to separate things related to the different services in one layer, the service layer, and common request processing code in another layer, the processing layer. I suspect it will mean more work to reuse part(s) from the REST service ...

87. can we use RESTFul webservice ?    coderanch.com

i would like to know shall i use RESTful webservice to my project. or any issues are there. i started my project with webservice.but i need to send bulk of date to Flex client and also swing application client so planning to use RESTFul webservie .please suggest me How RESTful help me

88. Regarding Restful Webservices    coderanch.com

Hi All, I am new to RESTful Jersey webservices, Could you please answer the following questions. # Purpose of Jersey web-services; What is the protocol it uses? Advantages, Disadvantages? # In what way it is different from plain WS (app server dependent), Axis WS? # What are the types of Jersey WS? # What mechanism it uses to return the results? ...

89. Advantages of RESTful web services ?    coderanch.com

Hi, I just got familiar with the development of web services using REST and JAX-RS. It seems to me that the development of web services is faster this way. However I am wondering what the other advantages are, compared to other standards (JAX-WS, JAX-RPC ...) In which cases do you recommend the development of web services using REST ? On the ...

90. Help required: Compiling/Deploying a RESTful web service    coderanch.com

Hi all, I am trying to write and run a RESTful WS. I have jdk1.5,tomcat 5.5, JAX-WS2.1.7 jar(placed in lib directory of tomcat) and eclipse ganymede ide. I wrote a sample AddNumbers service (got it from a web tutor) using elipse.I also created web.xml , sun-jaxws.xml and AddNums.wsdl and placed them all in WEB-INF directory of my project as directed in ...

91. What kind of data representation usually used in Restful?    coderanch.com

The great advantage of RESTful architecture is that it does not require any particular data representation. A RESTful client can request a particular kind of representation and the service should be able to create it. For example, using the Jersey framework you can define methods in your service class that return XML, JSON, plain text, html or an image. All of ...

92. Doubt in RESTful web service in Java    coderanch.com

Hi All, I am new to web services. I want to create RESTful Web Service in java. So i decided to use Jersey. and i worked with sample (Hello world application) in RESTful calls. my doubt is , when i use GET operation, it returns whatever i returned. that's fine. But when i use PUT, the sample code puts my details ...

93. A newbie to RESTful WebServices.    coderanch.com

Folks, Please point me to some nice articles / books which talks about securing RESTful webservices. The Google search results in numerous hits. Its very difficult for me to skim through. Please provide me any bookmarks / books / etc. you came across, which might give me a clear Idea. Thanks a Bunch! _SM

94. restful webservices    coderanch.com

95. RESTful Webservice - What are the different ways to create it ?    coderanch.com

Hello techies, I want to know different ways of creating RESTful webservice. Like a SOAP service can be created using Axis , Axis2 , and other implementations. Also certain APIs- JAX -WS , JAX-RPC, JAXB, etc. are available. Similarly, for REST, JAX -RS is available and one reference implementation - Jersey. Query is - Can a REST based web service be ...

96. RESTful service design ?    coderanch.com

I am bit confused as to where I should be posting this question. The thing is - 1. I have figured out my database. Multiple relations and many to one mapping etc. 2. Reverse engineered with Hibernate tools to generate the POJOs. 3. Now, I have a Spring (RESTful) webapp on top of it. So is it a good idea to ...

97. RESTful web services    coderanch.com

98. RestFul    coderanch.com

99. Testing restful web service    coderanch.com

Hi! I can only think of the following way: - Mock out all subsystems used by the RESTful web service. - Start the RESTful web service. If you do not want to start it in the container it is to run in, then you may want to consider Jetty. - Have a client, either an existing one or one specially implemented ...

100. RESTful Web Services supports only bottom-up(approach) ?    coderanch.com

Hi! Theoretically, both WADL and WSDL 2.0 can be used to describe RESTful web services. As far as I have seen, practical use is limited, as is tool support. There are a number of other options in, for instance NetBeans, that allow you to create a RESTful web service from an entity class, a database table etc etc. Perhaps these may ...