Still get the error below is my data class and the output from fireBug package TOdata;
public class person implements java.io.Serializable { private String FirstName; private String LastName; private String Longatude; private String Latitude; private Integer ID; private String Description; public person() { } public void setFirstName(String firstName) { this.FirstName = firstName; } public String getFirstName() { return this.FirstName; } public String getLastName() { return this.LastName; } public void setLastName(String lastName) { this.LastName = lastName; } public String getLongatude() { return this.Longatude; } public void setLongatude(String longatude) { this.Longatude = longatude; } public String getLatitude() { return this.Latitude; } public void setLatitude(String latitude) { this.Latitude = latitude; } public Integer getID() { return this.ID; } public void setID(Integer id) { this.ID = id; } public String getDescription() { return this.Description; } public void setDescription(String description) { this.Description = description; } } JSON id 2 method "Service.setPersonInfo" params [Object { FirstName="joey", LastName="Johnson", Description="all the desc", more...}] 0 Object { FirstName="joey", LastName="Johnson", Description="all the desc", more...} Description "all the desc" FirstName "joey" ID 0 LastName "Johnson" Latitude "234" Longatude "567" Source {"id": 2, "method": "Service.setPersonInfo", "params": [{"FirstName": "joey", "LastName": "Johnson", "Description": "all the desc", "Latitude": "234", "Longatude": "567", "ID": 0}]} Willis C. White III Software Engineer, CIO Lab IBM Certified IT Specialist Code Warrior Home office 845-331-5134, Cell 845-853-3827 "This quote was intentionally left blank " EM:whiw...@us.ibm.com NM:Willis White/Poughkeepsie/IBM From: Luciano Resende <luckbr1...@gmail.com> To: user@tuscany.apache.org Date: 10/18/2011 06:50 PM Subject: Re: can HelloWorldJSONRPC be modified to send objects? On Tue, Oct 18, 2011 at 12:09 PM, Willis C White <whiw...@us.ibm.com> wrote: > > I still have the problem. Fix one thing > > these two line where wrong > > info.Firstname = document.getElementById("Firstname").value; > info.Lastname = document.getElementById("Lastname").value; > > should be FirstName and LastName (not Firstname and Lastname) > > are the constructors I have in my earlier post, wrong? Yes, see [1]... default no arg constructor and getters and setters for all the properties [1] http://en.wikipedia.org/wiki/JavaBean -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
<<image/gif>>
<<image/gif>>