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

Yahoo! Finance API DOW

Until now, I've been using the INDU ticker to follow the DOW with the Yahoo! API. For whatever reason you were unable to directly follow ^dji ^djia or any other reasonable combination. Up until yesterday, INDU was working fine. However now I receive…
Peter Kazazes
  • 3,600
  • 7
  • 31
  • 60
10
votes
5 answers

How to find the distance between two ZipCodes using Java Code?

My requirements are similar to this question, except the fact that I am prohibited to use the latitude and longitude values. I want to caluclate the "walking" distance between two zipcodes. Later I would also require to query "who is within X kms…
Amit
  • 13,134
  • 17
  • 77
  • 148
10
votes
2 answers

WCF BodyStyle WrappedRequest doesn't work for incoming JSON param?

I've been working on getting a RESTful WCF service to both accept a JSON as a parameter and return some JSON. This is my service: [OperationContract] [WebInvoke( Method="POST", BodyStyle =…
adamwtiko
  • 2,865
  • 8
  • 39
  • 47
10
votes
2 answers

JAX-WS always sends MTOM attachments inline

Basically I want to create a web services client to send a mtom soap message via the proxy method. I have created my service artifacts fine from the web service wsdl. The message is created correctly, however when I enable mtom and add an…
AlexS
  • 650
  • 6
  • 12
10
votes
2 answers

How to create base64Binary data?

What is base64Binary and how can I create base64Binary from a given byte array in Java?
siva636
  • 16,109
  • 23
  • 97
  • 135
10
votes
4 answers

REST (json) web service discovery protocol

Is there any json-only standard to handle resource discovery (ie. collections of editable entries) ? I mean some "protocol" to use in a self-describing REST service, eventually with hypermedia discovery (read, links and paging) What about some Atom…
gpilotino
  • 13,055
  • 9
  • 48
  • 61
10
votes
3 answers

JAX-WS Consuming web service with WS-Security and WS-Addressing

I'm trying to develop a standalone Java web service client with JAX-WS (Metro) that uses WS-Security with Username Token Authentication (Password digest, nonces and timestamp) and timestamp verification along with WS-Addressing over SSL. The WSDL I…
Jared Knipp
  • 5,880
  • 7
  • 44
  • 52
10
votes
2 answers

REST and SOAP webservice in android

I found tutorial to use kSOAP api to use SOAP webservice. Can anyone provide me sample programs (tutorial) on getting REST webservice and SOAP webservice in android. I have googled lot but didn't find such type of tutorial.
user831722
10
votes
2 answers

"Standardized" way of handling the lifecycle of a Java EE application

When developing an Java EE Application, I often came across the 'problem' to do stuff when the application is started, stopped etc. Now for Weblogic for example, there is a mechanism for that (the application life-cycle listener). But if you want to…
DXTR66
  • 563
  • 5
  • 17
10
votes
1 answer

Why do ASP.NET JSON web services return the result in 'd'?

I wrote some ASP.NET web services that use JSON encoding, a la: [WebInvoke()] [OperationContract] public int SetInformation(int recordid, string data) { return 42; } and the returned JSON is: {"d": 42} Why is the parameter named d? Can I…
Scott Stafford
  • 43,764
  • 28
  • 129
  • 177
10
votes
3 answers

Invoke RESTful webservice with parameter

I have a simple RESTful web service that print "Hello World !" I'm using NetBeans and the code looks like: package resource; import javax.ws.rs.core.Context; import javax.ws.rs.core.UriInfo; import javax.ws.rs.Consumes; import…
M.M
  • 1,343
  • 7
  • 20
  • 49
10
votes
3 answers

Best Practice for Storing and Updating External API Passwords

I have a ASP.Net C# application that needs to connect to an external API using WebServices every 5 minutes. The requirements of the External Webservice are as follows: Username and Password are required I must transmit the username and password…
Jon
  • 2,129
  • 7
  • 23
  • 31
10
votes
3 answers

Writing C# client to consume a Java web service that returns array of objects

I am writing a C# client that calls a web service written in Java (by another person). I have added a web reference to my client and I'm able to call methods in the web service ok. The service was changed to return an array of objects, and the…
David Chappelle
  • 1,243
  • 5
  • 13
  • 29
10
votes
2 answers

SharePoint List.getListItems WebService to return sub folder contents, recursively

I am calling the lists.asmx webservice from CXF. The following soap call does not return files from list sub folders. It returns folder1,folder2 and file1.pdf Shared Documents folder1 file2.docx file3.pdf folder2 sub-folder1 …
so_mv
  • 3,939
  • 5
  • 29
  • 40
10
votes
4 answers

What are WCF Proxies and what are they good for?

I have recently been educating myself about WCF and I have even written some production services using WCF. But I have never really looked too much into WCF until recently. I am aware of the idea of the "proxy" design pattern. I am also aware of the…
TheJediCowboy
  • 8,924
  • 28
  • 136
  • 208