Good afternoon
I have the following problem, I use XMLs in WebServices in WinDev Mobile 22, Android work well because there the project was developed first, then the same content was passed to an iOS project, there is no compilation error, but the reading of XMLs does not work.
It works well in the iOS emulator but not in the device, debugging with infos it could be noticed that it does not enter the for each.
My code is as follows:
---------------------------------------------------------------------------
sResultado is string = Login(EDT_EMP_CLAVE,EDT_EMP_PASSWORD,0)
ResXML is xmlDocument
ResXML = XMLOpen(sResultado,fromString)
nResultado is int = StringCount(sResultado,"<DatosLogin>",IgnoreCase + WholeWord)
nCLI_NUM_CTRL is int
sCLI_NOMBRE is string
sResultadoBoolean is string
DatosLogin is xmlNode
FOR EACH DatosLogin OF ResXML
Info(DatosLogin)
FOR i = 1 _TO_ nResultado
Info(DatosLogin.DatosLogin.Resultado)
Info(DatosLogin.DatosLogin.CLI_NUM_CTRL)
Info(DatosLogin.DatosLogin.CLI_NOMBRE)
sResultadoBoolean = DatosLogin.DatosLogin.Resultado
nCLI_NUM_CTRL = DatosLogin.DatosLogin.CLI_NUM_CTRL
sCLI_NOMBRE = DatosLogin.DatosLogin.CLI_NOMBRE
END
END
Info(sResultadoBoolean)
IF sResultadoBoolean ~= "TRUE" THEN
...
------------------------------------------------------------------------
As it does not enter the cycle, the variable is always false
Does anyone have a solution to this?
Thanks in advance
I have the following problem, I use XMLs in WebServices in WinDev Mobile 22, Android work well because there the project was developed first, then the same content was passed to an iOS project, there is no compilation error, but the reading of XMLs does not work.
It works well in the iOS emulator but not in the device, debugging with infos it could be noticed that it does not enter the for each.
My code is as follows:
---------------------------------------------------------------------------
sResultado is string = Login(EDT_EMP_CLAVE,EDT_EMP_PASSWORD,0)
ResXML is xmlDocument
ResXML = XMLOpen(sResultado,fromString)
nResultado is int = StringCount(sResultado,"<DatosLogin>",IgnoreCase + WholeWord)
nCLI_NUM_CTRL is int
sCLI_NOMBRE is string
sResultadoBoolean is string
DatosLogin is xmlNode
FOR EACH DatosLogin OF ResXML
Info(DatosLogin)
FOR i = 1 _TO_ nResultado
Info(DatosLogin.DatosLogin.Resultado)
Info(DatosLogin.DatosLogin.CLI_NUM_CTRL)
Info(DatosLogin.DatosLogin.CLI_NOMBRE)
sResultadoBoolean = DatosLogin.DatosLogin.Resultado
nCLI_NUM_CTRL = DatosLogin.DatosLogin.CLI_NUM_CTRL
sCLI_NOMBRE = DatosLogin.DatosLogin.CLI_NOMBRE
END
END
Info(sResultadoBoolean)
IF sResultadoBoolean ~= "TRUE" THEN
...
------------------------------------------------------------------------
As it does not enter the cycle, the variable is always false
Does anyone have a solution to this?
Thanks in advance