Re: A web service for your data
Posted: Thu Apr 18, 2024 9:16 pm
Hello dear Roger
Hope you're well.
As always, your ideas are great. Precisely, 3 days ago, I published a topic on your forum, asking for help to use Xbase++ DLL libraries, in a C# program, so as not to lose my code, or many things that I have developed in Xbase++.
The distinguished forum members advised me to develop a REST API, or Webservice.
And since I follow everything you write, I realize that this topic is also related to Webservice.
And after reading your recommendations, and seeing the source program that you have published in this topic, I cannot understand what the instruction is that forms the object for the Webservice.
In case that instruction is CXPENDPOINT, I would face a headache, because with CxpEndpoint, I was never able to publish anything because the use of the certificate was not possible.
For example:
oHttp := CxpEndpoint():new( PORT, "localhost")
cerready := oHttp:setCertificate( "JCSERVER\WEBHOSTING\www.megaprord.com" )
I also used a pfx file with its key, as a certificate, but it never worked.
My question is, with which Xbase instruction, can I develop a REST API, or a Webservice, or an HTTPservice?
It would be enough for this API to have a single main function, because through that function, it would enter the other functions of the DLL.
I will appreciate the help.
Hope you're well.
As always, your ideas are great. Precisely, 3 days ago, I published a topic on your forum, asking for help to use Xbase++ DLL libraries, in a C# program, so as not to lose my code, or many things that I have developed in Xbase++.
The distinguished forum members advised me to develop a REST API, or Webservice.
And since I follow everything you write, I realize that this topic is also related to Webservice.
And after reading your recommendations, and seeing the source program that you have published in this topic, I cannot understand what the instruction is that forms the object for the Webservice.
In case that instruction is CXPENDPOINT, I would face a headache, because with CxpEndpoint, I was never able to publish anything because the use of the certificate was not possible.
For example:
oHttp := CxpEndpoint():new( PORT, "localhost")
cerready := oHttp:setCertificate( "JCSERVER\WEBHOSTING\www.megaprord.com" )
I also used a pfx file with its key, as a certificate, but it never worked.
My question is, with which Xbase instruction, can I develop a REST API, or a Webservice, or an HTTPservice?
It would be enough for this API to have a single main function, because through that function, it would enter the other functions of the DLL.
I will appreciate the help.