FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WINDEV 2024
→
Web Services re-run problem
Web Services re-run problem
Iniciado por Patrizio Vaccari, 22,jun. 2005 19:17 - No hay respuesta
Conéctese…
Patrizio Vaccari
#1
Publicado el 22,junio 2005 - 19:17
Working with IIS 5.1, Superbase ODBC Driver, Windev 8 US,
First Execution of my webservices method runs correctly,
second one don't run because IIS does not answer.
In my opinion, SQLClose() e/o SQLDisconnect() function don't work correctly and don't release IIS resources.
-------------------------------------------------------------------------------
This is the windev service code:
-------------------------------------------------------------------------------
PROCEDURE PUBLIC GLOBAL Test(esci is string)
IF SQLConnect("PPCSANA", "", "", "", "ODBC") = 0 THEN
RESULT "Errore di connessione."
END
risultato is string
IF NOT SQLExec(" Select CODICE_CM, DESCR_CM From FACOMUNI where CODICE_CM ='036023' ", "qrycom") THEN
SQLInfo("qrycom")
msg is string = SQL.MesError
SQLClose("qrycom")
RESULT "Query errata: " + msg
END
IF SQLFetch("qrycom") = 0 THEN
risultato=SQLGetCol("qrycom", 2)
ELSE
risultato= "Nessun risultato"
END
SQLClose("qrycom")
SQLDisconnect()
RESULT risultato
-------------------------------------------------------------------------------
The same webservices written in .ASP runs correctly (see code below):
-------------------------------------------------------------------------------
<%
Set Cn = CreateObject("ADODB.Connection")
Cn.Open "DSN=PPCSANA"
set rs = createobject("ADODB.Recordset")
rs.Open "Select * from facomuni where CODICE_CM ='036023'", cn
dim s
Do While Not rS.EOF
s = s & rs("CODICE_CM") & " - " & rs("descr_cm")
rs.MoveNext
Loop
rs.Close
response.write(now & " - " & s)
cn.close
set cn = nothing
%>
Can anyone help me?
Datagraph S.r.l
Patrizio Vaccari
Informar
0
0
→ Volver a WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versiones precedentes)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto