Consuming SOAP Web Service (.cgi) Using .NET Client
-
I am trying to connect to a Web Service that uses SOAP (written with the SOAP::Lite perl module) on my Linux/Apache web server. I can call it successfully from perl locally, but I am trying to figure out how to get a .NET client written in C# to work with it. SOAP::Lite comes with an example C# class to demonstrate, but it is using Type.GetTypeFromProgID("SOAP.Lite") which fails. Any suggestions, websites, etc? Thanks. -Matt ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall
-
I am trying to connect to a Web Service that uses SOAP (written with the SOAP::Lite perl module) on my Linux/Apache web server. I can call it successfully from perl locally, but I am trying to figure out how to get a .NET client written in C# to work with it. SOAP::Lite comes with an example C# class to demonstrate, but it is using Type.GetTypeFromProgID("SOAP.Lite") which fails. Any suggestions, websites, etc? Thanks. -Matt ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall
If you have a wsdl defined you should be able to use the same procedure as described here. http://www.drbob42.com/examines/examin46.htm[^] It actually applies to a Delphi service but I have used exactly the same process to get ones written in C from a UNIX server. Basically just use the WSDL.exe application (command line) with the address of the wsdl url and it creates the .cs file to then copy into your app.