I am trying to consume a c# web service in a c++ windows service application. I first wrote a c++ VCL forms app and consumed the web service using WSDL importer. This worked perfectly and gave me access to all the web methods. Then I wrote the c++ service application and again used WSDL importer to import the web service. The c++ service compiles and I can install the service, but as soon as I use any of the web methods the service hangs.
I cannot find any information online regarding service applications and web services - is it even possible to import a web service to a windows service application? Can anyone explain if this is possible and how to do it?