Iron Speed Technical Forums
Register Latest Topics
 
 
 


Reply
  Author   Comment  
Asires

Registered:
Posts: 9
Reply with quote  #1 
Hi All,

I want to ask a question. I have added Web Services in ISD application Project. Web service Works perfect but there is a problem which I can't solve in right way. 

My web service using Business logic classes and Business logic classes are using Current UserID for Audith adding and updating process. In web services there isn't login user. So get null exeption.

Now I want to setUser Login info in web services classes but I can't bu successful. Do you have any suggestion?

Code Block

Imports System.ServiceModel
Imports System.ServiceModel.Activation
Imports System.ServiceModel.Web
Imports SCIENTA.Business
 

<ServiceContract(Namespace:="")>
<AspNetCompatibilityRequirements(RequirementsMode:=AspNetCompatibilityRequirementsMode.Allowed)>
Public Class ProCOSTWS
  
    <OperationContract()>
    Public Function AddDataRecord(ByVal ID As Integer, ByVal QuantitiyAs Int32) As Integer
        ' Set up object for the primary key of new record to be inserted.
        Dim createdUretimVerisiID As Integer
        ' Create and obtain a transaction object.
        Dim t As BaseClasses.Data.SqlProvider.SqlTransaction
        t = BaseClasses.Data.SqlProvider.SqlTransaction.GetOrCreateTransaction("Data")
        Try
            BaseClasses.Utils.SecurityControls.SetCurrentUserID("6") ---> it falls down to exeption.
……

End Function
 
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.

Download Iron Speed Designer

Terms of Service Privacy Statement