Interrogation d'un Service REST JSON avec POSTIER/Client Rest

J'ai un simple RESTLET Service qui retourne une représentation JSON, comme indiqué ci-dessous:

@Override
    @Post("json")
public Representation helloWorld() {
    Representation representation = new JacksonRepresentation<Hello>(new Hello("Hello World"));
    representation.setMediaType(MediaType.APPLICATION_JSON);
    representation.
    return representation;
}

Quand j'ai une requête, ce à l'aide de cURL-je obtenir la réponse attendue:

{"greeting":"Hello World"}

Cependant, je n'obtenez pas de réponse lorsque j'utilise le navigateur ou le FACTEUR, ou tout autre web client REST. J'obtiens la réponse "ne Pourrait pas obtenir la moindre réponse" de FACTEUR.

L'aperçu du FACTEUR de demande est:

POST /testingrestlet/hello HTTP/1.1
Host: 127.0.0.1:6000
Content-Type: application/json
Cache-Control: no-cache
Postman-Token: 5141cd87-505c-e813-0045-3b7f4aa54144

J'aurais au moins pu s'attendre à un client REST comme FACTEUR de travailler, ou ai-je raté quelque chose?

Toute aide appréciée.

Ce qui concerne

InformationsquelleAutor user3521637 | 2015-04-13