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 - Jane

Pages: 1 ... 5 6 [7] 8 9 ... 23
91
Web Server - Ask For Help / Re: Net Service Method XML code problem.
« on: September 28, 2022, 04:40:17 PM »
Another XML issue.  A net web service method in one of my own apps.

The only hand-code is to build a queue.

Then the template code is set to return the queue. 

With XFiles 4.03 or 4.03, an additional <?xml version="1.0" encoding="utf-8"?> line is added somehow.

I've rolled back to 3.26 and all is good again.

This is the XML I get with version 4:

Code: [Select]
<?xml version="1.0"  encoding="utf-8"?>
<prtg xmlns="system">
<?xml version="1.0" encoding="utf-8"?>
  <result>
    <channel>sqlResponse</channel>
    <value>20220928</value>
    <channel>sessions</channel>
    <value>0</value>
    <channel>maxSessions</channel>
    <value>1</value>
    <channel>connections</channel>
    <value>2</value>
    <channel>maxConnections</channel>
    <value>6</value>
    <channel>threads</channel>
    <value>1</value>   
  </result>
</prtg>

92
Web Server - Ask For Help / Net Service Method XML code problem.
« on: September 27, 2022, 04:32:33 PM »
I think some template is getting confused.

Fresh install of NT 12.46.
Example Web77.

With XFiles 4.03/Reflection 1.13 it WILL compile.

Run corresponding client app.
Date method rest(get) works for receive format xml and json.

dbCustomer method REST get works for json. Make same request for xml and the server throws an exception -
xfiles.clw:2603 - XFILESSTREAM.EXTRACTNAMESFORSAVE is second item down on the call stack.

dbCustomers method throws same exception.

Through web browser interface, going to documentation page (http://127.0.0.1:88/Database?dbCustomer) shows "Error in site JavaScript" in browser and same exception on server.

Update XFiles to 4.04.  Refresh classes.
Now web77 will NOT compile (complains about the removed DONTREPLACECOLONS property). The only way I was able to get it to compile was to remove XML as a return type for each service.  Is there something I need to update to make the example work?

Jane

93
Web Server - Ask For Help / Re: SecWin example app with Active Directory
« on: August 27, 2022, 02:30:08 PM »
Thanks for fixing the Active Directory username/password login in 7.36, Bruce.

94
Web Server - Ask For Help / SecWin example app with Active Directory
« on: August 20, 2022, 06:04:21 PM »
Hi, Bruce,

As mentioned in my earlier email today, I?m just dipping my toe into SecWin. I?m using the web88 example (since I couldn?t get the other SecWin example web51 to compile.)

I?m able to do local user logins with this example.  But when I switch the login type for the company to Active Directory, it doesn?t work.

I put a trace statement in the ActiveDirectory_ValidateUser procedure and that never gets called.

In secwin.clw the code runs through SecwinLoginWebClass.StartLoginType, hits the CASE of sw:ActiveDirectoryLoginUserPassword condition, and from that calls to SecwinLoginWebClass.ShowLoginAndPasswordTab. 
But that SecwinLoginWebClass.ShowLoginAndPasswordTab method is empty. 
Is it overridden somewhere?  What should be calling the ActiveDirectory_ValidateUser procedure?

I think I'm probably missing something basic.

??

Jane


95
Web Server - Ask For Help / Re: WebService Method, security
« on: August 15, 2022, 11:07:57 AM »
Hah!  Busted by The Master, Jeff  ;D

A web service request isn't going to be hitting your login form.

How long would it take you to cut your existing code out of the login form and to paste it verbatim into the p_web.Authenticate procedure in the webHandler?


jf

96
Web Server - Ask For Help / Re: WebService Method, security
« on: August 14, 2022, 03:27:31 PM »
Jeff,

My question would be why you'd want to access a netWebService from a browser.  That's not how it's supposed to be used.  ? ? ?

That said, my little test with the Web77 example does accept the password from Chrome.  To avoid caching questions, I close Chrome entirely between tests.  In the second pic, you can see that the username/password was passed in as basic authentication.

jf



97
Web Server - Ask For Help / Re: WebService Method, security
« on: August 13, 2022, 09:59:06 AM »
Jeff,

Some suggestions.

1. Compile the web77 example - both the client and web server.  Verify that fetching the date works.
2. Open a browser and verify that you can access the date from the web service documentation or a URL in a web browser.
3. Change the Date NetWebServiceMethod: on the Security tab, mark the "User must be logged in" and "Delete Session immediately" checkboxes.
4. In the WebHandler procedure, go to the existing filled embed and change the first line to    if pUser = 'demo' and pPassword = 'demo'
5. Compile and run.  Verify that now the web77 client app fails to fetch the date.  A browser pops open its login window.
6. Open your browser to 127.0.0.1:88, use the Services menu.  System.  Date.  You should be able to type in the user name and password and have it work.
7. Compile the netdemo program.  Run it and open the Web Client window.   On the Authentication tab, select Basic authentication and put in the username and password.
8. On the Address tab, put in the address box: http:/127.0.0.1:88/date
9. Fetch should work.  So should using the Generic Post tab.

That web client is handy to use to figure out what you need to do to make your own code work.  You can open the Logging tab to look at what's sent/received.

If you're not running your web server as a service, you can also look at the Log tab on the web app's window  to help trouble-shoot.

I think that when you're testing this it's important to have the Delete Session immediately marked to avoid muddling what works with what doesn't.  I generally leave it marked for service methods anyway.

Good luck!






98
Web Server - Ask For Help / Re: script to put after /body
« on: August 09, 2022, 10:32:52 AM »
xy

Why would you want to do that?

99
Web Server - Ask For Help / Re: JavaScript in Report
« on: July 22, 2022, 09:31:18 AM »
No personal experience.

It might be worth looking into the Stimulsoft report engine.
There have been some clarionlive webinars on it, including one showing a template and mentioning a NetTalk app: https://www.clarionlive.com/BrowseEpisodes/ww!551



100
Web Server - Ask For Help / Re: certificate error i need help urgent
« on: July 06, 2022, 07:44:21 AM »
I don't understand what the style has to do with the certificate?  Is this a new server?  Has it EVER worked?  If I'm connecting to the right site (second pic), it seems to have a valid certificate and is getting CSS. ??

As for a certificate that is not Let's Encrypt, the pic below is an NT server using a DigiCert cert.  Is that what you're asking?


101
Web Server - Ask For Help / Re: certificate error i need help urgent
« on: July 05, 2022, 04:59:42 PM »
These observations may have nothing to do with your problem, but interesting anyway...

It does seem that you requested tracking.magictransport.com 5 times today prior to this current log that you're showing. 
(This link lets you click on each certificate and see when it was processed: https://crt.sh/?q=magictransport.com)

Let's Encrypt rate limits are spelled out here: https://letsencrypt.org/docs/rate-limits/

I haven't delved into Let's Encrypt enough to understand what they mean by "accounts"... but the linked document says "You can create a maximum of 10 Accounts per IP Address per 3 hours". 
I notice from your NetTalk log that each of the requests includes a log entry " Registering Account magictransport...."
Again, I don't know if Let's Encrypt considers that "creating" an account, which they limit to 10 per IP address per 3 hours.  (Is it possible to re-use an account rather than "registering" it each time?  Bruce would know, I don't.)

But if you click the links in the crt.sh link, the first timestamp for 7/5/2022 is 21:04:53 UTC and the newest is 22:57:08 UTC.  So that's 11 within less than 2 hours.

FWIW.

Cheers,

Jane



103
Web Server - Ask For Help / Re: Transmit file to Azure website
« on: June 13, 2022, 10:49:34 AM »
I'd suggest you compile the main NetTalk demo program, Joe (netdemo.app in the examples folder).

Run it, then use the Web Client window to experiment with authenticating to the website.

Then play with the websend.app in the examples folder for webclient.

Jane


105
Web Server - Ask For Help / Re: Browse image from a blob field
« on: May 27, 2022, 11:59:29 AM »

1.  I want to visit the NetTalk User Group Webinar next Thursday, so we might go over these issues I'm having.  I tried to register but it seems one can only register when the webinar is live.  Is there another way to register and/or join on Thursday?



To interact you'll need to attend via Zoom, not Youtube:

https://us02web.zoom.us/webinar/register/WN_X6ygTII9S3OqvkTRzms3qQ

Pages: 1 ... 5 6 [7] 8 9 ... 23