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