Returns the authentication details associated with the current HTTP request. The authentication details indicate which user account is logged in to the NI Web Server.

注: 关于本主题中其他概念的详细信息,见Web服务介绍教程


icon

输入/输出

  • cNI__WebServices_lvlib_Web_Requestlvclass.png LabVIEW Web Service Request

    LabVIEW Web Service Request is an identifier used by Web Services VIs to reference a specific HTTP request. LabVIEW Web Service Request works similarly to a refnum in LabVIEW, allowing you to wire together Web Services VIs within your application. You must wire Web Services VIs to the LabVIEW Web Service Request control or an existing value from the LabVIEW Web Service Request out terminal of another VI.

    在Web方法VI中使用Web服务VI时,必须将原LabVIEW Web服务请求控件连接至Web方法VI的连线板。

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • iNI__WebServices_lvlib_Web_Requestlvclass.png LabVIEW Web Service Request out

    LabVIEW Web Service Request out is an identifier that VIs on the Web Services palette use to reference a specific HTTP request. Use LabVIEW Web Service Request out to wire together Web Services VIs within your application.

  • istr.png user ID

    user ID returns the ID of the user currently logged in. If no user is logged in, this output returns an empty string.

  • istr.png username

    username returns the username of the user currently logged in. If no user is logged in, this output returns an empty string.

  • i1dstr.png privileges

    privileges returns the privileges associated with the request, including privileges associated with a logged in user.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.