try
{
using (var stream = await client.OpenWriteTaskAsync(url,method))
{
new XmlSerializer(sometype).Serialize(someobject,stream);
}
// at this point the request has been sent - how to get at the response data?
}
catch (WebException wex)
{
// handle exception
}