Asshhjqwwiuiui
Enviado por fibarra • 5 de Abril de 2015 • 661 Palabras (3 Páginas) • 186 Visitas
In order to intercept all B1WS requests IIS must have a virtual directory pointing to B1WS http handler.
For IIS 6.0:
How to add a virtual directory into IIS:
1. Open IIS (Control panel -> Administrative Tools -> Internet Information Services).
2. Right click under Default Web Site (under local computer, Web Sites) and select New -> Virtual Directory
3. A wizard will open with 3 steps:
3.1. Alias: enter B1WS
3.2. Directory: point to the directory under B1WS installation called B1WS (The one that contains App_Code directory with B1WSHandler.cs file inside it).
3.3. Access Permissions: select Read and Run scripts
Note: You need IIS installed and running in the server machine in order to be able to use B1WS.
For IIS 7.0 or higher version:
1. Open IIS (Control panel -> Administrative Tools -> Internet Information Services).
2. Right click under Default Web Site (under local computer, Web Sites) and select New -> Application
3. A wizard will open with 3 steps:
3.1. Alias: enter /B1WS
3.2. Physical Path: point to the directory under B1WS installation called B1WS (which contains App_Code directory with B1WSHandler.cs file inside).
4. Select Application Pools under local computer, right click DefaultAppPool, select Advanced Settings,
set the option of Enable 32 bit Application as true.
Register ASP.NET into IIS
In order to debug your application together with the B1WSHttpHandler you need to:
Register ASP.NET into IIS.
For IIS 6.0:
Run “aspnet_regiis /i” command from the Windows/Microsoft.NET/Framework/v2…” directory.
Note: You need .NET Framework version 2 to be able to register ASP.NET into IIS.
For IIS 7.0 or higher version:
Run “aspnet_regiis /i” command from the Windows/Microsoft.NET/Framework/v4…” directory.
Note: You need .NET Framework version 4 to be able to register ASP.NET into IIS.
How to develop using B1WS in a .NET environment
In order to use B1WS you have to add a web reference for each DI Server Service you need to use. All wsdl files will be located inside the Web References directory under your B1WS installation directory. Once the reference added you will be able to access to all services provided by B1WS from you code and to manage them as simple commands with input and output parameters.
You can also have all B1WS web services automatically listed in .NET environment by opening the Add Web Reference window and then:
• Selecting “Web services on the local machine”, if your development environment is located in the same machine as the B1WS Http Handler
or
• Typing the name of the machine in the URL text box.
Ex: http://serverName/B1WS/
...