HttpClientrequestForUpdate Method A Sandcastle Documented Class Library
Make an API request and parse the JSON response, using the response to update the state of an existing object.

Namespace: Ontotext.S4.client
Assembly: S4ClientLibrary (in S4ClientLibrary.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public void requestForUpdate(
	string target,
	string method,
	Object responseObject,
	ServiceRequest requestBody,
	WebHeaderCollection extraHeaders
)

Parameters

target
Type: SystemString
the URL to request (relative URLs will resolve against the {@link #getBaseUrl() base URL}).
method
Type: SystemString
the request method (GET, POST, DELETE, etc.)
responseObject
Type: SystemObject
the C# object to update from a successful response message for this URL
requestBody
Type: Ontotext.S4.serviceServiceRequest
the object that should be serialized to JSON as the request body. If
null
no request body is sent
extraHeaders
Type: System.NetWebHeaderCollection
any additional HTTP headers, specified as an alternating sequence of header names and values
See Also

Reference