I have an API that will be registered on a local workstation and I want to create an instance of the API object and call the API from a web page. Can this be done?
My application is a desktop application that also has an API COM Object that will be registered on the local workstation.
Here is a sample jscript call to my API. I have sample from .net, vb and ASP
My object is called "FRTOBJ"
// 1. Create an instance of the COM Object
x = [url removed, login to view]( "[url removed, login to view]" );
// 2. Create the ship-to address record in Freight+
x.frt_header( "Gary", "TEST COMP", "32808 Alderbrk", "", "Wildomar", "CA", "92595", "9096784545", "USA", "UPS GRNC", "", "VERBAL", "11221", "ACP1", 5, 1, true);
// 3. Add any line items to be shipped.
x.frt_trans( "11221", "TEST1", "test desc 1", 1, 5, 10, 5, 1, 0, 5 );
// 4. Commit the transaction to Freight+ Shipping System.
So I need to call this API from a web page to a local desktop and if the API is registered.
You can download my desktop application at http://www.frtplus.com/frtsetup.exe and install the application on your desktop. An icon will be
created called "Freight+" you will need to launch the application and walk through the installation. Our software creates a UPS, FedEx, US Postal shipping tags. After installation there are samples on how to call the API from Jscrtip, VB, VB.NET, VFP, ASP in the frtplus\COM_SAMPLES folder.
The API "FRTOBJ.EXE" will be registered on your local workstation when the application is installed. Look at the samples and figure out how to call the API and pass parameters from a webpage to the local desktop.
If you execute one of the sample our shipping application will pop-up on your screen in a small window allowing you to enter a shipment.
Your job is to create the interface showing me a sample of how to call the API that is located on a local desktop from the web.