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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
How can i implement both restful and Soap together?
|
|
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 ... |
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? ... |
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 ... |
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, ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ...
|
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 ... |
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 ... |
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 ...
|
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 ... |
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 ... |
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 ... |
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 ... |
hey hi,
Friends i have planned to start developing on web services in java, so plz i need some useful tutorials for developing web ... |
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 ... |
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 ... |
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);
...
|
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 ... |
I have a .net restful wcf service .
I want to know how can i consume in java.
Kindly,help me.
Thank you
|
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
I am wondering how to call a restful web service asynchronously? Any suggestions?
|
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 ... |
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 ... |
I have a two restful webservices:
getMarketData
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 ... |
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 ... |
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";
...
|
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 ... |
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 ...
|
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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.
- Client connect and login at ...
|
converting a WSDL to a REST web service, Is there a C# version of this library?
http://wsdl2rest.sourceforge.net/
|
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 ... |
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 ... |
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); } ...
|
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 ... |
> 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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
|
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 ... |
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 ... |
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 ... |
|
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 ... |
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 ... |
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 ... |
|
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 ... |
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.comI 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 |
|
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 ... |
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 ... |
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 |
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 ... |
|
|
|
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 ... |
|
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 ... |
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 ... |
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 |
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? ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 |
|
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 ... |
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 ... |
|
98. RestFul 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 ... |
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 ... |