What I have is a set of Java classes (close to 25) representing message types. They all inherit from a Message class which I'd like to be abstract. Each message type adds a few additional fields to the set provided by the Message superclass.
I'm implementing some RESTful web services using RESTeasy and would like to have methods like ...
Hi, I am writing a Java Rest Web Service and need the caller's IP Address. It thought I saw this in the cookie once, but know don't see it. Is there a consistent place to get this information? I saw one example of using an "OperationalContext" to get it, but that was not java.
Thanks
...
I'm building a server that allows clients to store objects. Those objects are fully constructed at client side, complete with object IDs that are permanent for the whole lifetime of the object.
I have defined the API so that clients can create or modify objects using PUT:
PUT /objects/{id} HTTP/1.1
...
{json representation of the obj...
I have a simple WCF Rest Service with one method. The interface is defined as:
[ServiceContract]
public interface IHelloRest
{
[OperationContract]
[WebGet(UriTemplate = "json/hello/{name}", ResponseFormat = WebMessageFormat.Json)]
string Hello(string name);
}
The implementation is defined as:
public string Hello(string na...
Hi all,
I'm trying to think of how to validate that a web service is only accessed by an authorised client software.
Now I don't mean that I only want the web service open to authorised users, I only want my web services open to clients that I deem acceptable.
Lets take a use case. I have a web service that I provide, and software th...
Hello everybody,
I try to implement a facebook comment box to my catalogue controller. Every catalogue entry should have his one facebook comments! The problem is that the fxml doesn't recognize different resources.
www.remme.com/catalogues
www.remme.com/catalogues/2
www.remme.com/catalogues/3
This seems to be the same page for faceb...
Hi folks,
I'm implementing an API using Django. One 1 service should be able to access 1 API url.
I am wondering if there are any popular security practices that go beyond using username/password and SSL?
Is using sequential signature generation a popular practice?
...
Hi,
I am developing my first Seam + Android application and I am facing some new scenarios as expected.
Now specifically for this app, I decided not to keep any state because probably 80% to 90% of the server calls on the REST service will be specifically to do a simple synchronization and the client is gone for a while, so there is(p...
WCF will match this:
http://localhost:8888/test/blahFirst/blahSecond/sdfsdf,wwewe
to this:
[OperationContract]
[WebGet( UriTemplate = "test/{first}/{second}/{val1},{val2}" )]
string GetVal( string first, string second, string val1, string val2 );
Is there a way to make the va11, val2 be a variable length list of parameters? So it co...
I am in the planning phases of building a new ASP.NET website. The website is really a transactional web application where the users will log in and perform basic CRUD data operations. For right now this website will be accessible through a traditional desktop browser and a mobile browser. For the mobile browser we will build a separa...
Can someone explain the reason behind this or how it works? IF I do a WebInvoke on the following, it fails (says method not allowed, but if I do a WebGet, it passes). I just want to understand why?
[OperationContract]
[WebGet(UriTemplate = "login/{username}/{password}", ResponseFormat =
...
I want a persistent job scheduler. If I were to write my own job scheduler, it would probably be a restful service with one method:
POST /path/to/service HTTP/1.1
Host: myservice.com
Content-Type: application/x-www-form-urlencoded
url=someurl&millis=1000
And the service would hit the given url (method GET) after at least 1000 millisec...
I Have a Custom WCF Service Host (webServicehost2) and Factory that is doing some dependency injection (implementing a custom IInstanceProvider) and also some custom authentication (impementing a custom RequestInterceptor).
I Have a very small issue in that when i navigate to a REST resource that does not exsist.
for example
http://loc...
Hi,
I need to authenticate to use a rest web service.
I make a
HttpClient httpclient = new DefaultHttpClient();
an there must be a way to use UsernamePasswordCredentials on that client.
Can somebody please point me to a relevant example?
I have found some source code uding the HttpClient class in the org.apache.commons.SOMETHING...
Looking to develop a web service (api) in PHP to offer customers an easier way to integrate with our platform. There are workflow calls that will be validated with user/pass as well as some reporting options.
Sorry I can't post more details or code on the subject and I have never developed a web service but have had experience in using ...
Hello there, I'm wondering if is there any service on the web that allows you to create a section and then store for that section usernames/password and other information you might like such as first name, last name, email, and other custom informations..
then you would be able to validate this information on an external website via REST...
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 for JSON or XML attributes.
What aspect of service definition best practices is this breaking that makes me think it is a smell ??
...
I am working on the WCF REST Service project. The WCF REST will be set on the IIS. The service is to update the database in SQL server. The updated store procedure will get the login username and look for the id on the user table as a parameter. Therefore, the connection to SQL server must use the client’s username and password; I am no...
WE are designing an iPhone app that will call back to a RESTful service running in Tomcat. We need to send many query parameters and have exceeded the maximum that the phone will allow.
Would it be RESTful to use a PUT call with the parameters in the body, even though the intent in not to modify the server? A POST does not seem correct ...
My current WCF REST Method is defined as:
[OperationContract]
[WebGet(UriTemplate = "{username}/{password}", ResponseFormat =
WebMessageFormat.Json)]
string Login(string username, string password);
An android client app is going to connect to the service, let's...