Click here to Skip to main content
15,898,538 members
Home / Discussions / C#
   

C#

 
AnswerRe: DataReader To DataTable [modified] Pin
Luc Pattyn26-May-11 1:41
sitebuilderLuc Pattyn26-May-11 1:41 
AnswerRe: DataReader To DataTable Pin
PIEBALDconsult26-May-11 2:51
mvePIEBALDconsult26-May-11 2:51 
AnswerRe: DataReader To DataTable Pin
Dhyanga26-May-11 4:43
Dhyanga26-May-11 4:43 
GeneralRe: DataReader To DataTable Pin
Luc Pattyn26-May-11 5:31
sitebuilderLuc Pattyn26-May-11 5:31 
GeneralRe: DataReader To DataTable Pin
Dhyanga26-May-11 6:13
Dhyanga26-May-11 6:13 
AnswerRe: DataReader To DataTable Pin
Luc Pattyn26-May-11 6:24
sitebuilderLuc Pattyn26-May-11 6:24 
GeneralRe: DataReader To DataTable Pin
Alexandra - Marie Schembri26-May-11 7:40
Alexandra - Marie Schembri26-May-11 7:40 
QuestionHow to consume XML Web Services with Parameters Pin
samir.abda25-May-11 17:27
samir.abda25-May-11 17:27 
Its my first time to deal with Web Services and I am having errors on consuming Web Methods with parameters. Below is my code.

[WebMethod]
		public string HelloWorld()
		{
			System.Diagnostics.EventLog.WriteEntry("HELLO WORLD INVOKED", "Congratulations, you have just invoked Hello World method of your local Web Service");
			return "Hello World";
		}
		[WebMethod]
		public string PostMethod(string test)
		{
			System.Diagnostics.EventLog.WriteEntry("POST METHOD INVOKED", "Congratulations, you have just invoked Post Method of your local Web Service. Data - " + test.ToUpper());
			return test.ToUpper();
		}

The way I am calling these web methods are by creating a HTTP POST to http://localhost/Service1.asmx/HelloWorld and http://localhost/Service1.asmx/PostMethod

I am able to invoke HelloWorld method successfully(I can verify it by looking at the Event Log) but when calling PostMethod I always get Internal Server Error. I also tried doing http://localhost/Service1.asmx/PostMethod?test=value but still no luck.

I know this can be solved by searching Google but since I am a beginner, I am not familiar on which direction to search. I tried though but no luck.

Appreciate your help. .
AnswerRe: How to consume XML Web Services with Parameters Pin
Mark Salsbery25-May-11 18:50
Mark Salsbery25-May-11 18:50 
GeneralRe: How to consume XML Web Services with Parameters Pin
samir.abda25-May-11 21:16
samir.abda25-May-11 21:16 
GeneralRe: How to consume XML Web Services with Parameters Pin
Mark Salsbery25-May-11 21:27
Mark Salsbery25-May-11 21:27 
GeneralRe: How to consume XML Web Services with Parameters Pin
samir.abda25-May-11 21:51
samir.abda25-May-11 21:51 
QuestionRe: How to consume XML Web Services with Parameters Pin
Mark Salsbery25-May-11 22:03
Mark Salsbery25-May-11 22:03 
AnswerRe: How to consume XML Web Services with Parameters Pin
samir.abda25-May-11 22:19
samir.abda25-May-11 22:19 
GeneralRe: How to consume XML Web Services with Parameters [modified] Pin
Mark Salsbery25-May-11 22:27
Mark Salsbery25-May-11 22:27 
GeneralRe: How to consume XML Web Services with Parameters Pin
samir.abda25-May-11 22:46
samir.abda25-May-11 22:46 
QuestionRe: How to consume XML Web Services with Parameters Pin
Mark Salsbery26-May-11 11:07
Mark Salsbery26-May-11 11:07 
QuestionRe: How to consume XML Web Services with Parameters Pin
samir.abda26-May-11 14:10
samir.abda26-May-11 14:10 
AnswerRe: How to consume XML Web Services with Parameters Pin
Mark Salsbery26-May-11 14:15
Mark Salsbery26-May-11 14:15 
GeneralRe: How to consume XML Web Services with Parameters Pin
walterhevedeich26-May-11 20:17
professionalwalterhevedeich26-May-11 20:17 
QuestionHow can I set LOCALHOST in web config to use web services root address Pin
JUNEYT25-May-11 6:26
JUNEYT25-May-11 6:26 
AnswerRe: How can I set LOCALHOST in web config to use web services root address Pin
Not Active25-May-11 8:02
mentorNot Active25-May-11 8:02 
GeneralRe: How can I set LOCALHOST in web config to use web services root address Pin
JUNEYT25-May-11 8:32
JUNEYT25-May-11 8:32 
GeneralRe: How can I set LOCALHOST in web config to use web services root address Pin
SledgeHammer0125-May-11 8:35
SledgeHammer0125-May-11 8:35 
GeneralRe: How can I set LOCALHOST in web config to use web services root address Pin
JUNEYT25-May-11 9:00
JUNEYT25-May-11 9:00 

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.