I have the SOAP request in an XML file. I want to post the request to the web service in .net How to implement?
Here's another example--this one in VB:
Dim manualWebClient As New System.Net.WebClient()
manualWebClient.Headers.Add("Content-Type", "application/soap+xml; charset=utf-8")
' Note: don't put the " & System.Environment.NewLine & _
" " & System.Environment.NewLine & _
" " & System.Environment.NewLine & _
" 5 " & System.Environment.NewLine & _
" 4 " & System.Environment.NewLine & _
" " & System.Environment.NewLine & _
" " & System.Environment.NewLine & _
"")
Dim bytRetData As Byte() = manualWebClient.UploadData("http://localhost/CPTR446.asmx", "POST", bytArguments)
MessageBox.Show(System.Text.Encoding.ASCII.GetString(bytRetData))