Expose a Data Provider as Web Service

Official Content
This documentation is valid for:

In order to facilitate the interchange of information between systems, the most common practice nowadays is the use of Web Services.

For that reason, if you have a Data Provider object which returns any information, in GeneXus you can easily enable it to be published as a Web Service.

The only thing you have to do is change the Data Provider object property Expose as Web Service to True.

Ppty DP Expose as WS

Note when you choose the value True for Expose as Web Service property, the SDT Exposed namespace property is automatically enabled with the name of the KB, you can change it if you want.

The WSDL of a web service generated by GeneXus can be inspected, depending on the language with it has been generated, as follow.

Ruby
If the web application is here:
http://localhost:10080/MyWebAppRubyEnvironment/

The wsdl of a web service called MyWebService, is obtained from:
http://localhost:10080/MyWebAppRubyEnvironment/gxruby/MyWebService?wsdl

.Net
If the web application is here:
http://localhost/MyWebApp.NetEnvironment/

The wsdl of a web service called MyWebService, is obtained from:
http://localhost/MyWebApp.NetEnvironment/mywebservice.aspx?wsdl

Java
If the web application is here:
http://localhost:8080/MyWebAppJavaEnvironment/

The wsdl of a web service called MyWebService, is obtained from:
http://localhost:8080/MyWebAppJavaEnvironment/servlet/mywebservice?wsdl





Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.