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
145
votes
30 answers

Cannot open database "test" requested by the login. The login failed. Login failed for user 'xyz\ASPNET'

I have created a web service which is saving some data into to db. But I am getting this error: Cannot open database "test" requested by the login. The login failed. Login failed for user 'xyz\ASPNET'. My connection string is Data…
coure2011
  • 40,286
  • 83
  • 216
  • 349
144
votes
3 answers

How to generate service reference with only physical wsdl file

I have been creating and consuming web services for years and always have been able to use Visual Studio to create a service reference from the client. I have a third party service I need to work with and they refuse to open their security so I can…
kfoster
  • 1,623
  • 2
  • 11
  • 11
142
votes
9 answers

Best way to create a simple python web service

I've been using python for years, but I have little experience with python web programming. I'd like to create a very simple web service that exposes some functionality from an existing python script for use within my company. It will likely return…
Jeremy Cantrell
  • 26,392
  • 13
  • 55
  • 78
139
votes
13 answers

Service Reference Error: Failed to generate code for the service reference

I have a Windows Service Solution and am trying to add a service reference to a Hermes(Opensource ebms message server) Web Service in VS2010. I can find the Web Service using it's URL, but when I try and populate the Service reference I get the…
jheppinstall
  • 2,338
  • 4
  • 23
  • 27
138
votes
4 answers

How to use a WSDL

I need to consume a Web Service. They sent me the WSDL file. What should I do to add it to my website and start using it as the proxy. ( If I put it on a Virtual Directory it can be discovered, but does it grant me the connection with the real web…
jmayor
  • 2,725
  • 4
  • 29
  • 37
136
votes
10 answers

How can I consume a WSDL (SOAP) web service in Python?

I want to use a WSDL SOAP based web service in Python. I have looked at the Dive Into Python code but the SOAPpy module does not work under Python 2.5. I have tried using suds which works partly, but breaks with certain types (suds.TypeNotFound:…
davidmytton
  • 38,604
  • 37
  • 87
  • 93
133
votes
13 answers

How to check task status in Celery?

How does one check whether a task is running in celery (specifically, I'm using celery-django)? I've read the documentation, and I've googled, but I can't see a call like: my_example_task.state() == RUNNING My use-case is that I have an external…
Marcin
  • 48,559
  • 18
  • 128
  • 201
130
votes
7 answers

Working Soap client example

I'm trying to find a simple (ha) SOAP example in JAVA with a working service, any I seem to be finding are not working. I have tried this one from this example but it's just not working, it's asking me to put a forward slash in but it's in there and…
M_K
  • 3,247
  • 6
  • 30
  • 47
129
votes
8 answers

Why do we need RESTful Web Services?

I'm going to learn RESTful web services (it's better to say that I'll have to do this because it's a part of CS master degree program). I've read some info in Wikipedia and I've also read an article about REST at Sun Developer Network and I see…
Roman
  • 64,384
  • 92
  • 238
  • 332
128
votes
13 answers

java.net.UnknownHostException: Unable to resolve host "": No address associated with hostname and End of input at character 0 of

I've created an app that loads a question from my web services, and it works fine. But, sometimes it crashes and I do not get the reason why this is happening, especially because I have also given it the required permissions. It works fine, but at…
Reshma
  • 1,449
  • 2
  • 10
  • 17
126
votes
1 answer

How to access parameters in a RESTful POST method

My POST method looks like this: @POST @Consumes({"application/json"}) @Path("create/") public void create(String param1, String param2){ System.out.println("param1 = " + param1); System.out.println("param2 = " + param2); } When I create a…
Klaasvaak
  • 5,634
  • 15
  • 45
  • 68
120
votes
2 answers

Spring 4 vs Jersey for REST web services

We are planning to make a new application with spring 4.0.6 version. We use controller that can return "XML" or "JSON". In the previous project we have successfully implemented Jersey with Spring for REST support using JAX-RS API, but after reading…
RSCode
  • 1,573
  • 2
  • 13
  • 21
119
votes
9 answers

RESTful web service - how to authenticate requests from other services?

I am designing a RESTful web service that needs to be accessed by users, but also other web services and applications. All of the incoming requests need to be authenticated. All communication takes place over HTTPS. User authentication is going to…
119
votes
4 answers

what's the correct way to send a file from REST web service to client?

I've just started to develop REST services, but I've come across a difficult situation: sending files from my REST service to my client. So far I've gotten the hang of how to send simple data types (strings, integers, etc) but sending a file is a…
Uriel
  • 1,365
  • 2
  • 12
  • 15
118
votes
2 answers

Differences between websockets and long polling for turn based game server

I am writing a server for an iOS game. The game is turn-based and the only time the server needs to push information to the client is to notify of the opponent's move. I am curious if anyone could comment on the performance and ease of…
acidic
  • 1,497
  • 2
  • 19
  • 23