Jump to: navigation, search

Changes


UBIK Web Service

1,127 bytes added, 17:42, 3 March 2020
/* Code Example (C#) */
|-
|}
 
==== HTTP (REST) ====
<source lang="html4strict" style="padding-bottom: 0; border-bottom: 0;">
POST <CONTENT-PATH>/UBIKContent.svc/UpdateContentListV212/<APP>/<CTX>/<TOKEN>/<VERSION> HTTP/1.1
Host: <HOSTNAME/IP>:<PORT>
Content-Type: application/json
</source>
<source lang="javascript" style="padding-top: 0; border-top: 0;">
[
{
"__type": "UbikContent:#UBIK.Service.DTO.V260",
"UID": "c02e668b-d400-41df-b7bc-ab3f1f31d250",
"PropertyValues":
[
{
"__type": "TypePropertyValueOfstring:#UBIK.Service",
"MetaPropertyID": "4ec5281a-e0bd-4917-aff5-708352fc6953",
"Value": "TESTVALUE"
},
{
"__type": "TypePropertyValueOfNullableOfint:#UBIK.Service",
"MetaPropertyID": "7c95ec83-a399-4b47-b827-6d87795a7b19",
"Value": 33
}
]
}
]
</source>
Make sure to replace the <code><tags></code> accordingly!
 
The <code>__type</code> property allows the JSON deserializer to find the correct class. [[https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/stand-alone-json-serialization?redirectedfrom=MSDN#polymorphism-1| Microsoft Documentation]].
=== Code Example (C#) ===
</source>
  [[Category:Server|Web Service]]
= Upload Document =
1,579
edits