Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: Regarding exposing webservice

$
0
0

You have this question posted in the Visual COBOL forum of the community site although it appears to be related to Net Express.

Are you using Net Express to create the service or Visual COBOL SOA?

When you create a web service and host it under Enterprise Server a .WSDL file will automatically be created for the web service.

For example, I created a new service in a Net Express project which resides in the C:\testservice folder.

By default, the WSDL file will be generated in the following location given that I have named the actual web service "nxwebservice".

    C:\testservice\testservice\REPOS\nxwebservice.deploy\nxwebservice.WSDL

This WSDL file can be used as input to programs written in other languages which are capable of calling Web Services via SOAP. It contains all of the information for the location of the web service and the parameters that are required.

One example is to call this service from within a .NET application, you can add a web reference to the project which points to this .WSDL file. This will automatically generate the class and methods for you that will allow you to instantiate the service and call its methods.

This can be done from a COBOL client, a C# client, VB client etc.

When you are generating a client in Net Express then this is meant to be used within COBOL only. You can modify the generated client so that it is callable from another COBOL program that will supply the required parameters instead of using the console input method used by the generated source.

Thanks.


Viewing all articles
Browse latest Browse all 4356

Trending Articles



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