By akumanomi1988 - Wed Nov 07, 2018 7:24 am
- Wed Nov 07, 2018 7:24 am
#817656
Hi,
i need some help with PM Web Service.
My installed version is:
O.S. - Windows NT PROCESSMAKERSRV 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
PM 3.2
PHP 5.6.38
Im developing a Project in visual studio.
I have a connected service to this url http://processmakersrv/sysWork/es-ES/ne ... ices/wsdl2
Then i used the reference for access to the methods of the service.
When i create a new user, i cant find where can i set the authentication by Active directory (wich is configured by the web interface)
this is the method with i get all the users
thx 4 help
i need some help with PM Web Service.
My installed version is:
O.S. - Windows NT PROCESSMAKERSRV 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
PM 3.2
PHP 5.6.38
Im developing a Project in visual studio.
I have a connected service to this url http://processmakersrv/sysWork/es-ES/ne ... ices/wsdl2
Then i used the reference for access to the methods of the service.
When i create a new user, i cant find where can i set the authentication by Active directory (wich is configured by the web interface)
this is the method with i get all the users
Code: Select all
and this is the method with i create a new user.Public Shared Function listarUsuarios(message As String) As List(Of Empleado)
Dim _pmakersoapclient As New ProcessMakerServiceSoapClient()
Dim _version As String = ""
Dim _timestamp As String = ""
Dim infoSTR As informationUserStruct() = Nothing
Dim txt As String = ""
Dim listaEmpleados As New List(Of Empleado)
Dim lista As userListStruct() = _pmakersoapclient.userList(message)
For index = 0 To lista.Count - 1
Dim empleado As New Empleado
Dim response As String = _pmakersoapclient.informationUser(message, lista.ElementAt(index).guid, txt, _timestamp, infoSTR)
empleado.pIdUsuario = infoSTR(0).username
empleado.pNombre = infoSTR(0).firstname
empleado.pApellidos = infoSTR(0).lastname
empleado.pCorreo = infoSTR(0).mail
empleado.pDireccion = infoSTR(0).address
empleado.pCodPostal = infoSTR(0).zipcode
empleado.pPais = infoSTR(0).country
empleado.pTelefono = infoSTR(0).phone
empleado.pFax = infoSTR(0).fax
empleado.pMovil = infoSTR(0).cellular
empleado.pNacimiento = infoSTR(0).birthday
empleado.pPosicion = infoSTR(0).position
empleado.pReemplazadoPor = infoSTR(0).replacedby
empleado.pDuadate = infoSTR(0).duedate
empleado.pCalendar = infoSTR(0).calendar
empleado.pEstado = infoSTR(0).status
empleado.pDepartamento = infoSTR(0).department
empleado.pReportsto = infoSTR(0).reportsto
empleado.pUserExperience = infoSTR(0).userexperience
empleado.pFoto = infoSTR(0).photo
listaEmpleados.Add(empleado)
Next
Return listaEmpleados
End Function
Code: Select all
in both situations i have the same problem, i want to set and get the configuration of the authentication with active directoryPrivate Shared Function createUser(ByVal _sessionID As String, emple As Empleado) As createUserResponse
Dim _pmakersoapclient As New ProcessMakerServiceSoapClient()
Dim _response As New createUserResponse
Dim duedate As String() = Nothing
Dim _statuscode As String = ""
Dim status As String() = Nothing
Dim _message As String = ""
Dim _timestamp As String = ""
Dim _userUID As String = emple.pIdUsuario
_statuscode = _pmakersoapclient.createUser(_sessionID, _userUID, emple.pNombre, emple.pApellidos, emple.pCorreo, emple.pRol, emple.pPassword, duedate, status, _message, _userUID, _timestamp)
_response.message = _message
_response.status_code = _statuscode
_response.timestamp = _timestamp
_response.userUID = _userUID
Return _response
End Function
thx 4 help