Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. about web services

about web services

Scheduled Pinned Locked Moved .NET (Core and Framework)
wcfxmlhelptutorialquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dSolariuM
    wrote on last edited by
    #1

    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.

    P P B 3 Replies Last reply
    0
    • D dSolariuM

      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.

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • D dSolariuM

        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.

        P Offline
        P Offline
        pmarfleet
        wrote on last edited by
        #3

        Why would you want to do either of these things? They both sound like terrible ideas.

        Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

        1 Reply Last reply
        0
        • D dSolariuM

          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.

          B Offline
          B Offline
          bwilhite
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups