I've created a web service for my company's website, and it is working fine, in a live environment.
I am trying to incorporate that same web service into a new Win Forms project, and I am able to add the web reference to the project fine, and browse through all the web methods and see that it's all there using the object viewer, but when I try and run one of the methods in the web service I get an error, "SOAP header Action was not understood."
Specifically, I am trying to fill a DataTable by using a method on the web service which return a DataTable. It works fine on the website. After adding the web reference and making sure it's all there, I tried using the same code as I am using for the website:
DataTable dt = new nisWebService.Quote().GetLifeQuote("10000", "CA", 33, true, 0, false, 50000, true, 50, true);
this throws the following exception:SOAP header Action was not understood.
One thing that I did notice, was that in the website, instead of using nisWebService.Quote, it uses nisWebService.QuoteClient. I'm not sure where the "Client" part comes in, maybe it's something visual studio express web edition adds on its own?
As I mentioned, the website is built with Visual studio 2008 express web edition, and the win forms application is being built with visual studio 2008 express c# edition.
Thanks for any help or direction you can provide, this has got me pulling out hair :)
Edit: I was also curious as to why the webservice automatically created method parameters like "IsSoandsoSpecified."
Kevin Humfreville