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. Windows Forms
  4. Error coming from a web service call from a windows application client

Error coming from a web service call from a windows application client

Scheduled Pinned Locked Moved Windows Forms
2 Posts 2 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.
  • N Offline
    N Offline
    NazarHussain
    wrote on last edited by
    #1

    AoA Thanks in advance for help. Please help me if any one have some info about it. I have made a solution with three projects a web services project , a client windows application project and a class library project. I made a class in class library. this class library is added as reference in the client and web services project. Now from client application, when i call some web methods of the web service they work fine. I have a web method with an object type attribute. that method just cast it to string using ToString() and return that string. Now i made an object of a class in class library. When i call that web method and pass this object. An InvalidOperationException generated, with error message There was an error generating the XML document. I can not solve this, i search it on web but no solution found. I can not know how to upload the code here. Please help me if any one can. Will wait for reply.

    J 1 Reply Last reply
    0
    • N NazarHussain

      AoA Thanks in advance for help. Please help me if any one have some info about it. I have made a solution with three projects a web services project , a client windows application project and a class library project. I made a class in class library. this class library is added as reference in the client and web services project. Now from client application, when i call some web methods of the web service they work fine. I have a web method with an object type attribute. that method just cast it to string using ToString() and return that string. Now i made an object of a class in class library. When i call that web method and pass this object. An InvalidOperationException generated, with error message There was an error generating the XML document. I can not solve this, i search it on web but no solution found. I can not know how to upload the code here. Please help me if any one can. Will wait for reply.

      J Offline
      J Offline
      Jabbar_espania
      wrote on last edited by
      #2

      Well I think You can see right side your project where you can see all class there will be webreference you must to update everytime you make new funcion to execute . The error you said should be not adding correctly the reference of your webservice to your applicacion. If you can execute your program in webservie in xml you will see the result with invoke button . If you write details or send me your application wish could solve your problem .. regards jabbar

      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