Click here to Skip to main content
15,891,905 members
Home / Discussions / C#
   

C#

 
GeneralRe: File I/O Problem Pin
Heath Stewart9-Mar-04 13:28
protectorHeath Stewart9-Mar-04 13:28 
GeneralRe: File I/O Problem Pin
Steven Campbell9-Mar-04 14:58
Steven Campbell9-Mar-04 14:58 
General.NET Grid Controls Pin
Giles9-Mar-04 12:08
Giles9-Mar-04 12:08 
GeneralRe: .NET Grid Controls Pin
Anonymous9-Mar-04 12:17
Anonymous9-Mar-04 12:17 
GeneralRe: .NET Grid Controls Pin
John Fisher9-Mar-04 12:32
John Fisher9-Mar-04 12:32 
GeneralRe: .NET Grid Controls Pin
Heath Stewart9-Mar-04 13:27
protectorHeath Stewart9-Mar-04 13:27 
GeneralRe: .NET Grid Controls Pin
Holger Persch9-Mar-04 19:45
Holger Persch9-Mar-04 19:45 
GeneralPassing a xml document to and from a web service... Pin
Manster9-Mar-04 9:55
Manster9-Mar-04 9:55 
Hi,
I'm trying to create a C# web service that takes a string (a file path) and returns the xml document. I'm having some trouble with this task so any help would be much appreciated. If you know of any examples that do this, please share them. My web service function looks like this:

[WebMethod(Description = "Returns the xml file.")]
public XmlDocument GetXmlFile( string sXmlFilePath )
{
if( sXmlFilePath != "" || sXmlFilePath != null )
{

m_XmlDocument.Load( sXmlFilePath );

m_XmlDocument.Save( @"C:\Documents and Settings\dsterling\Desktop\Golfers311.xml" );
}

return m_XmlDocument;
}

m_XmlDocument is a global variable. Below is the code in my web service consumer app.

private void button1_Click(object sender, System.EventArgs e)
{
XmlNode xNode = TWS.GetXmlFile( @"C:\Documents and Settings\bob\Desktop\Golfers.xml" );

xDoc.Load( @"C:\Documents and Settings\bob\Desktop\Golfers.xml" );

xDoc.Save( @"C:\Documents and Settings\bob\Desktop\Doug.xml" );

System.Diagnostics.Process.Start( "notepad.exe", @"C:\Documents and Settings\bob\Desktop\Doug.xml" );
}

Thanks for your help!
GeneralRe: Passing a xml document to and from a web service... Pin
Heath Stewart9-Mar-04 13:26
protectorHeath Stewart9-Mar-04 13:26 
QuestionCan I make this sloppy array better? Pin
MKlucher9-Mar-04 9:44
MKlucher9-Mar-04 9:44 
AnswerRe: Can I make this sloppy array better? Pin
Tom Larsen9-Mar-04 9:56
Tom Larsen9-Mar-04 9:56 
AnswerRe: Can I make this sloppy array better? Pin
LongRange.Shooter9-Mar-04 10:10
LongRange.Shooter9-Mar-04 10:10 
AnswerRe: Can I make this sloppy array better? Pin
MKlucher9-Mar-04 10:17
MKlucher9-Mar-04 10:17 
GeneralRe: Can I make this sloppy array better? Pin
LongRange.Shooter10-Mar-04 4:56
LongRange.Shooter10-Mar-04 4:56 
GeneralSecuitry restrictions with Runtime.remoting Pin
hammackj9-Mar-04 9:19
hammackj9-Mar-04 9:19 
GeneralRe: Secuitry restrictions with Runtime.remoting Pin
Tom Larsen9-Mar-04 10:04
Tom Larsen9-Mar-04 10:04 
GeneralRe: Secuitry restrictions with Runtime.remoting Pin
hammackj9-Mar-04 11:22
hammackj9-Mar-04 11:22 
GeneralRe: Secuitry restrictions with Runtime.remoting Pin
LongRange.Shooter9-Mar-04 10:15
LongRange.Shooter9-Mar-04 10:15 
GeneralRe: Secuitry restrictions with Runtime.remoting Pin
hammackj9-Mar-04 11:23
hammackj9-Mar-04 11:23 
GeneralRe: Secuitry restrictions with Runtime.remoting Pin
mav.northwind9-Mar-04 20:06
mav.northwind9-Mar-04 20:06 
GeneralRe: Secuitry restrictions with Runtime.remoting Pin
LongRange.Shooter10-Mar-04 3:11
LongRange.Shooter10-Mar-04 3:11 
GeneralTab Control - Disabling a TabPage Pin
Ruchi Gupta9-Mar-04 9:04
Ruchi Gupta9-Mar-04 9:04 
GeneralRe: Tab Control - Disabling a TabPage Pin
Heath Stewart9-Mar-04 13:14
protectorHeath Stewart9-Mar-04 13:14 
QuestionHow to convert html file to doc or rtf format Pin
Inam9-Mar-04 7:11
Inam9-Mar-04 7:11 
AnswerRe: How to convert html file to doc or rtf format Pin
Heath Stewart9-Mar-04 8:47
protectorHeath Stewart9-Mar-04 8:47 

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.