Click here to Skip to main content
15,916,378 members
Home / Discussions / C#
   

C#

 
GeneralRe: Read and write to a file! Pin
Heath Stewart14-Oct-04 7:15
protectorHeath Stewart14-Oct-04 7:15 
GeneralRe: Read and write to a file! Pin
ee9903514-Oct-04 7:36
ee9903514-Oct-04 7:36 
GeneralRe: Read and write to a file! Pin
ee9903515-Oct-04 1:51
ee9903515-Oct-04 1:51 
GeneralRe: Read and write to a file! Pin
Heath Stewart15-Oct-04 6:21
protectorHeath Stewart15-Oct-04 6:21 
GeneralRe: Read and write to a file! Pin
leppie14-Oct-04 8:49
leppie14-Oct-04 8:49 
GeneralRe: Read and write to a file! Pin
Heath Stewart14-Oct-04 8:58
protectorHeath Stewart14-Oct-04 8:58 
GeneralRe: Read and write to a file! Pin
ee9903515-Oct-04 1:59
ee9903515-Oct-04 1:59 
GeneralInvoking Secure Web Services Pin
David Salter14-Oct-04 3:53
David Salter14-Oct-04 3:53 
I'm trying to invoke a Web Service that has been secured with Basic authentication. (Its a Java webservice running on JBoss).

When I try to access the web service I get a HTTP 505 error implying that the HTTP Version is incorrect, but I doubt it is.

Can anyone who has accessed secure webservices have a look at the following client C# code and tell me if it looks OK. I need to establish if its my client (C#) code thats wrong, or the server (Java) code. Is this the correct way to authenticate against a web service that uses BASIC authentication?

Thanks.
proxy.AdministrationWS admin = new proxy.AdministrationWS();
NetworkCredential creds = new NetworkCredential("username", "password");
admin.PreAuthenticate=true;
admin.Credentials = creds;
			
try
{
	String name = admin.DoStuff();
	MessageBox.Show(name);
}
catch (Exception ex)
{
	MessageBox.Show(ex.Message);
}

GeneralRe: Invoking Secure Web Services Pin
Heath Stewart14-Oct-04 10:13
protectorHeath Stewart14-Oct-04 10:13 
Generalpropertygrid Pin
AlanJones14-Oct-04 3:43
AlanJones14-Oct-04 3:43 
GeneralSystem.OutOfMemory exception: error creating window handle Pin
Serge Lobko-Lobanovsky14-Oct-04 3:33
Serge Lobko-Lobanovsky14-Oct-04 3:33 
GeneralRe: System.OutOfMemory exception: error creating window handle Pin
Heath Stewart14-Oct-04 9:55
protectorHeath Stewart14-Oct-04 9:55 
GeneralRe: System.OutOfMemory exception: error creating window handle Pin
Serge Lobko-Lobanovsky14-Oct-04 21:56
Serge Lobko-Lobanovsky14-Oct-04 21:56 
GeneralRe: System.OutOfMemory exception: error creating window handle Pin
Serge Lobko-Lobanovsky26-Oct-04 6:14
Serge Lobko-Lobanovsky26-Oct-04 6:14 
GeneralRe: System.OutOfMemory exception: error creating window handle Pin
ave\kevinchen3-May-09 23:27
ave\kevinchen3-May-09 23:27 
GeneralFilling a closed contour in a given bitmap Pin
E6AD14-Oct-04 2:52
E6AD14-Oct-04 2:52 
GeneralRe: Filling a closed contour in a given bitmap Pin
Gary Thom14-Oct-04 3:16
Gary Thom14-Oct-04 3:16 
GeneralAutomatic printing to pdf Pin
sverre.andersen14-Oct-04 0:54
sverre.andersen14-Oct-04 0:54 
GeneralRe: Automatic printing to pdf Pin
Gary Thom14-Oct-04 3:17
Gary Thom14-Oct-04 3:17 
GeneralRe: Automatic printing to pdf Pin
Heath Stewart14-Oct-04 7:11
protectorHeath Stewart14-Oct-04 7:11 
GeneralRe: Automatic printing to pdf Pin
Gary Thom14-Oct-04 7:40
Gary Thom14-Oct-04 7:40 
GeneralRe: Automatic printing to pdf Pin
Heath Stewart14-Oct-04 12:18
protectorHeath Stewart14-Oct-04 12:18 
GeneralRe: Automatic printing to pdf Pin
Gary Thom15-Oct-04 8:21
Gary Thom15-Oct-04 8:21 
GeneralRe: Automatic printing to pdf Pin
Heath Stewart15-Oct-04 9:03
protectorHeath Stewart15-Oct-04 9:03 
GeneralRe: Automatic printing to pdf Pin
Heath Stewart14-Oct-04 7:00
protectorHeath Stewart14-Oct-04 7: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.