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.
31
Web Server - Ask For Help / Re: Ooops - Aplogies for posting a 2MB zip attachment
« on: May 27, 2016, 10:16:48 PM »
Hi Edwin,
On the other side I've making some tests with Java Servers provinding Web Services. It's another thing.
Googling I saw that many people complains about Java programmers that do not cooperate so we have to work in SOAP message itself to build as the server is waiting for. In special I've some troubles with Secure Web Services with certificates...
Cheers,
Marcos
On the other side I've making some tests with Java Servers provinding Web Services. It's another thing.
Googling I saw that many people complains about Java programmers that do not cooperate so we have to work in SOAP message itself to build as the server is waiting for. In special I've some troubles with Secure Web Services with certificates...
Cheers,
Marcos
32
Web Server - Ask For Help / NT 9.09 receive Ajax Json and answer
« on: May 27, 2016, 07:59:45 AM »
Hi,
I'm working with a 3rd party JavaScript component that works with promises. So I have to receive an Ajax call with GET/POST with text or Json get data and I have to answer with text or Json too. Could anyone give me directions on how to get Ajax postings/data and how to answer?
Examples:
$.ajax({
method: 'GET',
url: '/SecwinLoginForm?parameter',
success: onSuccess,
error: onError
});
and
$.ajax({
method: 'POST',
url: '/SecwinLoginForm',
data: JSON.stringfy({
data1: parameter1,
data2: parameter2
}),
contentType: 'application/json',
success: onSuccess,
error: onError
});
In WebHandler I try to get in ProcessGet but it does not enter in it.
Thank you.
Marcos
I'm working with a 3rd party JavaScript component that works with promises. So I have to receive an Ajax call with GET/POST with text or Json get data and I have to answer with text or Json too. Could anyone give me directions on how to get Ajax postings/data and how to answer?
Examples:
$.ajax({
method: 'GET',
url: '/SecwinLoginForm?parameter',
success: onSuccess,
error: onError
});
and
$.ajax({
method: 'POST',
url: '/SecwinLoginForm',
data: JSON.stringfy({
data1: parameter1,
data2: parameter2
}),
contentType: 'application/json',
success: onSuccess,
error: onError
});
In WebHandler I try to get in ProcessGet but it does not enter in it.
Thank you.
Marcos
33
Web Server - Ask For Help / Re: Ooops - Aplogies for posting a 2MB zip attachment
« on: May 27, 2016, 07:35:49 AM »
Hi Edwin,
I'm still testing some 3rd party Web Services using Visual Studio to see how to talk to NT Web Service.
Sorry but I couldn't use your example because I'm using Clarion 8 here.
At that time I could add records to your Web Service using NT sending an assembled SOAP message based on ASP page that you post from you customer.
That example was built in old ASP that uses Visual Basic Script that I have to do some corrections posted in my answer to you. Today they're using ASPX that uses .asmx pages to build SOAP messages using C# for example. But basically are the same.
If your customer that will consume NT Web Service follow the rules showed in on-line documentation that NT Web Service creates they can build a correct ASP or ASPX SOAP. As on-line doc is a page that you can open like: "https://81.133.172.229:8083/Database?dbLeads" and shows all the format and examples.
Using Visual Studio is different because it creates an internal class that assemble asyn or sync calls to all methods based on wsdl and some more info from the web service. It called as "Web Reference" or "Service Reference" component.
For example if I try to get Web Service or Web Reference from example web77 I can get all the tables and fields that I can use inside the project and set their values. But when I try to use your Web Service it don't get tables and fields just only methods. Seems to be some settings in your app to show files and fields to web service.
I've made a test creating Web Reference in Visual Studio to talk to Web77 and use NT. It worked creating a SOAP 1.1 xml message. I compare with on-line documentation and it's correct.
I've update NT to 9.09 and web77 is crashing but I think it's working.
Hope this helps you.
Cheers,
Marcos
I'm still testing some 3rd party Web Services using Visual Studio to see how to talk to NT Web Service.
Sorry but I couldn't use your example because I'm using Clarion 8 here.
At that time I could add records to your Web Service using NT sending an assembled SOAP message based on ASP page that you post from you customer.
That example was built in old ASP that uses Visual Basic Script that I have to do some corrections posted in my answer to you. Today they're using ASPX that uses .asmx pages to build SOAP messages using C# for example. But basically are the same.
If your customer that will consume NT Web Service follow the rules showed in on-line documentation that NT Web Service creates they can build a correct ASP or ASPX SOAP. As on-line doc is a page that you can open like: "https://81.133.172.229:8083/Database?dbLeads" and shows all the format and examples.
Using Visual Studio is different because it creates an internal class that assemble asyn or sync calls to all methods based on wsdl and some more info from the web service. It called as "Web Reference" or "Service Reference" component.
For example if I try to get Web Service or Web Reference from example web77 I can get all the tables and fields that I can use inside the project and set their values. But when I try to use your Web Service it don't get tables and fields just only methods. Seems to be some settings in your app to show files and fields to web service.
I've made a test creating Web Reference in Visual Studio to talk to Web77 and use NT. It worked creating a SOAP 1.1 xml message. I compare with on-line documentation and it's correct.
I've update NT to 9.09 and web77 is crashing but I think it's working.
Hope this helps you.
Cheers,
Marcos
34
Web Server - Ask For Help / Re: 3rd party seems to have problem posting xml to my server
« on: May 06, 2016, 09:56:05 PM »
Hi Edwin,
I've made some tests with your server and added a record with success with:
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv=''http://schemas.xmlsoap.org/soap/envelope/'' xmlns:a=''https://81.133.172.229:8083/Database'' >
<soapenv:Body>
<dbCentral xmlns="Database">
<CentralLeads_list>
<CentralLeads>
<CEN_SOURCEDATE></CEN_SOURCEDATE>
<CEN_SOURCE>SJWEBTEST</CEN_SOURCE>
<CEN_SOURCENAME>SJWEB Test</CEN_SOURCENAME>
<CEN_SOURCEID>123456789</CEN_SOURCEID>
<CEN_DATAINPUT>FCFweb</CEN_DATAINPUT>
<CEN_TITLE1>Mr</CEN_TITLE1>
<CEN_FIRSTNAMES1>Teddy</CEN_FIRSTNAMES1>
<CEN_SURNAME1>Smith</CEN_SURNAME1>
<CEN_DOB1></CEN_DOB1>
<CEN_AGE1>27</CEN_AGE1>
<CEN_ADDRESS1>25 Test Street</CEN_ADDRESS1>
<CEN_ADDRESS2>Local Area</CEN_ADDRESS2>
<CEN_ADDRESS3>Some Town</CEN_ADDRESS3>
<CEN_ADDRESS4>Test Shire</CEN_ADDRESS4>
<CEN_POSTCODE>TT1 1TT</CEN_POSTCODE>
<CEN_RESIATCURR>5</CEN_RESIATCURR>
<CEN_HOMETEL>01256789012</CEN_HOMETEL>
<CEN_WORKTEL></CEN_WORKTEL>
<CEN_MOBILE>01234567890</CEN_MOBILE>
<CEN_STATUS>LIVE</CEN_STATUS>
<CEN_EPV>195000</CEN_EPV>
<CEN_MORTBAL>100000</CEN_MORTBAL>
<CEN_LOANAMOUNT>150000</CEN_LOANAMOUNT>
<CEN_INCOME1>35000</CEN_INCOME1>
<CEN_ARREARS>0</CEN_ARREARS>
<CEN_CCJS>0</CEN_CCJS>
<CEN_LOANTERM>20</CEN_LOANTERM>
<CEN_RESSTATUS>Home Owner</CEN_RESSTATUS>
<CEN_ADVERSENOTES>value</CEN_ADVERSENOTES>
</CentralLeads>
</CentralLeads_list>
<central_Action>insert</central_Action>
</dbCentral>
</soapenv:Body>
</soapenv:Envelope>
So your customer have to change ASP file with the variable "outxml" to have the above contents.
I notice the following:
1. Visual Studio did not import CentralLeads class that contains your db structure from dbCentral Method and probably the same in the other Method. I tried with the example web77 and it imported correctly all three databases classes that allows to "see" the database fields and work with them. You may review and compare with web77 on NetWebServiceMethod to see if you missed something.
2. When trying to send a wrong structure to your web server it answers with the index page not with a SOAP error message. No big deal but if client side make any mistake...
I hope that this could help you.
Cheers,
Marcos
I've made some tests with your server and added a record with success with:
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv=''http://schemas.xmlsoap.org/soap/envelope/'' xmlns:a=''https://81.133.172.229:8083/Database'' >
<soapenv:Body>
<dbCentral xmlns="Database">
<CentralLeads_list>
<CentralLeads>
<CEN_SOURCEDATE></CEN_SOURCEDATE>
<CEN_SOURCE>SJWEBTEST</CEN_SOURCE>
<CEN_SOURCENAME>SJWEB Test</CEN_SOURCENAME>
<CEN_SOURCEID>123456789</CEN_SOURCEID>
<CEN_DATAINPUT>FCFweb</CEN_DATAINPUT>
<CEN_TITLE1>Mr</CEN_TITLE1>
<CEN_FIRSTNAMES1>Teddy</CEN_FIRSTNAMES1>
<CEN_SURNAME1>Smith</CEN_SURNAME1>
<CEN_DOB1></CEN_DOB1>
<CEN_AGE1>27</CEN_AGE1>
<CEN_ADDRESS1>25 Test Street</CEN_ADDRESS1>
<CEN_ADDRESS2>Local Area</CEN_ADDRESS2>
<CEN_ADDRESS3>Some Town</CEN_ADDRESS3>
<CEN_ADDRESS4>Test Shire</CEN_ADDRESS4>
<CEN_POSTCODE>TT1 1TT</CEN_POSTCODE>
<CEN_RESIATCURR>5</CEN_RESIATCURR>
<CEN_HOMETEL>01256789012</CEN_HOMETEL>
<CEN_WORKTEL></CEN_WORKTEL>
<CEN_MOBILE>01234567890</CEN_MOBILE>
<CEN_STATUS>LIVE</CEN_STATUS>
<CEN_EPV>195000</CEN_EPV>
<CEN_MORTBAL>100000</CEN_MORTBAL>
<CEN_LOANAMOUNT>150000</CEN_LOANAMOUNT>
<CEN_INCOME1>35000</CEN_INCOME1>
<CEN_ARREARS>0</CEN_ARREARS>
<CEN_CCJS>0</CEN_CCJS>
<CEN_LOANTERM>20</CEN_LOANTERM>
<CEN_RESSTATUS>Home Owner</CEN_RESSTATUS>
<CEN_ADVERSENOTES>value</CEN_ADVERSENOTES>
</CentralLeads>
</CentralLeads_list>
<central_Action>insert</central_Action>
</dbCentral>
</soapenv:Body>
</soapenv:Envelope>
So your customer have to change ASP file with the variable "outxml" to have the above contents.
I notice the following:
1. Visual Studio did not import CentralLeads class that contains your db structure from dbCentral Method and probably the same in the other Method. I tried with the example web77 and it imported correctly all three databases classes that allows to "see" the database fields and work with them. You may review and compare with web77 on NetWebServiceMethod to see if you missed something.
2. When trying to send a wrong structure to your web server it answers with the index page not with a SOAP error message. No big deal but if client side make any mistake...
I hope that this could help you.
Cheers,
Marcos
35
Web Server - Ask For Help / Re: I need to create fields for my report filters at runtiime.
« on: May 03, 2016, 06:26:32 PM »
Hi Jeff,
As I understood about a Form yes it will not be a trivial task. You should deal with Javascript/HTML and the logic behind the Form itself.
You could pre create the entries hidden and unhide as you need.
Cheers,
Marcos
As I understood about a Form yes it will not be a trivial task. You should deal with Javascript/HTML and the logic behind the Form itself.
You could pre create the entries hidden and unhide as you need.
Cheers,
Marcos
36
Web Server - Ask For Help / Re: Form to Form different record
« on: May 03, 2016, 06:03:03 AM »
Hi Bruce,
I stored the value and got this value in PreUpdate routine at Start embed code opening, fecthing, saving to sessionqueue and closing Mailboxes.
For example put in loc:newrec number 5 in FirstForm but SecondForm is still getting the original record 2.
Seems that priming has no effect too.
What the effect on Form have when calling "SecondForm?change_btn=change&_bidv_=' & p_web.AddBrowseValue('firstform','mailboxes',MAI:PrimaryKey) ?
Thank you.
Cheers,
Marcos
I stored the value and got this value in PreUpdate routine at Start embed code opening, fecthing, saving to sessionqueue and closing Mailboxes.
For example put in loc:newrec number 5 in FirstForm but SecondForm is still getting the original record 2.
Seems that priming has no effect too.
What the effect on Form have when calling "SecondForm?change_btn=change&_bidv_=' & p_web.AddBrowseValue('firstform','mailboxes',MAI:PrimaryKey) ?
Thank you.
Cheers,
Marcos
37
Web Server - Ask For Help / Re: Mobile APP and Server Sync
« on: May 03, 2016, 12:22:02 AM »
Hi Walter,
Take a look at config.xml parameter "access origin" it should be pointing to your server and it is not updated automatically.
Cheers,
Marcos
Take a look at config.xml parameter "access origin" it should be pointing to your server and it is not updated automatically.
Cheers,
Marcos
38
Web Server - Ask For Help / Re: I need to create fields for my report filters at runtiime.
« on: May 02, 2016, 08:45:22 PM »
Hi Jeff,
In report procedure are you passing p_web? And tried to pass Session Values to these range fields? Just like p_web.GSV('low_limit') and p_web.GSV('high_limit').
Cheers,
Marcos
In report procedure are you passing p_web? And tried to pass Session Values to these range fields? Just like p_web.GSV('low_limit') and p_web.GSV('high_limit').
Cheers,
Marcos
39
Web Server - Ask For Help / Re: 3rd party seems to have problem posting xml to my server
« on: May 02, 2016, 08:38:34 PM »
Hi Edwin,
Try to remove <soapenv:Header/> and replace your soapenv:Envelope by:
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dat="Database">
I'm not shure about xmlns:dat just doble check it.
If you have a header use <soapenv:Header> and </soapenv:Header>
Cheers,
Marcos
Try to remove <soapenv:Header/> and replace your soapenv:Envelope by:
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dat="Database">
I'm not shure about xmlns:dat just doble check it.
If you have a header use <soapenv:Header> and </soapenv:Header>
Cheers,
Marcos
40
Web Server - Ask For Help / Form to Form different record
« on: May 02, 2016, 05:36:11 PM »
Hi,
Based on example 24 attached I have a situation in that I have to show SecondForm as a record different from the FirstForm based on new record value resulting from processing some data in FirstForm. I Changed the example 24 adding a field loc:newrec in FirstForm and try to “catch” in SecondForm priming the value of index field record in this case MailboxNumber but no success.
Tried creating a SessionValue ‘loc:newrec’ with a new record to show and call SecodForm as a link from FirstForm as : ‘SecondForm?change_btn=change&_bidv_=' & p_web.AddBrowseValue('FirstForm','MailBoxes', MAI:PrimaryKey,p_web.GSV('loc:newrec')) but no success too.
I think that I didn’t understood how NT “remembers” the file settings that a parent pass to a child procedure (handle).
In real application there's a menu that calls a LoginForm. Login will define customer record then opens a second form with customer's data.
How could I do this?
Thank you.
Cheers,
Marcos
Based on example 24 attached I have a situation in that I have to show SecondForm as a record different from the FirstForm based on new record value resulting from processing some data in FirstForm. I Changed the example 24 adding a field loc:newrec in FirstForm and try to “catch” in SecondForm priming the value of index field record in this case MailboxNumber but no success.
Tried creating a SessionValue ‘loc:newrec’ with a new record to show and call SecodForm as a link from FirstForm as : ‘SecondForm?change_btn=change&_bidv_=' & p_web.AddBrowseValue('FirstForm','MailBoxes', MAI:PrimaryKey,p_web.GSV('loc:newrec')) but no success too.
I think that I didn’t understood how NT “remembers” the file settings that a parent pass to a child procedure (handle).
In real application there's a menu that calls a LoginForm. Login will define customer record then opens a second form with customer's data.
How could I do this?
Thank you.
Cheers,
Marcos
41
Web Server - Ask For Help / Re: Web Login via QR code?
« on: April 29, 2016, 12:38:09 PM »
Hi Kurt,
I don't know if it works in mobile but you can encode TAB and ENTER commands inside QR Code to try to "emulate" typing. So your application remains the same.
Cheers,
Marcos
I don't know if it works in mobile but you can encode TAB and ENTER commands inside QR Code to try to "emulate" typing. So your application remains the same.
Cheers,
Marcos
42
Web Server - Ask For Help / Re: Google Cloud Platform - Load Balance
« on: April 29, 2016, 11:55:21 AM »
Hi Bruce,
I'll try it and post here results.
In NT WebServer/NetSimpleObject/Settings/Security there's a configuration "Bind Session to IP Address". Do you think that this setting could help?
About end users yeah they overestimate a lot. And I will follow your directions.
Thank you.
Cheers,
Marcos
I'll try it and post here results.
In NT WebServer/NetSimpleObject/Settings/Security there's a configuration "Bind Session to IP Address". Do you think that this setting could help?
About end users yeah they overestimate a lot. And I will follow your directions.
Thank you.
Cheers,
Marcos
43
Web Server - Ask For Help / Re: Mobile APP: how to app icon, splash and images
« on: April 27, 2016, 01:23:17 PM »
Hi Walter,
Indeed. Seems that mBuild does not capture all images used by application. I copy images folder to output folder and the application can found them including _busy.gif and your customized ones.
Looking closer to the images that are in zip file created by mBuild we have images that came from images under theme folder.
Cheers,
Marcos
Indeed. Seems that mBuild does not capture all images used by application. I copy images folder to output folder and the application can found them including _busy.gif and your customized ones.
Looking closer to the images that are in zip file created by mBuild we have images that came from images under theme folder.
Cheers,
Marcos
44
Web Server - Ask For Help / Re: Google Cloud Platform - Load Balance
« on: April 27, 2016, 11:40:07 AM »
Hi Bruce,
After lauching app it will receive a growing number of connections that it could have peaks of 1000's per second.or more as the final customer estimates.
Thank you.
Cheers,
Marcos
After lauching app it will receive a growing number of connections that it could have peaks of 1000's per second.or more as the final customer estimates.
Thank you.
Cheers,
Marcos
45
Web Server - Ask For Help / Google Cloud Platform - Load Balance
« on: April 22, 2016, 03:15:24 PM »
Hi,
I have to deploy an NT app that will have to deal with a lot of connections and I'm testing GCP Load Balance and Automatic Scaling. For your first project you earn 300 bucks to be spent in 60 days.
Using a single VM machine it's ok but when adding VMs to the pool GCP is breaking a desktop NT app sending wrong session pages to client side. It seems that GCP is switching VMs in the middle of a session and loosing sequence.
Does anyone had an experience with GCP using Load Balance and Automatic Scaling?
Thank you.
Regards,
Marcos
I have to deploy an NT app that will have to deal with a lot of connections and I'm testing GCP Load Balance and Automatic Scaling. For your first project you earn 300 bucks to be spent in 60 days.
Using a single VM machine it's ok but when adding VMs to the pool GCP is breaking a desktop NT app sending wrong session pages to client side. It seems that GCP is switching VMs in the middle of a session and loosing sequence.
Does anyone had an experience with GCP using Load Balance and Automatic Scaling?
Thank you.
Regards,
Marcos