Click here to Skip to main content
15,910,121 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: String And UTF Encoding Pin
Paddy Boyd17-Dec-07 23:33
Paddy Boyd17-Dec-07 23:33 
GeneralRe: String And UTF Encoding Pin
Deepak the Cool17-Dec-07 23:39
Deepak the Cool17-Dec-07 23:39 
GeneralMaximum no.of functions in a web service Pin
rp_suman17-Dec-07 20:21
rp_suman17-Dec-07 20:21 
GeneralRe: Maximum no.of functions in a web service Pin
Michael Sync17-Dec-07 21:15
Michael Sync17-Dec-07 21:15 
GeneralRe: Maximum no.of functions in a web service Pin
rp_suman17-Dec-07 21:29
rp_suman17-Dec-07 21:29 
GeneralRe: Maximum no.of functions in a web service Pin
Pankaj Chamria18-Dec-07 0:47
Pankaj Chamria18-Dec-07 0:47 
GeneralRe: Maximum no.of functions in a web service Pin
rp_suman18-Dec-07 13:47
rp_suman18-Dec-07 13:47 
QuestionSystem.Net.WebException: The remote server returned an error: (500) Internal Server Error Pin
AjayKrSh17-Dec-07 20:21
AjayKrSh17-Dec-07 20:21 
Hi all,
i am getting following error

System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at System.Net.HttpWebRequest.CheckFinalStatus()
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.HttpWebRequest.GetResponse()
at UseWebApplication.WebForm1.btnSendSoap_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\UseWebApplication\WebForm1.aspx.vb:line 63

while passing soap request in web service like



<soap:envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:body>
<receivexmlfromcytric xmlns="http://localhost/WpmsDeCtWebSrv/WpmsDeCtWebSrvService.asmx">
<request>
<check1>Check1Data</check1>
<check2>check2Data</check2>
</request>
</receivexmlfromcytric>
</soap:body>
</soap:envelope>

If i pass only text in &lt;Request&gt; tag then it works fine but when i try to pass xml type data in &lt;Request&gt; tag then it shows the error.
Can't i pass xml type of request in soap messages.

I have written following code to access the webservice

Dim strUrl As String = "http://localhost/WpmsDeCtWebSrv/WpmsDeCtWebSrvService.asmx"

Dim req As HttpWebRequest = WebRequest.Create(strUrl)

Try
req.Headers.Add("SOAPAction", "http://localhost/WpmsDeCtWebSrv/WpmsDeCtWebSrvService.asmx/ReceiveXmlFromCytric")
Dim content As String = txtHttp.Text
req.ContentType = "text/xml; charset=utf-8"
req.Method = "POST"

Dim s As System.IO.Stream = req.GetRequestStream()
Dim sw As New System.IO.StreamWriter(s)
sw.Write(content)
sw.Close()

Dim res As HttpWebResponse = req.GetResponse()
s = res.GetResponseStream()
Dim sr As New System.IO.StreamReader(s)
Dim strresult As String = sr.ReadToEnd()
sr.Close()
txtResponse.Text = strresult

Catch ex As Exception
txtResponse.Text = ex.ToString
End Try




Please help to provide the solution.

Thanks
GeneralRe: System.Net.WebException: The remote server returned an error: (500) Internal Server Error Pin
Piyush Vardhan Singh17-Dec-07 21:49
Piyush Vardhan Singh17-Dec-07 21:49 
QuestionRe: System.Net.WebException: The remote server returned an error: (500) Internal Server Error Pin
AjayKrSh18-Dec-07 0:06
AjayKrSh18-Dec-07 0:06 
Generalduring installation of desktop application, how to check that one of the perticular file/application have installed or not.. Pin
Pradeep Kumar Srivastava17-Dec-07 20:12
Pradeep Kumar Srivastava17-Dec-07 20:12 
GeneralRe: during installation of desktop application, how to check that one of the perticular file/application have installed or not.. Pin
Michael Sync17-Dec-07 21:47
Michael Sync17-Dec-07 21:47 
GeneralRe: during installation of desktop application, how to check that one of the perticular file/application have installed or not.. Pin
Pradeep Kumar Srivastava18-Dec-07 1:07
Pradeep Kumar Srivastava18-Dec-07 1:07 
GeneralRe: during installation of desktop application, how to check that one of the perticular file/application have installed or not.. Pin
Michael Sync18-Dec-07 1:52
Michael Sync18-Dec-07 1:52 
GeneralRe: during installation of desktop application, how to check that one of the perticular file/application have installed or not.. Pin
Pradeep Kumar Srivastava18-Dec-07 2:50
Pradeep Kumar Srivastava18-Dec-07 2:50 
GeneralPassing databound value(DataBider.Eval) to a javascript function Pin
.NET- India 17-Dec-07 20:07
.NET- India 17-Dec-07 20:07 
GeneralRe: Passing databound value(DataBider.Eval) to a javascript function Pin
.NET- India 17-Dec-07 22:04
.NET- India 17-Dec-07 22:04 
Questionhow i can focus to the textbox after i seleceted a date from ajx calender control Pin
jagan12317-Dec-07 20:01
jagan12317-Dec-07 20:01 
AnswerRe: how i can focus to the textbox after i seleceted a date from ajx calender control Pin
Christian Graus17-Dec-07 23:04
protectorChristian Graus17-Dec-07 23:04 
GeneralRegarding Flash Pin
Member 464849117-Dec-07 19:40
Member 464849117-Dec-07 19:40 
GeneralRe: Regarding Flash Pin
Christian Graus17-Dec-07 19:50
protectorChristian Graus17-Dec-07 19:50 
GeneralRe: Regarding Flash Pin
Paul Conrad23-Dec-07 8:09
professionalPaul Conrad23-Dec-07 8:09 
QuestionHow To Add A Search Box In A Web Page? Pin
hirennn17-Dec-07 19:28
hirennn17-Dec-07 19:28 
GeneralRe: How To Add A Search Box In A Web Page? Pin
Abhijit Jana17-Dec-07 19:39
professionalAbhijit Jana17-Dec-07 19:39 
General[Message Deleted] Pin
hirennn17-Dec-07 20:06
hirennn17-Dec-07 20:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.