Custom Search

Tuesday, August 12, 2008

WAS Hosting with TCP Binding

Hello Everybody,
Today, i'm trying my hands on hosting services on WAS(Windows Activation Services) using TCP binding.

Environment
i am using:

>
Windows Server 2008 [you can use Vista]
>
IIS 7.0
>
Visual Studio 2008

Let's start with very first step, load environment with some ammunition to make services run under WAS.

1. Run window > "inetmgr" [Open IIS 7.0]
2. Under localhost
2.1 Sites> Default Web Site.
2.2 Right Click on 'Default Web Site', Select Edit Binding.
2.3 Click on 'Add' button, Select Type = 'net.tcp' & Binding Information = 808:*

{{{

There is an alternative way to update Bindings on 'Default Web Site' under IIS. i.e.,
Open Adminstrator command prompt & Run following command to add:

a.
%windir%\system32\inetsrv\appcmd.exe set site "Default Web Site" -+bindings.[protocol='net.tcp',bindingInformation='808:*']

b.
%windir%\system32\inetsrv\appcmd.exe set app "Default Web Site/servicemodelsamples" /enabledProtocols:http,net.tcp

You can remove using following command:

a.
%windir%\system32\inetsrv\appcmd.exe set app "Default Web Site/servicemodelsamples" /enabledProtocols:http

b.
%windir%\system32\inetsrv\appcmd.exe set site "Default Web Site" --bindings.[protocol='net.tcp',bindingInformation='808:*']

}}}

[Back to hosting sequence]
2.4 Make sure that [windows] user, who is gonna use service has got enough permission
to access it. Right Click on 'Default Web Site' >> Click on 'Edit Permissions...' >> Select
'Security' tab >> choose appropriate user & set[Edit] his/her permission.

Now, host your service on WAS....

3.
Right Click on 'Default Web Site' >> Click on 'Add Application...' >> Write proper name for
'Alias' field [typically it should be the name of service] >> give proper 'Physical path:' of
service.
3.1 Before pressing 'OK' button, Test the setting by 'Test Settings..' button. It will show you the
'Authorization' & 'Authentication' test result. If anything fails, it must be because of not
enough permission to current user. In that case, try to connect with different user using
'Connect as..' option in 'Add Application window'.

This process will create one new virtual folder under 'Sites' >>'Default Web Site' & that will be the Alias name you provided before.
now,
4. Right click on that newly created folder, & set the permission using 'Edit Permission' if in case
required.
5. Right Click on same newly created folder & select 'Manage Application' >> 'Advance Settings..'
Set Enable Protocol value = net.tcp,http [you can add more endpoint using comma (,)]

You are done with hosting service on WAS with TCP binding!!!










Comments: Post a Comment

Subscribe to Post Comments [Atom]





<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]

Watch the latest videos on YouTube.com