Click here to Skip to main content
15,891,855 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionpayment processing using my page Pin
Jassim Rahma20-Nov-10 0:19
Jassim Rahma20-Nov-10 0:19 
AnswerRe: payment processing using my page Pin
Manfred Rudolf Bihy20-Nov-10 3:00
professionalManfred Rudolf Bihy20-Nov-10 3:00 
Questionlimit the width of <body> Pin
Jassim Rahma20-Nov-10 0:08
Jassim Rahma20-Nov-10 0:08 
AnswerRe: limit the width of Pin
thatraja20-Nov-10 0:58
professionalthatraja20-Nov-10 0:58 
QuestionGUID in MySQL Pin
Jassim Rahma19-Nov-10 23:35
Jassim Rahma19-Nov-10 23:35 
AnswerCrosspost Pin
thatraja20-Nov-10 1:15
professionalthatraja20-Nov-10 1:15 
QuestionASP.NET host with MySQL Pin
Jassim Rahma19-Nov-10 23:08
Jassim Rahma19-Nov-10 23:08 
QuestionWeb Service from a WCF Service using HttpPost Pin
indian14319-Nov-10 10:34
indian14319-Nov-10 10:34 
Hi All,

I have a requirement to call some exteral Web Service by using Http Post method from my WCF Service. I didnt use the Http Post method to call a Web Service. Can anybody help me by suggesting some ideas or code or links also fine. I have some xml string in this web service which I need to pass to the Web Service.

Pease help me in this. Thanks in advance.

When I use the following code it is giving me the exception "the remote server returned an error 500 internal server error." It is giving this exception at
" WebResponse response = request.GetResponse();", so please help me in this issue.

private string SubmitCreateNewHireWorkflowStatus(string strStatusXml, string servicePath)
        {
            WebRequest request = HttpWebRequest.Create("https://staging.xxxx.com/pa/vendorCheckXXXXXXXXXXXXX.do");
            request.Method = "POST";
            request.ContentLength = strStatusXml.Length;
            request.ContentType = "application/x-www-form-urlencoded";

            Stream str = request.GetRequestStream();
            System.Text.UTF8Encoding encoding = new System.Text.UTF8Encoding();
            byte[] byteStatusXml = encoding.GetBytes(strStatusXml);

            string result = "";

            str.Write(byteStatusXml, 0, strStatusXml.Length);
            str.Flush();
            try
            {
                WebResponse response = request.GetResponse();
                StreamReader reader = new StreamReader(response.GetResponseStream());
                result = reader.ReadToEnd();
            }
            catch (Exception exception)
            {
                string strException = exception.Message;
            }

            return (result == null) ? "" : result;
}

Thanks & Regards,

Md. Abdul Aleem
NIIT technologies
modified on Friday, November 19, 2010 6:47 PM

AnswerRe: Web Service from a WCF Service using HttpPost Pin
GlobX24-Nov-10 14:26
GlobX24-Nov-10 14:26 
QuestionFix my read file permission error now! [modified] Pin
musefan19-Nov-10 0:22
musefan19-Nov-10 0:22 
AnswerRe: Fix my read file permission error now! Pin
Chris Maunder19-Nov-10 0:42
cofounderChris Maunder19-Nov-10 0:42 
GeneralRe: Fix my read file permission error now! [modified] Pin
musefan19-Nov-10 0:51
musefan19-Nov-10 0:51 
AnswerAnswer Pin
musefan21-Nov-10 23:50
musefan21-Nov-10 23:50 
QuestionHow to end a request if there are no records to display Pin
meeram39518-Nov-10 16:55
meeram39518-Nov-10 16:55 
AnswerRe: How to end a request if there are no records to display Pin
Not Active18-Nov-10 17:12
mentorNot Active18-Nov-10 17:12 
AnswerRe: How to end a request if there are no records to display Pin
surender.m18-Nov-10 23:23
surender.m18-Nov-10 23:23 
QuestionExtract data for a form using web performance test tool visual studio Pin
jboyd11118-Nov-10 12:10
jboyd11118-Nov-10 12:10 
Questioncheckboxlist validator Pin
Dhyanga18-Nov-10 5:51
Dhyanga18-Nov-10 5:51 
AnswerRe: checkboxlist validator Pin
Not Active18-Nov-10 6:44
mentorNot Active18-Nov-10 6:44 
GeneralRe: checkboxlist validator Pin
Dhyanga18-Nov-10 6:47
Dhyanga18-Nov-10 6:47 
GeneralRe: checkboxlist validator Pin
Dhyanga18-Nov-10 8:33
Dhyanga18-Nov-10 8:33 
GeneralRe: checkboxlist validator Pin
Not Active18-Nov-10 14:29
mentorNot Active18-Nov-10 14:29 
QuestionCall Javascript function when gridview loads Pin
Satish_S18-Nov-10 1:06
Satish_S18-Nov-10 1:06 
AnswerRe: Call Javascript function when gridview loads Pin
NeverHeardOfMe18-Nov-10 2:54
NeverHeardOfMe18-Nov-10 2:54 
QuestionAjax Controls(Collapsable panel) Not working on .Netframework 3.5 Pin
Raveendra.jonna17-Nov-10 23:13
Raveendra.jonna17-Nov-10 23:13 

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.