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
4 answers

Get current news for a location

Is it possible in an iOS application to get current news for a particular location ? Is there some api available where I can pass location as parameter and get news for that location ?
Nitish
  • 13,845
  • 28
  • 135
  • 263
11
votes
4 answers

Prestashop Web service to return JSON

After extensive search over internet i am sure that Prestashop does not return data in JSON format, it only returns in XML format (which leads to cross domain accessing issue unfortunately). Now, I am trying to convert XML(returned by Prestashop) to…
Saba Sarwat
  • 111
  • 1
  • 1
  • 3
11
votes
9 answers

What is the fastest way to stand up a REST service using Java?

I have a few utility methods that I wrote in Java, for test data creation against a service. A couple of my colleagues who have the same use case thought it would be cool if they could re-use it, but they are writing their tests in Perl and Python…
hyperlink
  • 147
  • 1
  • 1
  • 8
11
votes
1 answer

Google Freebase API How To Get URL Of Image?

So, I am trying to figure out how to get URL to an image in Freebase database. I want an image of San Francisco. This is how I get the San Francisco topic: https://www.googleapis.com/freebase/v1sandbox/topic/%2Fen%2Fsan_francisco?key=MY_API_KEY The…
Richard Knop
  • 81,041
  • 149
  • 392
  • 552
11
votes
8 answers

ADBException: Unexpected subelement

I created a web service using: Apache Axis 2 CodeGen Wizard v.1.6.2 (Binding: ADB) Eclipse Juno Tomcat 7 Java 6 The Service returns a Custom Java Object (DataBean) back to the client, but I stumbled upon an exception in the client…
Mandeep Singh
  • 239
  • 3
  • 4
  • 9
11
votes
1 answer

Using Query String in REST Web Services

I thought one main characteristic and reason for using REST web services was to use path parameters rather than query parameters. But many publicly available REST web services use query parameters. Am I wrong in thinking that query parameters are…
user2295633
11
votes
3 answers

Cannot find Axis 1.4 for Download

I was hoping to download Apache Axis from this location http://www.apache.org/dyn/closer.cgi/ws/axis/1_4 but it turns out that all the mirrors listed there show me Not Found The requested URL /mirror/ws/axis/1_4 was not found on this server. Is…
Abbas Gadhia
  • 14,532
  • 10
  • 61
  • 73
11
votes
1 answer

Reuse existing classes from another Service Reference

The situation that I'm working with is suboptimal, so bear with me.. We are to consume external (non .NET) SOAP-webservices. For some reason, each method is implemented in a separate web service with it's own WSDL. A lot of the objects returned by…
David
  • 3,736
  • 8
  • 33
  • 52
11
votes
2 answers

WCF service, response in SOAP or plain XML, how?

I am struggling few hours with this and can't find a solution to the communication problem. My service need to communicate with clients via SOAP or plain XML My service will be written based on WCF framework, however my clients not. Could you show…
Wodzu
  • 6,932
  • 10
  • 65
  • 105
11
votes
3 answers

HTTP Status 415 - Unsupported Media Type

I am working on Java restful web service. While testing the restful service I am getting the responses correct for GET and DELETE methods but it is not working for POST and PUT methods. Can anyone help me? I have written the following…
Manohar Bomma
  • 311
  • 1
  • 3
  • 17
11
votes
2 answers

Combining two results of datasets into one

I have created a webservice which returns two datasets(return type) as results. Is it possible to combine two datasets results into one so that I can display it on one datalist? I try using arraylist but it returns nothing in…
FredHomme
  • 153
  • 3
  • 3
  • 10
11
votes
3 answers

Spring WS - step by step in STS (from WSDL)

I am trying to create a new Spring webservice project in Spring Tool Suite (STS). I checked this link http://static.springsource.org/spring-ws/site/reference/html/tutorial.html But this doesn't tell the steps very clearly. Can anyone please share…
user1732653
  • 627
  • 3
  • 8
  • 18
11
votes
2 answers

Howto setup JAX-WS client to use ISO-8859-1 instead of UTF-8?

I would like to configure my JAX-WS client to send messages in ISO-8859-1. Currently UTF-8 is used. Here is what the client tries to do: Map reqContext = ((BindingProvider) service).getRequestContext(); Map httpHeaders = new…
Aleš
  • 8,896
  • 8
  • 62
  • 107
11
votes
2 answers

Creating a SOAPMessage from String XML of Entire SOAP Message

Hoh can I create a SOAPMessage from a String representation of an entire SOAP message? The reason I'm trying to do this is that I have a SOAP handler for a web service where I capture the SOAP message. I need to preserve the entire SOAP message in…
user994165
  • 9,146
  • 30
  • 98
  • 165
11
votes
1 answer

WebService can't handle request with SOAP Body not having a namespace prefix

My web service is not able to process my client's requests when client is calling the web service without passing prefix in the SOAP Body as follows:
user1642997
  • 111
  • 1
  • 1
  • 4