I could not read the post correctly and not sure if you are running into something that I have encountered
It has something to do with thread safety or something of that kind
OScript Socket Not recieving Response Posted byingersollm@smtp.gc.ca (Ingersoll, Mike)On 02-13-2014 09:10 We have written OScript below which sends the Disposition Statuschangeto a custom web service. Our web service recieves the call buttheOscript method never recieves a response and hangs (Processing windowondisposition screen remains). Is there something else we need toaddto our code? Any help on this would be appreciated. We've removedourserver addresses but the rest of the code is what we've beenrunning.Thanks Mike function Assoc CBDispStatusChangePre( \ObjectprgCtx, \ DAPINODEnode, \ AssocactionInfo )Assoc rtnValStringerrMsg DynamicapiErrorBoolean ok = true StringurlString contentType String contentLength String dataStringhost Socket sock String result sock=Socket.Create() sock.pBlocking = trueSocket.Connect(sock,"WebServer", 8090) url =Str.Format("GET/WebService/rest/doAction/%1/%2 HTTP/1.1",node.pID,actionInfo.newStatus) host = "Host:WebServer:8090"contentType = "Content-Type:text/xml;charset=utf-8" data= "" contentLength= Str.Format("Content-Length:%1", Length(data))Socket.write(sock, url + Web.CRLF);Socket.write(sock, host + Web.CRLF);Socket.write(sock, contentType+ Web.CRLF); Socket.write(sock,contentLength + Web.CRLF);Socket.write(sock, Web.CRLF);Socket.write(sock, data + Web.CRLF);Socket.Flush(sock) //result = Socket.Read(sock) <---issue is here! //Echo(result) Socket.Close(sock)if IsUndefined( rtnVal.OK )rtnVal.OK= ok rtnVal.ErrMsg =errMsgrtnVal.ApiError = apiError endreturn rtnVal end[To post a comment, use the normal reply function]Forum:Content Server Development ForumContent Server:Knowledge Center