-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Association Issue When Consuming Webservice #73
Comments
Mike, You may have sorted this out already based on our email discussion, but if Hope that helps!
|
Eric - thanks for the response. Based on our email discussion, I was able Thanks again, Mike On Sat, Mar 5, 2016 at 3:38 AM, tieniber [email protected] wrote:
|
Hi @mkumpf, Your assumption about the name Note that the complete serialization mechanism can be found here: https://github.com/mendix/RestServices/blob/master/javasource/restservices/util/JsonDeserializer.java |
I have been struggling with consuming a particular webservice for some time now and have not been able to get it working. The webservice is from Hubspot. The returned JSON is as follows:
{
"contacts":[
{"addedAt":1454958537989,
"vid":1,
"canonical-vid":1,
"merged-vids":[],
"portal-id":2016447,
"is-contact":true,
"profile-token":"AO_T-mOPfmNESRoTf5_p1Q546HYy-3wmBbNdfVTZT9t3838HtAHNLQy4YR91m2oO4BypNJ2s5Mou75sLW_LiS8jtm01gaS2HiVBbV_9TvK3G-HRRGx07k7wUinGlgCX_ybwFuquBGf8Y","profile-url":"https://app.hubspot.com/contacts/2016447/lists/public/contact/_AO_T-mOPfmNESRoTf5_p1Q546HYy-3wmBbNdfVTZT9t3838HtAHNLQy4YR91m2oO4BypNJ2s5Mou75sLW_LiS8jtm01gaS2HiVBbV_9TvK3G-HRRGx07k7wUinGlgCX_ybwFuquBGf8Y/",
"properties":{
"firstname":{"value":"Brian"},
"lastmodifieddate":{"value":"1454959883325"},
"company":{"value":"Customer One"},
"lastname":{"value":"Humphrey"}},
"form-submissions":[],
"identity-profiles":[
{"vid":1,
"saved-at-timestamp":1454958536954,
"deleted-changed-timestamp":0,
"identities":[
{"type":"EMAIL",
"value":"[email protected]",
"timestamp":1454958536939},
{"type":"LEAD_GUID",
"value":"2abdbb41-8d96-4dfd-9060-7576ce71fff7",
"timestamp":1454958536945}]
}],
"merge-audits":[]}
],
"has-more":false,
"vid-offset":1}
I have modeled this in the domain model in the following way:
However, after having tried several different ways, I have not been successful at getting identity-profiles to deserialize into the Mendix domain model. I am likely doing something wrong....any pointers would be appreciated.
I have tried:
The text was updated successfully, but these errors were encountered: