PTC Mathcad Prime as a web service

J2448_Mathcad_RSS_Feed_bnr_Premium

Early in March, 2015 PTC Mathcad Prime 3.1 hit the market. With this release came the PTC Mathcad Prime Application Programming Interface, a COM based API. This API allows developers to build standalone applications which can leverage PTC Mathcad Prime as a calculation engine.

Using C++ , C#.NET or VB.NET , user interfaces can be developed to launch PTC Mathcad Prime, load a specific worksheet into PTC Mathcad Prime, set input values and retrieve results, then close worksheet and Mathcad Prime. All this can be accomplished with PTC Mathcad Prime being invisible. It still requires an installation of PTC Mathcad Prime, this is not a runtime engine, but when you start to think of this in the context of server based applications it becomes very interesting.

If you think of two-tier or three-tier architectures, with PTC Mathcad Prime as the last tier, we can think about all types of deployments. Web services have shown up as another technique to take these architectures specifically to the web as a platform. There is no need for me to document web services, others have done this is great volume.

https://en.wikipedia.org/wiki/Web_service

https://msdn.microsoft.com/en-us/library/ms950421.aspx

In Microsoft speak, developers can build a web application and connect to a single installation of PTC Mathcad Prime via a web service. Web services communicate over HTTP and web applications run on Web Server, so enter Microsoft IIS.

Microsoft IIS is a free webserver from Microsoft and is installed (not configured) on every windows platform. So ASP.NET applications reside on IIS and the end user interacts with the application via a browser. This is your two-tier application. Now let’s add the third tier, via web service, the web based application can have engineering calculations added to it. So PTC Mathcad Prime behaves as an analysis engine.

From a browser a user selects input values and clicks Submit. These values go from the ASP application to the web service and feeds server-side PTC Mathcad Prime info such as: which worksheet to load, what input values would be, what are the results, close. The results come back from PTC Mathcad Prime, through the web service and can be rendered as HTML in the user’s browser.

PTC will be demonstrating a number of integrations between PTC Mathcad Prime and other PTC products later this year using this technique.

 

Try it out for free with PTC Mathcad Express

 

Learn about the latest features in PTC Mathcad Prime 3.1. >>

 

 

This entry was posted in Education, Mathcad, The Inside Scoop and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s