I am try to save a node with service3.0, but it didn't worked,
I am using restful style, is there any example to save a node using service3?
public Object nodeSave(MultivaluedMap<String, String> queryParams) {
Client client = Client.create();
WebResource webResource = client
.resource("http://localhost/drupal/rest/node/create?XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=13033148613441");
Cookie cookie = getCookie();
ClientResponse response = webResource.accept("application/json").cookie(cookie).put(ClientResponse.class, queryParams);
int status = response.getStatus();
String textEntity = response.getEntity(String.class);
System.out.println(textEntity);
if (Response.Status.OK.getStatusCode() == status) {
textEntity = response.getEntity(String.class);
System.out.println(textEntity);
}
return null;
}