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

C#

 
GeneralRe: multimedia files Pin
Mazdak10-Mar-04 3:13
Mazdak10-Mar-04 3:13 
GeneralRe: multimedia files Pin
Heath Stewart10-Mar-04 6:14
protectorHeath Stewart10-Mar-04 6:14 
GeneralRe: multimedia files Pin
Mazdak10-Mar-04 6:22
Mazdak10-Mar-04 6:22 
GeneralRe: multimedia files Pin
Heath Stewart10-Mar-04 6:24
protectorHeath Stewart10-Mar-04 6:24 
GeneralRe: multimedia files Pin
Heath Stewart10-Mar-04 6:22
protectorHeath Stewart10-Mar-04 6:22 
GeneralCreating new worksheet dynamically Pin
Member 6705319-Mar-04 20:05
Member 6705319-Mar-04 20:05 
GeneralAsyncronous callback to only a specific client. Pin
Blue_Aqua9-Mar-04 19:36
Blue_Aqua9-Mar-04 19:36 
GeneralRe: Asyncronous callback to only a specific client. Pin
Corinna John9-Mar-04 20:43
Corinna John9-Mar-04 20:43 
GeneralRe: Lots of free tutorials on C sharp Pin
Christian Graus14-Mar-04 14:58
protectorChristian Graus14-Mar-04 14:58 
Generalfuntion look-ahead Pin
sleeping child9-Mar-04 16:53
sleeping child9-Mar-04 16:53 
GeneralRe: funtion look-ahead Pin
LongRange.Shooter10-Mar-04 4:36
LongRange.Shooter10-Mar-04 4:36 
GeneralLocalization Pin
The Bug9-Mar-04 14:18
The Bug9-Mar-04 14:18 
GeneralRe: Localization Pin
The Bug9-Mar-04 17:15
The Bug9-Mar-04 17:15 
GeneralRe: Localization Pin
Mazdak10-Mar-04 3:17
Mazdak10-Mar-04 3:17 
GeneralRe: Localization Pin
Heath Stewart10-Mar-04 6:09
protectorHeath Stewart10-Mar-04 6:09 
GeneralFile I/O Problem Pin
scrname9-Mar-04 13:23
scrname9-Mar-04 13:23 
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 

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.