This chapter will guide you through the securing your Web Service using PortSight Secure Access and WS-Security. Security credentials transmitted with the SOAP message are in the form of a user name and/or password - for more information about UsernameToken please refer to the Microsoft WSE 1.0 Documentation at http://msdn.microsoft..com.
![]() |
Sample Source Code | |
---|---|---|
The source code for this sample is placed in the Examples\SampleSecuredWebService_Client and Examples\SampleSecuredWebService_WebService folders in the PortSight Secure Access installation folder. |
Sample of the Web Service and client secured using Secure Access and Microsoft WSE 1.0:
?SPAN style="FONT: 7pt 'Times New Roman'"> Microsoft.Web.Services.dll (Microsoft WSE 1.0 SP1)
?SPAN style="FONT: 7pt 'Times New Roman'"> ARCatalogs.dll (PortSight SecureAccess library)
?SPAN style="FONT: 7pt 'Times New Roman'"> ARObjects.dll (PortSight SecureAccess library)
|
Note: You can find the GetConnection method in the sample code. It only returns ARConnection object with an opened connection.
|
|
What you did:
You created a function that adds two numbers. It IsMemberAll method to check that the user is member of the Calculator.Mathematician group. If not, it throws an application exception. Please notice the following methods:
|