wink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Meyer, Stefan" <>
Subject Problems consuming JSON request with an Aseet
Date Thu, 26 Jul 2012 13:26:56 GMT
Hi together,

My current problem is that my asset is not able to consume "application/json" requests.
Other content-types are working (e.g. application/xml, text/plain etc.)

When consuming a http-request with content-type json my code does not jump in the method
AssetCreator-> createAsset()

If I change the content-type to any other than json, everythings works fine
Any idea what I am doing wrong?

Below my two classes:

public class VFSResource {
      * Creates an Asset
       * @return
      public AssetCreator createAsset(AssetCreator assetCreator) {
            return assetCreator;

My Asset:
public class AssetCreator {

      private Doctype doctype;

      public AssetCreator() {

      public void createAsset(Doctype doctype) {
            this.doctype = doctype;

      public Doctype getDocType() {
            return new Doctype();


IDS Scheer Consulting GmbH
Gesch?ftsf?hrer/Managing Directors: Michael Rehm, Ivo Totev
Sitz/Registered office: Altenkesseler Stra?e 17, 66115 Saarbr?cken, Germany - Registergericht/Commercial
register: Saarbr?cken HRB 19681

View raw message