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
10
votes
3 answers

Using XmlIgnore on generated partial classes

I've got a LINQ 2 SQL generated class I'd like to expose through a webservice. There are some internal properties I don't want to be available. Normally I'd throw [XmlIgnore] in there but because the properties are in the generated half I can't do…
Tristan Warner-Smith
  • 9,631
  • 6
  • 46
  • 75
10
votes
6 answers

Hosting static content on different domain from webservices, how to avoid cross-domain?

We've recently been working on a fairly modern web app and are ready to being deploying it for alpha/beta and getting some real-world experience with it. We have ASP.Net based web services (Web Api) and a JavaScript front-end which is 100%…
Tyler
  • 2,699
  • 4
  • 22
  • 31
10
votes
2 answers

Android Application Requiring Large Data Files

I am working on an android app that needs to act on a few data files totaling around 30MB. I put together a test and the emulator failed with OutOfDiskSpace. Debugging on a device failed with even a smaller data size. After reading through the…
AdamC
  • 16,087
  • 8
  • 51
  • 67
10
votes
1 answer

REST standard for checking if resource exists

What is the REST way to check if resource exists or not? Let say you have some resource called Project. By my understating one of this would be the way : GET the resource GET /rest/projects/123 GET /rest/projects/someCriteria GET…
Mite Mitreski
  • 3,596
  • 3
  • 29
  • 39
10
votes
6 answers

Which PHP frameworks are suited for web service only applications?

I'm evaluating PHP frameworks for several upcoming projects, with the goal of using the same framework for all of them. An unusual aspect is that they are NOT standard browser-based applications, they will all be accessed by custom apps that expect…
justkevin
  • 3,089
  • 3
  • 28
  • 33
10
votes
1 answer

Is it possible to use Apache Thrift on a regular web server?

I already have a web server that I pay for, and I want to expose some services on it using Thrift and PHP. My question is: can I run a Thrift server using normal PHP that's hosted on the default port (the same way web pages are hosted) instead of…
Will Warren
  • 1,294
  • 15
  • 33
10
votes
3 answers

Update Service Reference insist on adding Soap12 to Config.

When I update a Service Reference I end up with : An endpoint configuration section for contract 'MyService.MainServiceSoap' could not be loaded because more than one endpoint configuration for that contract was found. Please indicate the preferred…
Bart Calixto
  • 19,210
  • 11
  • 78
  • 114
10
votes
2 answers

How to retrieve array of objects as a result from KSOAP web service in Android?

If I am trying to retrieve first array using (String) response.getProperty(0); but it was returning me a full string. **Here is the code of webservice calling** public static Object getResponse(String methodName, String actionName,…
Nik88
  • 1,037
  • 10
  • 21
10
votes
1 answer

how to solve AttributeError: '_Environ' object has no attribute 'has_key'

def _is_dev_mode(): # quick hack to check if the program is running in dev mode. # if 'has_key' in os.environ if os.environ.has_key('SERVER_SOFTWARE') \ or os.environ.has_key('PHP_FCGI_CHILDREN') \ or 'fcgi' in sys.argv…
anbu jeremiah
  • 111
  • 1
  • 2
  • 6
10
votes
4 answers

How does a server handle web service requests from multiple clients

I just completed an Android application that uses web services to connect to a remote database. I was working on localhost. Now, I plan to host my web services on a server. Let's say I have my Android application installed on any number of different…
Parth Doshi
  • 4,200
  • 15
  • 79
  • 129
10
votes
3 answers

Library/service for extracting information for Microsoft Onenote documents

Does there exist a PHP/Ruby library or a web-service that enables programmatic extraction of information from Microsoft Onenote documents? The solution is to be implemented in a web application backend. I am not looking for windows specific…
lorefnon
  • 12,875
  • 6
  • 61
  • 93
10
votes
1 answer

Invoking a Java/AXIS Web Service from .NET: the ‘return null’ issue

I've been seeking for this problem through all google, stackoverflow and more. And I found a lot of related answers to it, but not a real solution. I'm consuming an Axis Service from a .NET Client but the return is always null, no matter what…
Hector Sanchez
  • 2,297
  • 4
  • 26
  • 39
10
votes
1 answer

How to enforce 'sessions' in RESTful web services using RESTlet?

I am new to RESTful web services and RESTlet. WE only have experience building servlet based web applications (Servlet/JSP on JBoss/Apache). Now, we are building a RESTlet based application where the server side API would be used by two types of…
DG.
  • 553
  • 4
  • 13
  • 21
10
votes
1 answer

Cannot serialize member 'XXX' of type System.Nullable`1[System.Decimal]. XmlAttribute/XmlText cannot be used to encode complex types

I'm getting the following error when using a web service: Cannot serialize member 'XXX' of type System.Nullable`1[System.Decimal]. XmlAttribute/XmlText cannot be used to encode complex types. I understand the error and found a solution on this…
Boomerang
  • 782
  • 2
  • 11
  • 20
10
votes
5 answers

the connection with the server was terminated abnormally xmlhttp

I have this asp page test1.asp in the same server (different website) than this webservice. Thing is when i try to run this code sUrl = "http://chat.xxxxx.com/UCWebServices/Chat.asmx/GetChatQueueByAddress?queueAddress=SALESCHAT" result =…
Pepito Fernandez
  • 2,352
  • 6
  • 32
  • 47