Skip to content

Instantly share code, notes, and snippets.

@idlecool
Created July 29, 2011 17:15
Show Gist options
  • Save idlecool/1114244 to your computer and use it in GitHub Desktop.
Save idlecool/1114244 to your computer and use it in GitHub Desktop.
{
"status": "success",
"statuscode": "200",
"message": "Validation error",
"tree": {
"$_cr_shelter": [
{
"$k_shelter_type_id": {
"$_cr_shelter_type": [
{
"name": "SHELTER TYPE",
"$": "\n "
}
],
"@resource": "cr_shelter_type",
"$": "\n "
},
"capacity": {
"@value": "6884",
"$": "6884"
},
"name": {
"@value": "SAMPLE DATA",
"$": "SAMPLE DATA"
},
"source": {
"@value": "N EWS PAPER",
"$": "N EWS PAPER"
},
"$k_person_id": {
"$_pr_person": [
{
"name": "ROBERT GOLDBERG",
"$": "\n "
}
],
"@resource": "pr_person",
"$": "\n "
},
"comments": {
"@value": "FEW COMMENTS WILL BE HERE",
"$": "FEW COMMENTS WILL BE HERE"
},
"$": "\n ",
"phone": {
"@value": "98765432 10",
"$": "98765432 10"
},
"$_inv_inv_item": [
{
"expiry_date": {
"@value": "2011-1-1",
"$": "2011-1-1"
},
"$": "\n ",
"quantity": {
"@value": "0",
"$": "0"
}
}
],
"population": {
"@value": "5408",
"$": "5408"
},
"@error": "Validation error",
"shelter_service_id": {
"@error": "shelter_service_id: invalid value!",
"@value": "OKAY TO SERVICE",
"$": "OKAY TO SERVICE"
},
"$k_organisation_id": {
"@resource": "org_organisation",
"$_org_organisation": [
{
"name": "ABC ORGANISATION",
"$": "\n "
}
],
"$": "\n "
},
"$k_location_id": {
"$_gis_location": [
{
"name": "FRANCE",
"$": "\n "
}
],
"@resource": "gis_location",
"$": "\n "
}
},
{
"$k_shelter_type_id": {
"$_cr_shelter_type": [
{
"name": "SHELTER TYPE",
"$": "\n "
}
],
"@resource": "cr_shelter_type",
"$": "\n "
},
"capacity": {
"@value": "6884",
"$": "6884"
},
"name": {
"@value": "SAMPLE DATA",
"$": "SAMPLE DATA"
},
"source": {
"@value": "N EWS PAPER",
"$": "N EWS PAPER"
},
"$k_person_id": {
"$_pr_person": [
{
"name": "ROBERT GOLDBERG",
"$": "\n "
}
],
"@resource": "pr_person",
"$": "\n "
},
"comments": {
"@value": "FEW COMMENTS WILL BE HERE",
"$": "FEW COMMENTS WILL BE HERE"
},
"$": "\n ",
"phone": {
"@value": "98765432 10",
"$": "98765432 10"
},
"$_inv_inv_item": [
{
"expiry_date": {
"@value": "2011-1-1",
"$": "2011-1-1"
},
"$": "\n ",
"quantity": {
"@value": "0",
"$": "0"
}
}
],
"population": {
"@value": "5408",
"$": "5408"
},
"@error": "Validation error",
"shelter_service_id": {
"@error": "shelter_service_id: invalid value!",
"@value": "OKAY TO SERVICE",
"$": "OKAY TO SERVICE"
},
"$k_organisation_id": {
"@resource": "org_organisation",
"$_org_organisation": [
{
"name": "ABC ORGANISATION",
"$": "\n "
}
],
"$": "\n "
},
"$k_location_id": {
"$_gis_location": [
{
"name": "FRANCE",
"$": "\n "
}
],
"@resource": "gis_location",
"$": "\n "
}
}
]
}
}
<s3xml>
<resource name="cr_shelter">
<data field="name">SAMPLE DATA</data>
<reference field="organisation_id" resource="org_organisation">
<resource name="org_organisation">
<data field="name">ABC ORGANISATION</data>
</resource>
</reference>
<reference field="shelter_type_id" resource="cr_shelter_type">
<resource name="cr_shelter_type">
<data field="name">SHELTER TYPE</data>
</resource>
</reference>
<data field="shelter_service_id">OKAY TO SERVICE</data>
<reference field="location_id" resource="gis_location">
<resource name="gis_location">
<data field="name">FRANCE</data>
</resource>
</reference>
<data field="phone">98765432 10</data>
<reference field="person_id" resource="pr_person">
<resource name="pr_person">
<data field="name">ROBERT GOLDBERG</data>
</resource>
</reference>
<data field="capacity" value="6884">6884</data>
<data field="population" value="5408">5408</data>
<data field="source">N EWS PAPER</data>
<data field="comments">FEW COMMENTS WILL BE HERE</data>
<resource name="hrm_human_resource"/>
<resource name="pr_presence"/>
<resource name="doc_image"/>
<resource name="req_req"/>
<resource name="inv_send"/>
<resource name="req_commit"/>
<resource name="inv_inv_item">
<data field="quantity" value="0">0</data>
<data field="expiry_date" value="2011-1-1">2011-1-1</data>
</resource>
<resource name="doc_document"/>
<resource name="inv_recv"/>
</resource>
</s3xml>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment