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:

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
Removing Unwanted Characters from a String with RPG Removing Unwanted Characters from a String with RPG
Posted by February 2, 2018
Programming >> RPG Programming
GETURI Version 8.10 Released GETURI Version 8.10 Released
Posted by January 23, 2018
BVSTools >> BVSTools Announcements >> Get URI (GETURI) Specific Announcements
BVSTools is Now a Sponsor of ALLAS400S.com BVSTools is Now a Sponsor of ALLAS400S.com
Posted by January 17, 2018
BVSTools >> BVSTools Announcements
Service Pack SP171219 Released for G4PP v3.10 Service Pack SP171219 Released for G4PP v3.10
Posted by December 20, 2017
BVSTools >> BVSTools Announcements >> GreenTools for PayPal (G4PP) Specific Announcements
GETURI Now Requires Minimum OS of V7R1 or Higher GETURI Now Requires Minimum OS of V7R1 or Higher
Posted by December 12, 2017
BVSTools >> BVSTools Software Discussion >> Get URI (GETURI) Specific Discussion
Need Help Updating Your Software Versions?  We Can Help. Need Help Updating Your Software Versions? We Can Help.
Posted by December 8, 2017
BVSTools >> BVSTools Announcements
Parsing the Response from GreenTools for PayPal (G4PP) Refund Transaction Parsing the Response from GreenTools for PayPal (G4PP) Refund Transaction
Posted by November 27, 2017
BVSTools >> BVSTools Software Discussion >> GreenTools for PayPal (G4PP) 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).