Bug in HttpWebRequest behaviour in Windows Store apps (WinRT) ? RRS feed

  • Frage

  • I am trying to use a SOAP Service like this :

    HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(url);
    webRequest.ContentType = "text/xml;charset=\"utf-8\"";
    webRequest.Accept ="text/xml";
    webRequest.Method = "POST";
    webRequest.Credentials = CredentialCache.DefaultCredentials;
    webRequest.Headers["SOAPACTION"] = action;

    Problem is that this is not working and when looking at what is being sent, I notice that the "POST" method is not sent. When I comment out the line which sets the SOAPACTION, I can see that the "POST" method is sent. 

    My question: is it a known issue ? Am I doing something wrong ?

    Freitag, 8. Februar 2013 21:03

Alle Antworten