about web services
-
Hi all, I have two questions to ask: 1.I am writing a web service that gets some information and ... And I want to save this information to an XML file ... In other words I want to Create,Edit,Delete and save an XML file over the internet and I thought by using a web service I can handle that... But XmlWriter doesn't support URI format...please help me... 2.How to use an Object (like datagridview) in a thread? I mean cross-thread operations...I tried to use CheckForIllegalCrossThreadCalls=false but as MSDN says it is unsafe and also it dosn't run well... Please help with any of issues... thanks...
Every new thing you learn,Gives you a new personality.
-
Hi all, I have two questions to ask: 1.I am writing a web service that gets some information and ... And I want to save this information to an XML file ... In other words I want to Create,Edit,Delete and save an XML file over the internet and I thought by using a web service I can handle that... But XmlWriter doesn't support URI format...please help me... 2.How to use an Object (like datagridview) in a thread? I mean cross-thread operations...I tried to use CheckForIllegalCrossThreadCalls=false but as MSDN says it is unsafe and also it dosn't run well... Please help with any of issues... thanks...
Every new thing you learn,Gives you a new personality.
I see points made, is there a specific question in there?
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
-
Hi all, I have two questions to ask: 1.I am writing a web service that gets some information and ... And I want to save this information to an XML file ... In other words I want to Create,Edit,Delete and save an XML file over the internet and I thought by using a web service I can handle that... But XmlWriter doesn't support URI format...please help me... 2.How to use an Object (like datagridview) in a thread? I mean cross-thread operations...I tried to use CheckForIllegalCrossThreadCalls=false but as MSDN says it is unsafe and also it dosn't run well... Please help with any of issues... thanks...
Every new thing you learn,Gives you a new personality.
-
Hi all, I have two questions to ask: 1.I am writing a web service that gets some information and ... And I want to save this information to an XML file ... In other words I want to Create,Edit,Delete and save an XML file over the internet and I thought by using a web service I can handle that... But XmlWriter doesn't support URI format...please help me... 2.How to use an Object (like datagridview) in a thread? I mean cross-thread operations...I tried to use CheckForIllegalCrossThreadCalls=false but as MSDN says it is unsafe and also it dosn't run well... Please help with any of issues... thanks...
Every new thing you learn,Gives you a new personality.
As for #2... Have you tried using a SynchronizationContext object to marshal the call to the correct thread? In the UI thread set your myContext = SynchronizationContext.Current; Then when you need to make that cross-thread call you do myContext.Post(); Inside the Post you have to give it a callback method (I can't remember the name...I let intellisense remember for me :P ), along with an object which is sent to the callback method in the callback method is where you actually change your UI object... This works nicely for me. The other two options are the one you tried, and using an AsyncOperationManager object, I like this one though.