The final goal of designing a navigation is to generate a class that takes care of communicating with the host. The HFLI supports
generating classes (in C# and VB.NET) and web services (in C# and VB.NET) that are ready to be published without adding a
single line of code.
If you are using C# project then the generated code will be in C# and if you are using VB project then the generated code
will be in VB.
To generate a web service, choose web service from the drop-down menu under the toolbar button Class/Web Service.
At the first save of a navigation in the current project, a new file xxxx.cs (or xxxx.vb or xxxx.asmx) will be created and
added to the project.
When generating a web service, the .asmx file is ready to be copied in a WEB virtual folder that is configured to host ASP
.NET files. Since the generated asmx file references both the HostFront.EAI and HostFront.Pool assemblies, these 2 assemblies
have also to be copied in the subfolder Bin of the virtual folder.
Note
When you generate a web service you need to specify parameters for the connection for this service which might be different
from those used at design time. To do this:
|
• |
Click on the Connection Parameters button on the toolbar and enter the parameters you need for the production environment, save and recompile.
|
|
• |
Or, in the xxxx.asmx file, create a ConnectionProperties class, set its parameters and pass it to the constructor of the HostLink
class.
|