bvstone

BVSTools Now Offering Web Services (BETA)

Posted:

BVSTools Now Offering Web Services (BETA)

BVSTools is offering limited services to see if it's something that companies and individuals would be interested in.

These web services can be called from virtually any OS or system that can make a URL call (cURL, GETURI, HTTPAPI, Postman, etc) and can be called from RPG or any program that can use on of these types of web service calls.  

So far the services offered are:

  • MLTSVC1 - This is the "MAILTOOL" E-Mail Service which allows you to send simple emails using a web service instead of having to install email client software on your IBM i, [<tic>or worse, set up the IBM SMTP server</tic>. 

    More importantly, each client can be set up with your your very own configurations for things like from address, reply to address, mail router/server (ie, you can use GMail, Office 365, etc).  Basically anything that can be configured in MAILTOOL can be configured specifically for your web service account.  

    This service is actually built into the default Braintree Open Source module that we have put together.  And Example of using it with Node.js is included, and shown here:
    var submitData = JSON.stringify({key:"myservicekey", toAddress:[json array of recipients], subject:"email subject", message:"my message"});
      
      var options = {
        host: 'ws.bvstools.com',
        port: '80',
        path: '/webservice/mailtoolService',
        method: 'POST',
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded '
        }
      };
      
      var req = http.request(options, function(httpReq) {
        var msg = '';
      
        httpReq.setEncoding('utf8');
        httpReq.on('data', function(chunk) {
          msg += chunk;
        });
        
        httpReq.on('end', function() {
          var jsonContent;  
          var success;
          var response;
          
          try {
            jsonContent = JSON.parse(msg);  
            success=jsonContent.success;
            response=jsonContent.response;
          } catch(e) {
            success='false';
            response='Error parsing response: ' + e;
          }
          
          writeDiagnostic(plist, "@@ Email success: " + success + ":" + response);    
        });
      });
      
      req.write(submitData);
      req.end();

     
  • REVPROXY1 - This is a Reverse Proxy Service that will allow you to make HTTPS requests over SSL to a remote server using simple HTTP requests from your local system.  This can come in handy if your system doesn't work with the latest SSL Ciphers.  Of course, this couldn't be used for anything with sensitive data or requests that require you follow standards (such as PCI for credit card transactions) since the proxy itself is over HTTP (non-secured).  

    The only real requirement is that the request is a GET or POST, and includes a custom HTTP header named REALURI that includes the "Real URI" that you wish to connect to (as well as passing along your service key in a custom header as well).

Pricing is yet to be determined, but most will be less than $300 a year for the service.  If we find that the service is heavily used we will most likely add a limit to how many service calls can be made per month, and bill additional for requests over that limit.  This is all new, so we're still looking at our options.

You may ask why these options are becoming available?  Well, working with clients and doing custom programming we've run into situations where using a service like this not only saved a lot of time and money, but were simply easier to implement, especially since in the background on our server, where the requests are made, our proven software (ie MAILTOOL and GETURI) are being used.

As always, feel free to contact us with any questions.

 

 


Last edited 04/03/2018 at 11:23:36



Latest Posts:

Create QRCODE in DDS Create QRCODE in DDS
Posted by September 21, 2018
Programming >> RPG Programming
Base64 Encoding a File with RPG Base64 Encoding a File with RPG
Posted by September 6, 2018
Programming >> RPG Programming
Building JSON with RPG and YAJL and Writing to Standard Output Building JSON with RPG and YAJL and Writing to Standard Output
Posted by August 31, 2018
Programming >> Proof of Concept (POC)
How to Delete Files or Empty Trash From Your Google Drive with your IBM i and RPG/ILE How to Delete Files or Empty Trash From Your Google Drive with your IBM i and RPG/ILE
Posted by July 24, 2018
BVSTools >> BVSTools Software Discussion >> GreenTools for G Suite (Google Apps) (G4G) Specific Discussion
GreenTools for G Suite (G4G) Updated to Include Delete and Empty Trash Function GreenTools for G Suite (G4G) Updated to Include Delete and Empty Trash Function
Posted by July 24, 2018
BVSTools >> BVSTools Announcements >> GreenTools for G Suite (Google Apps) (G4G) Specific Announcements
What to Do If Your License Keys Don't Work What to Do If Your License Keys Don't Work
Posted by July 18, 2018
BVSTools >> BVSTools Software Discussion
MAILTOOL Updated to Allow Failed Message on Invalid Recipient MAILTOOL Updated to Allow Failed Message on Invalid Recipient
Posted by May 20, 2018
BVSTools >> BVSTools Announcements >> eMail Tool (MAILTOOL) Specific Announcements
Non HTTPS Callbacks Removed from GreenTools for G Suite (G4G) Non HTTPS Callbacks Removed from GreenTools for G Suite (G4G)
Posted by April 15, 2018
BVSTools >> BVSTools Announcements >> GreenTools for G Suite (Google Apps) (G4G) Specific Announcements
IBM i Related Survey Available IBM i Related Survey Available
Posted by April 7, 2018
IBM Power Systems >> (QGPL) IBM i
BVSTools Releases Braintree Webhook Open Source Application - Node.js BVSTools Releases Braintree Webhook Open Source Application - Node.js
Posted by April 5, 2018
Programming >> Open Source
BVSTools Now Offering Web Services (BETA) BVSTools Now Offering Web Services (BETA)
Posted by April 3, 2018
BVSTools >> BVSTools Announcements
Creating a Reverse SSL Proxy Using RPG on the IBM i - Part 2 Creating a Reverse SSL Proxy Using RPG on the IBM i - Part 2
Posted by March 29, 2018
Programming >> Web Programming
Still on V7R1 or Earlier?  Here's Why You Should Upgrade NOW! Still on V7R1 or Earlier? Here's Why You Should Upgrade NOW!
Posted by February 21, 2018
IBM Power Systems >> (QGPL) IBM i
Converting a MMDDYY date format to YYMMDD for Sorting Using SQL Converting a MMDDYY date format to YYMMDD for Sorting Using SQL
Posted by February 16, 2018
Programming >> RPG Programming
Moving All Files from a Google Drive Folder to the Trash Using GreenTools for Google Apps (G4G) Moving All Files from a Google Drive Folder to the Trash Using GreenTools for Google Apps (G4G)
Posted by February 3, 2018
BVSTools >> BVSTools Software Discussion >> GreenTools for G Suite (Google Apps) (G4G) Specific Discussion

Reply




Copyright 1983-2018 BVSTools
GreenBoard(v3) Powered by the eRPG SDK, MAILTOOL Plus!, GreenTools for Google Apps, jQuery, jQuery UI, BlockUI, CKEditor and running on the IBM i (AKA AS/400, iSeries, System i).