NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - tglomb

Pages: [1] 2 3 ... 5
1
E-Mail - Ask For Help / How to set my own Message-ID ?
« on: November 13, 2019, 04:04:06 AM »
Hello,
I must set my own Message-ID in the header of an email (to send with NetEmailSend). I can use self.messagID=myownvalue (basicly a GUID), but it's useless because the class always overwrites it.
Background: I send an Email and the receiver sends one or more Emails back (automatically) which belongs to the sent Email. The received Mails can come in arbitrary order. I must match these Mails like a "1 to many" relation.
I tried self.ExtraHeader, this works but the Message-ID entry generated by the class is the first line in the sent Email. My entry via ExtraHeader comes later and so I guess it's ignored by the Receiver.
What is the secret or background of setting an own Message-ID ?
TIA, Thomas

2
The Rest - Ask For Help / Re: problem to Post XML to an URL
« on: September 30, 2018, 01:18:26 AM »
Thank you Bruce, it work's like a charm.
In my case I use now:
 mycstring= '<?xml version="1.0" encoding="UTF-8"?>' & crlf & |
       '<methodCall>' & crlf & |
         '<methodName>DisplayStudy</methodName>' & crlf & |
         '<params>' & crlf  & |
          ....
         '</params>' & crlf & |
         '</methodCall>'
 sender.SetAllHeadersDefault()
 sender.HeaderOnly = 0
 sender.Cookie = 'Cookie'
 sender.Referer = 'Referer'
 sender.ContentType = 'application/xml'
 sender.AcceptEncoding = ''
 sender.Pragma_ = 'no-cache'
 sender.Post( 'http://'& clip( theURLandPort), mycstring)
 
Sender is a NetWebClient object, crlf='<13,10>'. Maybe I can drop the crlf.. but it works and not for 20 Bytes or so ;-) there's no chance to play..
Ciao, Thomas


3
The Rest - Ask For Help / problem to Post XML to an URL
« on: September 24, 2018, 01:08:24 PM »
Hello,
I must Post (NetWebClient) XML data to an URL:Port. Somehow it doesnt works. Here my Code:

mycstring= '@XMLDATA=<?xml version="1.0" encoding="UTF-8"?>' & crlf & |
       '<methodCall>' & crlf & |
         '<methodName>DisplayStudy</methodName>' & crlf & |
         '<params>' & crlf  & |
          ....
         '</params>' & crlf & |
         '</methodCall>'


   sender.SetAllHeadersDefault()
   sender.HeaderOnly = 0
   sender.Cookie = 'Cookie'
   sender.Referer = 'Referer'
   sender.ContentType = 'application/xml'  ! -www-form-urlencoded'
   sender.AcceptEncoding = ''
   sender.Pragma_ = 'no-cache'
   sender.Post( 'http://'& clip( theURLandPort) &'/', mycstring)

What's wrong ?
Any ideas and hints are welcome.

TIA, Thomas

4
thanx Bruce,
that's an important info.. should be in the docs.

But this was not my prob, I usually take care of such things. Today I was on site and what shall I say... these fucking admins promised me to all my questions "are you sure that all ports opened in the firewall ?" a "yes of course !". Of course not ! They simply did'nt opened the UDP ports. After opening immediately everything worked as expected.

But can it be that it work sometimes without the UDP ports opened ?

Sorry for trouble.
Ciao, Thomas

5
Hello,
my project is a Server (Self)service for different tasks. I use a MDI Application frame and several MDI Client Windows procedures as worker threads for the different tasks (so far only file- and DB based). Now I added a new task and so a new MDI client proc which shall be a NetServer according to Scenario 1. This proc instanciates (as the only one in the App) the NetServer object.
The problem now is, that the NetClient Apps (at 5 PC's in the LAN) "sometimes" cannot see the NetServer. This means GetServers() returns always -16. "Sometimes" means that i.e. 2 PC communicating immediately with the Server, 1 needs 10 minutes, the rest 1 hour. The comm. breaks regularely, for no reason they loose connection (-16 again). the normal network functions are working properly at these PC's and when GetServers() returns 0 then the Apps do correctly what they shall do. (BTW It works the same way as Service or as started by hand)

My first question: is it a problem to use NetAuto NetServer in a MDI Client procedure within a MDI Application frame ?

TIA, Thomas

ps the code and settings according to the Scenario 1 example and docs is double checked !

6
The Rest - Ask For Help / Re: GetServers() error after restart server
« on: August 02, 2015, 03:26:07 PM »
Hi Kevin,
script or direct starting makes no difference, it works after. The VM is starting into a Admin user (me, always the same) and then starts the mentioned prog and others too (no probs with the others non NT progs)..
If I have time again I'll try it as a service. But my experiences wit hservices are if it not runs as normal then it also not runs as a Service..
Ciao, Thomas

7
The Rest - Ask For Help / Re: GetServers() error after restart server
« on: July 30, 2015, 10:53:31 AM »
@ Kevin
don't get me wrong. Wtih restarting the Servers I mean only the the VM's (the different Server OS's). My NetServer program is then started basing on a script (auto started).
Monday morning then I must do a teamviewer session into the VM where my prog is running (and the NetClients are accessing to), Close my prog and doubleclick start again. Thne everything is fine.

@ Peter
no further dependencies, everything is there whats needed. I know that it's running fine when the NetClients reacting on the data (which are filled by other non-NT progs in a shared database), Monday morning they simply don't see the NetServer prog, the data are definitely there.. The NetServer is running fine because it can prepare correctly the data for the NetClients which are coming from the nonNT prog. When strating the NetServer all the worker procedure are starting automatically. I can see from the Logs that the procedures starting and running fine.
Only the NetClients didn't see the NetServer..

Ciao (from Sardinia)

8
The Rest - Ask For Help / Re: GetServers() error after restart server
« on: July 27, 2015, 01:09:26 PM »
"I dont like mondays"..
Ok, I snitched this from the Boomtown Rats ;-) 
But the same procedure as every monday, no matter what I do. Here's the event flow..
* NetClient and NetServer are running, everything is fine.. for one week
* all the Server VM's are restarted at sunday, one is running the NetServer prog
* my NerServer prog closes gracefully when the request is coming from the OS
* the NetClient prog(s) runining and GetServers() giving now error -16 - which is ok
* now with the restart of hte VM my NetServer prog is also restarted and it runs fine !
* ====> but now never the Netclients GetServers() find the NetServer (always -16)
* closing/Restarting the Clients doesn't helps
* ====> but if I close/restart my NetServer prog manually, immediately all the NetClients GetServers() return error 0 and the progs working as expected

Can there be a problem with the restart of the OS of the NetServer machine and running NetCleint progs in the LAN ? Do they loose track somehow ?

I'm totally lost here ! Any hints appreciated !
TIA. Thomas

9
The Rest - Ask For Help / Re: GetServers() error after restart server
« on: July 19, 2015, 11:22:15 PM »
hey,
the same procedure as every monday. Alll the Servers were restarted at sunday, my NetServer prog also starts automatically. Then monday morning the Client PC is restartet and so my NetClient prog.. GetServers() returns -16 then. After manual closing and restarting of the NetServer prog immediately everything is fine.
So again.. why GetServers() don't see the NetServer prog in this szenario ?
Ciao, Thomas

10
The Rest - Ask For Help / Re: GetServers() error after restart server
« on: July 18, 2015, 11:58:30 AM »
hey Bruce,
GetServers() returns in this case -16. Interestingly also sometimes over the day when the physical Server and the VM's were running without break.
Do you have any idea ?
Ciao, Thomas

11
The Rest - Ask For Help / Re: GetServers() error after restart server
« on: July 11, 2015, 11:40:21 AM »
oops.. I meant the Frame Extension template - Enable shutdown. I don't use the CleanCloseDown procedure..

12
The Rest - Ask For Help / Re: GetServers() error after restart server
« on: July 11, 2015, 11:27:51 AM »
Hello Bruce,
the Server is one of several VM's on a physical Server. Every sunday all the VM's were restartet automatically. I have the "Clean CloseDown" template on this App.
I try to get the error info. It's difficult, the system is 24x7 at work. I had not coded any kind of logging..
Ciao, Thomas

13
The Rest - Ask For Help / Re: GetServers() error after restart server
« on: July 10, 2015, 04:58:39 AM »
No takers on this.. ?

14
The Rest - Ask For Help / GetServers() error after restart server
« on: July 06, 2015, 10:04:13 AM »
Hello,
I have an App according to Scenario One. A NetClient App (on a Client PC in a LAN) is asking (polling) the NetServer App (on a virtual Server in the LAN) if it has data for the Cleint. The NetServer is answering with data or with no. In the Process method of the NetClient is a "if GetServers()..". This works for one week without any Problems - except..
Every sunday the Server is restartet, the NetServer App starts automatically (in a script). But then in the NetClient Apps in Process method the GetServers() method returns with error. After closing and starting the NetServer App  again everything works perfect again for one week (next Server restart).
Does anyone have an idea what happens ?
Any ideas appreciated,
regards, Thomas
(C10gold, NT8.44)

15
So far no probs.
I wanted only to be sure that I'll get no probs if I rely only at ThisSender.OpenFlag = false and simply do an Re-Open.. without any Close or Abort before.. I mean some kind of housekeeping before going on.
TIA, Thomas

Pages: [1] 2 3 ... 5