Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-2196

passing Java bean using a JSON binding

    XMLWordPrintableJSON

Details

    Description

      The service is exposed over JSON binding and will return a java bean as a response but as per my knowledge the bean is not properly converted to json object as shown in the smd below:

      {"SMDVersion":".1","objectName":"EmployeeBOService","serviceType":"JSON-RPC","serviceURL":"http://localhost:8080/employee-det/EmployeeJSONService","methods":[{"name":"fetchEmployeeData","parameters":[

      {"name":"param0","type":"STRING"}

      ]}]}

      Response:
      [object Object]

      Console output is:
      Apr 4, 2008 11:23:07 AM com.metaparadigm.jsonrpc.BeanSerializer analyzeBean
      INFO: analyzing com.infosys.poc.employeedata.EmployeeData

      Attachments

        1. employee-det.war
          9.60 MB
          Ashwini Kumar J

        Activity

          People

            rfeng Zhaohui Feng
            ashwinjk Ashwini Kumar J
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified