Is REST a better approach to doing Web Services or is SOAP? Or are they different tools for different problems? Or is it a nuanced issue - that ... |
What's the best way to serialize a HashTable (or a data best navigated through a string indexer) with SOAP/XML?
Let's say I have an Foo that has an property Bar[] Bars. A ... |
I am trying to write a translation layer for a test system for which I am writing software. I am using LabVIEW for the test system and that uses a RESTful ... |
Given a contract such as:
[ServiceContract] public interface IService
{
[OperationContract]
[WebGet(UriTemplate = "GetData/{id}.{format}")]
ResponseData GetData(string id, string format);
}
Is there a way to get ... |
I need some help getting started with this.
I need to know how to call the REST service and parse the xml.
My php script only sends back some xmlcode, nothing else.(no wsdl ... |
Anyone have a sample of code using XmlRepresentation? I am currently using a StringRepresentation, but need it to return XML instead. It's for a RESTful web service.
import org.restlet.resource.XmlRepresentation;
|
I have become quite frustrated of WCF as I just want to use this simple scenario:
- Provide a webservice using REST, with a UriTemplate like
/method/{param1}/{param2}/ and a 3th parameter that is ... |
|
I'm planning an XML web service that takes an XML request and returns an XML response over HTTP. It's not SOAP, and it's not pure REST either - I think ... |
I'm trying to create a RESTful webservice using a Java Servlet. The problem is I have to pass via POST method to a webserver a request. The content of this request ... |
When you use javax.xml.ws.Endpoint.publish to handle incoming restful/soap requests, will it generate a thread for each request? or will I have handle threads myself?
I've been trying to work this out for ... |
I'm creating a general purpose web service that is likely to have a number of different clients, some of which I cannot anticipate at this time.
I already have a nice Java ... |
Here's my problem:
Say I have two entities annotated with JAX-RS annotations:
@XmlRootElement
@Entity
public Person {
private String firstname;
private String lastname;
private Address address;
}
@XmlType
@Entity
public Address {
private String street;
...
|
Hash.to_xml and other such Railsisms may result in element orderings being different in the output of a REST service. XML Elems are order sensitive, so this would not be a problem ... |
Currently using Java's built-in XML DOM libraries for creation/parsing. Ugly, even with lots of helper classes and methods, and performance and memory usage sucks.
What's the best Java tool or framework ... |
In java there are streams for input/output.
I am confused that when i create a stream, is it the data that is in the stream or just the pipeline for the data ... |
I have a web application which is created in Eclipse.
I have another REST web service application created in Netbean IDE.
Usually , the web service should be like ... |
for a REST PUT service, im trying to use xml as the payload. My question is can I have the whole payload as xml? or should I do something like Data=<mydata>......</mydada>?
basically ... |
First, let me start with some background:
I have a web service which accepts XML as input and outputs in XML. The output has 2 different possible schemas (with two more coming). ... |
I'm developing a website for a small used car dealership with a need for VIN decoding. Given as much, I'm looking for maybe 1,000 - 1,500 requests for VINs per year. ... |
I need to expose some services of the web application to remote clients via XML interfaces over http.
A number of provided services is limited (3-7), both request and response should be ... |
I've been searching like one and a half days but I can't find any useful answer...
(anyway, know I definetly know how to write webservices :D)
Here's my situation:
I am triying to setup ... |
I'm using a REST webservice to retrieve some data. As a response I get some long xml or other files. Part of it could look for example like this:
<jfs:jauthRevokeTokenUrl
...
|
I've got simple JavaBeans objects which represents data in my database. I want to transform this to several formats(XML, JSON) to share it to my clients and I also need reverse ... |
In my java app (specifically, Android app), I make a REST call (GET). The response could be either XML or JSON. I use a Strategy Pattern which decides what parser to ... |
I am working on a project where a 3rd party has a .NET environment running that is providing REST style services that send and receive XML over HTTP. My side of ... |
I just got a doubt whether SOAP/REST based web services the XMLs we are using is case sensitive or insensitive? How it works exactly?
Tell me both default soap envelope as well ... |
Originally posted by ankur rathi: What exactly is REST??? Isn't it sending XML over HTTP? Most definitely not. Though it is a common misconception that "XML over HTTP" is REST. REST requires that you organize your design around "resources", each of which has its own URI. Then you use the standard HTTP methods to obtain or manipulate the "state" of those ... |
Based upon replies in previous posts (thanks Peer!), I'm setting up a data model query mechanism through a RESTful API. So, to create a query, giving it a name of let's say "My Magic Query", a PUT request would be made to a URL such as: http://localhost/whatever/whichever/query/My+Magic+Query with the representation of the query as XML in the request body. (Stop me ... |
|
1. The XML document should be written (as text) in the body of the POST request. 2. Not sure what you mean by "safe" - what security problems are you worried about? 3. Since XML documents are text, there appears to be no reason to encode. 4. Just read the request input stream for processing - see getInputStream or getReader Bill ... |