Questions tagged [web-services]

A "web service" is a software system designed to support interoperable machine-to-machine interaction over the World Wide Web.

A web service is an application that responds to requests using a protocol built on top of HTTP (see also ), the protocol of the World Wide Web. The term can also designate the application protocol itself.

Some web services follow the REST (representational state transfer - see also ) principle, where communication takes the form of requests from a client and matching responses from the server, and the server does not keep track of successive requests from a client (no sessions).

The W3C standardizes WSDL (see also ) to describe web service protocols and SOAP (see also ) to structure messages encoded in XML (see also ).

60164 questions
11
votes
5 answers

What are the pros and cons of Web Services and RMI in a Java-only environment?

When developing distributed applications, all written in Java by the same company, would you choose Web Services or RMI? What are the pros and cons in terms of performance, loose coupling, ease of use, ...? Would anyone choose WS? Can you build a…
cretzel
  • 19,864
  • 19
  • 58
  • 71
11
votes
3 answers

How do I specify if I want JSON or XML in ASP.NET Web API?

I've written two ASP.NET Web API applications this week which both contain a single simple controller; I've tweaked each to get them to work, include exceptions, and so on but they are configured almost the same as far as I can see. One of these…
Kirk Broadhurst
  • 27,836
  • 16
  • 104
  • 169
11
votes
2 answers

How do I call a web service from javascript

Say I have a web service http://www.example.com/webservice.pl?q=google which returns text "google.com". I need to call this web service (http://www.example.com/webservice.pl) from a JavaScript module with a parameter (q=google) and then use the…
Nikhil
  • 2,028
  • 7
  • 24
  • 33
11
votes
4 answers

X.509 certificates on WCF?

Problem : I'm developing this program on one machine. The service works fine in development server, but when I try to host the service in IIS it gives me an error that: Cannot find the X.509 certificate using the following search criteria:…
11
votes
5 answers

How to return JSON from webservice

Morning, I need to return a message from my web service. Below is a sample of my code, and i am returning a string. [web method] public string CheckFeedSubmission() { string responseText = ""; try { //Stuff…
thatuxguy
  • 2,418
  • 7
  • 30
  • 51
11
votes
2 answers

Consuming a WCF WsHttpBinding WebService in Java

I'm trying to get a Java Client to communicate with a WCF wshttpbinding WebService. But I am unable to do so. The call either hangs, or I get "musunderstoodheader expcetions". My Web Service is just the default Visual Studio generated "WCF Service…
vicsz
  • 9,552
  • 16
  • 69
  • 101
11
votes
8 answers

Best practice to detect iPhone app only access for web services?

I am developing an iPhone app together with web services. The iPhone app will use GET or POST to retrieve data from the web services such as http://www.myserver.com/api/top10songs.json to get data for top ten songs for example. There is no user…
Gaius Parx
  • 1,065
  • 1
  • 11
  • 18
11
votes
1 answer

Accessing a web service and a HTTP interface using certificate authentication

It is the first time I have to use certificate authentication. A commercial partner expose two services, a XML Web Service and a HTTP service. I have to access both of them with .NET clients. What I have tried 0. Setting up the environment I have…
11
votes
3 answers

How do I make wsimport generate constructors?

wsimport generates source code without parameterized constructors. Therefore, if the bean has many properties, one needs to invoke all the setters manually: Person person = new Person(); person.setName("Alex"); Address address = new…
Alex
  • 634
  • 1
  • 8
  • 29
11
votes
6 answers

Weather web service for Europe?

We are looking for a reliable "current weather" web service for Europe, with city resolution. We only need the current weather. Since it is for a commercial web site, we don't mind paying a reasonable fee for the service. What are our options? What…
Sklivvz
  • 30,601
  • 24
  • 116
  • 172
11
votes
7 answers

Rest Web services returning a 404

This is my first time using Eclipse, and is causing me to rage a lot. I installed Tomcat 6.0, downloaded the Jersey libraries, and I followed the tutorials from : http://www.vogella.com/articles/REST/article.html#first_client I created the Project…
roymustang86
  • 8,054
  • 22
  • 70
  • 101
11
votes
2 answers

Firebug request size limit has been reached by Firebug

I want to pass data from client side to server-side. I am using jQuery and WebService. If data is small it works fine. If data is big it gives error. What I see in firebug Error is: Firebug request size limit has been reached by Firebug. ... So I…
4b0
  • 21,981
  • 30
  • 95
  • 142
11
votes
3 answers

How to pass comma separated parameters in a url for the get method of rest service

I have a webservice like @GET @Produces("application/json") @Path("{parameter1}/july/{param2},{param3},{param4}/month") public Month getResult(@PathParam("parameter1") String parameter1, @PathParam("param2") PathSegment param2 , @PathParam("param3")…
Ravi Mishra
  • 181
  • 1
  • 3
  • 8
10
votes
1 answer

Multiple WS call in one action, how to handle Promise objects?

I develop a little server in PlayFramework2/Scala which has to retrieve data from multiple WS (REST/JSON), manipulate the data from theses WS, then compose and return a result. I know how to call one WS, manipulate the data and return an Async…
YoT
  • 188
  • 1
  • 6
10
votes
2 answers

Optional parameters in ASP.NET web service

I have a ASP.NET web service. This web service works fine. However, the WSDL lists some parameters as optional (minoccurs = 0) and others as non-optional. Some of the optional parameters are actually not optional, others which are marked as…
Thomas Lötzer
  • 24,832
  • 16
  • 69
  • 55