Hello!
I am developing a website that will be communicating with a REST-protocol. The owner of the REST service wants a cookie to be sent along with the REST call, perhaps via header.
How is this done in PHP, how can I send a cookie along with a REST-call?
Thankful for all help!
...
I’m trying to add some data to the http header that comes back from a RESTful web service call. Is it possible to use JAX-RS or something else to add data to the response header?
Example of my method:
@GET
@Path("getAssets")
public List<Asset> getAssets(@QueryParam("page") @DefaultValue("1") String page,
@QueryPara...
This is basically what I've got.
var webview = new WebKit.WebView();
content_area.Add(webview);
var request = new NetworkRequest("http://example.com/resources/1");
request.Data.Add("description", "a description");
webview.LoadRequest(request);
I'm assuming request.Data is where I put variables, but it seems to be going through as a GE...
Hey,
I'm looking to make a service which I can use to make calls to a web based rest api. I've spent a couple of days looking through stackoverflow.com, reading books and looking at articles whilst playing about with some code and I can't get anything which I'm happy with.
Basically I want to start a service on app init then I want to...
I am creating a new REST service.
What is the standard for passing parameters to REST services. From different REST implementations in Java, you can configure parameters as part of the path or as request parameters. For example,
Path parameters
http://www.rest.services.com/item/b
Request parameters
http://www.rest.services.com/get?...
We built a web service using the REST Starter Kit. It appears that the elements in an XML post need to be submitted in alphabetical order. What options are there to enable the elements to be any order?
...
I work a lot with 3rd party web services. The first thing I look for is if they provide a WSDL that I can easily add into Visual Studio and start immediately using the auto generated proxy class that VS creates based off the WSDL and obviously I am able to start coding quickely and start using whatever 3rd party API.
So for example Pay...
I'm building a collection of RESTful resources that work like the following: (I'll use "people" as an example):
GET /people/{key}
- returns a person object (JSON)
GET /people?first_name=Bob
- returns a list of person objects who's "first_name" is "Bob" (JSON)
PUT /people/{key}
- expects a person obje...
If you were trying to design a language binding to a restful web api, how would you do it? What would you take into consideration? What resources would you consult first? Would you try to mock the web api interlace 1:1 or would you try to use your language idioms instead? How would you prevent making excessive HTTP requests? Etc
I've be...
Possible Duplicates:
SOAP or REST
Why do we need RESTful Web Services?
Hi folks,
lately, the REST web services is mentioned a lot. What is the reason for using it over other methods? Are they used in WCF & how do we implement one?
TIA
...
Hi!
Me and some buddy of mine are trying to get started with WCF Data Services, so let me first describe what we have done so far:
We have created a fairly simple WCF Data Service with a data source that implements the IUpdatable interface and exposes some data through some public IQueryable<> attributes (the code is attached at the b...
We have RESTfull web-application. And we need to make the following test:
create 1000 students
view 1000 students
delete 1000 sudents
create 1000 students
view 1000 students
We can view object through the following URL: /students/#id#
And for do this we should to known IDs of created objects.
We create students via CSV-files and expect...
I am going to 4th and final year in my university. During this year all of the students must complete FYP (final year project). I am just at the beginning of the research for it and i am pretty much stuck.
For past few days i was reading up on SOAP vs REST debate and I cant decide which protocol to use. Both of them would work for my p...
I have a REST service modelling items and containers. Items are single atomic entities, containers are entities that contain items. How would I model this relationship in a RESTful way?
For example, here is a request for an item:
http://server/items/1
=> {"name": "Item 1"}
Assume the item is in a container:
http://server/containers/...
I have a shop application and another site thats for a special promotion. I've used Active Resource to import products from the shop in to the promo site and added a shopping cart to add the products. However, to actually order the products I need to send the items to the shop application, creating a new cart there to finish the order.
...
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;
private String city;
}
This will get rendered into:
<person>
<first...
I am having a really strange problem implementing Java REST service. I am trying receive the following model:
@Data @EqualsAndHashCode(callSuper=false, of={"primaryKey"})
@Entity @Table(name = "T_UNIQUE_IDENT_TYPE")
@Cache(usage=CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@XmlRootElement(name="UniqueIdentifierType") @XmlAccessorType...
How can i pass / character in a rest request ?
for example i have products with code like this CAB1/8TO1/8-25
and my rest url is like this "items/{code}"
Is there any way of handling this with a GET request?
Thanks
...
Hello!
I started a new job in a company that loves using the word, "enterprise." As such, everything they've written is in Java. I come from a very web-development heavy background, mainly working with LAMP stacks.
Now, up until three days ago I knew nothing about Java other than people used it and that it is a programming language. ...
I'm trying configure a "system wide" custom javax.xml.bind.annotation.adapters.XmlAdapter for the java.util.Locale type in Jersey. It's easy enough to use @XmlJavaTypeAdapter on classes I control but that's not always the case (3rd party code that I can't annotate).
It seems like it would be a pretty common problem but I can't find any...