Ok, thanks for reply, but my problem, as always for me
, its not the usual one..
I used Nettalk example num 42, (SoapServer). This works fine. I can start the server and send request as is in example.
Ok, next point: I add another app, plain window, purpose just for testing. From that new window I want to call external procedure where is my SOAP request procedure (client app from example), with some parameter(s). Ok, parameters goes from window to soap-request procedure, and SOAP XML is creates as usually. But, whet its come to POST and SEND request to server, problem started. Here is my routine to post request:
SendPost routine
PostURL = 'http://' & clip(loc:url) & '/getInfo'
ThisWebClient.SetAllHeadersDefault()
ThisWebClient.Pragma_ = 'No-Cache'
ThisWebClient.CacheControl = 'No-Cache'
ThisWebClient.ContentType = 'text/xml'
ThisWebClient.AcceptEncoding = ''
ThisWebClient.ContentLength = len(clip(PostString)) !
ThisWebClient.AsyncOpenTimeOut = 1200
ThisWebClient.InActiveTimeout = 2000
ThisWebClient.Post(PostURL,PostString)
! Return some value if all goes well
if ID_Korisnika <> 0 and Rezultat.ErrorCode = 0
Return(ID_Korisnika) ! Returning with some ID, thats what I wan
ELSE
Return(ID_Korisnika) ! Returning with zero ID
END
First error is: -60, which means connection was not open (see attachment 1)
Ok, I resolve this error calling manually ThisWebClient.Init(NET:SimpleClient) procedure.
Now this error gone, but another problem is that ThisWebClient.Post(PostURL,PostString), procedure never open, instead of that, ThisWebClient.Destruct procedure fired?!?. Nor ThisWebClient.Send procedure never ever came in focus. When I manually call these procedures (Send for example), another error "connection not open" appear...
What Im doing wrong?!?
Sorry for such large post...
Oggy
[attachment deleted by admin]