Hi Guys,
I have an iPhone application which has to communicate with a RESTfull WCF service over a secured connection(HTTPS) with a self signed certificate.
The WCF service returns XML which is parsed within the app.
I have signed the certificate with SelfSSL and installed in on a Windows Server 2003 machine(IIS 6.0).
An example of a ...
Hi,
I would like ask for guidance on the proper endpoint configuration for my WCF service to enable a Flash app to consume it.
Thanks,
Keith Rull
...
What is best practise for renaming a resource in a RESTful way?
Let's say my users can maintain named lists of things with the uri
http://example.org/users/{userName}/lists/{listName}
I want to give my users an API to rename a certain list. What is the preferred way?
I came up with the following so far:
POST to to the list resourc...
I am desiging a RESTful Web Service (JBoss + RESTeasy). The UI programmer is writing an Ajax web app that will use it. The web app will be one HTML page with everything done in JavaScript. For security, all traffic goes through SSL.
Currently I'm using Basic authentication. The UI programmer can show a dialog to get a username and p...
I'm writing a small application which exposes a simple REST-ish HTTP API. I'm stuck trying to decide how to signal a failure due to a lack of authorization.
The app does not have an API for authentication, but instead depends upon the presence of a cookie containing a session token obtained by the client via another service. The app v...
I am trying to consume a wcf rest service via reflection if possible. Take a look at the code below:
public static object WCFRestClient<T>(string method, string uri, params object[] args)
{
object o;
object ret;
using (ChannelFactory<T> cf = new ChannelFactory<T>(new WebHttpBinding(), uri))
...
I'm struggling to determine how to design restful URLs. I'm all for the restful approach of using URLs with nouns and not verbs don't understand how to do this.
We are creating a service to implement a financial calculator. The calculator takes a bunch of parameters that we will upload via a CSV file. The use cases would involve:
U...
What's the rule of thumb for passing data in a REST URL in the query string vs. the body of a request?
Ie: You're creating a service to add hockey players. You could go with:
PUT /players
{ "name": Gretzky }
or
PUT /players?name=Gretzky
If you're passing a lot of data, you would need to go with option #1 as there is a limit on t...
Let's say you had a /companies resource that allowed clients to lookup public companies and you wanted clients to be able to lookup companies by Ticker, Location, and Location and industry
Would you keep the same URL in the form:
GET /companies/msft
GET /companies/usa
GET /companies/usa&software
This doesn't seem right. Any ideas?
...
I'm using PandaStream, which sends a REST notification as YAML to our ASP.NET app. The web service I have chokes and returns 500 because it attempts to parse the content as XML. How can I stop this parsing? How do I get the content as just a big string so I can parse it myself?
[WebMethod]
//HOWTO? suppress XML parsing
public void Updat...
Let's say we have a service to add a new hotel:
> POST /hotel
> <hotel>
> <a>aaa</a>
> <b>aaa</b>
> <c>aaa.......this is 300K</c>
> </hotel>
And then we have a get:
> GET /hotel
< HTTP/1.1 200 OK
< <hotel>
< <a>aaa</a>
< <b>aaa</b>
> <c>aaa.......this is 300K</c>
< </hotel>
Question is what do we return for the initial...
Possible Duplicates:
What is REST?
Does the WCF REST WebChannelFactory client support REST services that use redirects?
What am I not understanding about REST?
Possible Duplicates:
What is REST [closed]
What am I not understanding about REST?
What is the REST command in HTTP? I know GET and POST, which used...
So I have a User, Post, and Vote models.
User has_many Vote
Post has_many Vote
In my unit tests I was defining a method called @post.vote_up which creates a vote for a post, but then I started thinking whether or not such an interface would allow for restful methodology.
If I were to call /topic/1/votes with a POST, the VoteControl...
I have been trying to wrap my head around POSTing json to a REST service and JAXB namespaces. I am using Resteasy to mark up the server side method. I have the following service:
@POST
@Mapped(namespaceMap={@XmlNsMap(namespace="http://acme.com", jsonName=""))
@Path("/search")
@Consumes("application/json")
public List<I> search(SearchC...
Given the service:
> GET /hotel
< HTTP/1.1 200 OK
< <hotel>
< <a>aaa</a>
< <b>aaa</b>
> <c>aaa</c>
< </hotel>
Should one reference a DTD in the XML returned from the server?
Would this better allow a client to validate the response?
...
Given this service to get information about a hotel:
> GET /hotel/{id}
< HTTP/1.1 200 OK
< <hotel>
< <a>aaa</a>
< <b>aaa</b>
> <biggie>aaa....I am 300K</biggie >
< </hotel>
Problem is that biggie is 300K and we don't want to return it with every response. What's the RESTful way to lazy load this value?
Should we set up two ...
We are building a REST service that will take about 5 minutes to execute. It will be only called a few times a day by an internal app. Is there an issue using a REST (ie: HTTP) request that takes 5 minutes to complete?
Do we have to worry about timeouts? Should we be starting the request in a separate thread on the server and have ...
I have an application running on facebook now.. and now, I duplicate the exact same thing with mostly the same server config in Rackspace.
HOwever, when I run the app in facebook, I get this:
Exception
Error Code: 1
Message: An unknown error occurred
#0 /home/www/entouragela-dev.sector3gamez.com/site_prod/_library/facebook/facebookapi_...
Hi,
I'm using ASP.NET MVC controllers for providing RESTful web services. That works just fine for simple data types like string and int. Now I need to send some binary data (like images and video) to this web service. My question is - what data types do I have to use as Action parameters and what else should I be aware of?
Thanks!
...
Hi guys. I'm developing php library. So i want to add Rest to my library.
How to write Rest in PHP ? Any idea?
Thank you for every advise?
...