JAMS Developer Guide
PostAsXmlWithSerializerAsync<T> Method


JAMS.Activities.HDInsight Namespace > HttpExtensions Class : PostAsXmlWithSerializerAsync<T> Method
Sends a post request with XmlMediaTypeFormatter set to use the XML Serializer so the message will be in the format Oozie is expecting.
Syntax
'Declaration
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function PostAsXmlWithSerializerAsync(Of T)( _
   ByVal client As System.Net.Http.HttpClient, _
   ByVal requestUri As System.String, _
   ByVal value As T _
) As System.Threading.Tasks.Task(Of HttpResponseMessage)
'Usage
 
Dim client As System.Net.Http.HttpClient
Dim requestUri As System.String
Dim value As T
Dim value As System.Threading.Tasks.Task(Of HttpResponseMessage)
 
value = HttpExtensions.PostAsXmlWithSerializerAsync(Of T)(client, requestUri, value)
[System.Runtime.CompilerServices.Extension()]
public static System.Threading.Tasks.Task<HttpResponseMessage> PostAsXmlWithSerializerAsync<T>( 
   System.Net.Http.HttpClient client,
   System.string requestUri,
   T value
)

Parameters

client
requestUri
value

Type Parameters

T
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

HttpExtensions Class
HttpExtensions Members