Quantcast
Channel: Visual COBOL
Viewing all articles
Browse latest Browse all 5819

Forum Post: RE: Consuming a WCF Service Created in .NET 4.5 in Visual COBOL.

$
0
0
Hi Charan, In a native COBOL project you can consume Web Services by using the IMTK, Client Generation tool if you have a WSDL file for the Web Service. For a WCF Web Service you can obtain the WSDL by adding ?wsdl to the address of the service: Not all wsdls are supported. To use the client generation tool from within the IDE you would select Tools-- Micro Focus COBOL-- Generate Client From WSDL. For managed code there is no problem. If you have a managed code project you can simply right click on the project name and select Add Service Reference and navigate to the service using it's URL if it is not on the development machine or you can use Discover to locate services that are local. This will then generate the required class that can then be instantiated from your client code and you can call the methods on this object. There are a number of examples in the Samples Browser for WCF under the category Windows Communication Foundation in the left hand window. There is also a tutorial in the docs for WCF here: Thanks.

Viewing all articles
Browse latest Browse all 5819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>