[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: XML Writer Service program



   Hi,
   because my project builds on the Ext JS WEB 2.0 Framework, I have had
   discussion with the Ext JS Team about license and has decided that I
   follow their dual license model.
   A GNU GPL v3 License
   This means open (and free) source as long as you comply to the
   licensing
   roules of GPL v3.
   In general that means that any individual or company can use this
   project
   for free as long as they don't build commercial frameworks, products
   or
   IT related services based on the software.
   Support will only be given in a Forum.
   A commercial license
   If you wish to make a commercial product (as an example a workflow
   system)
   you need a commercial license for each product sold, unless the
   customer
   already has that specific license (not an OEM license) or you got an
   OEM
   license agreement. The same goes for yourself, if you wish to make a
   cloud
   based service or system that you sell on the internet.
   Ext JS has a commercial one developer license priced at $329 ($579
   with
   silver support 1 year per. version) and my project will be priced
   based
   on the project it has to support starting at aprox. 500-1000 EURO pr.
   cpu.
   or aprox 3000 EURO for a 10 license OEM package, regardles of the CPU
   size.
   This license type is typical for ISV's or iSeries shops that want a
   garanteed
   higher degree of support.
   Support will be given either in the forum or on a mail basis or
   directly
   by purchase.
   I'm at the moment in the process of establishing a team with a couple
   of
   Ext JS specialist's to support the more specific Ext JS code.
   Regards
   Henrik

   <wouter.desaedeleer@xxxxxxxxxx>
   Sent by: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx

   16-07-2009 08:26

                             Please respond to
        HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>

                                                                       To

   <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>

                                                                       cc

                                                                  Subject

   RE: XML Writer Service program

   Hendrik,
   Will that Web 2.0 solution be opensource?
   Thanks.
   -----Original Message-----
   From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Nick
   Runnalls
   Sent: Thursday, July 16, 2009 3:30 AM
   To: 'HTTPAPI and FTPAPI Projects'
   Subject: RE: XML Writer Service program
   Hi Henrik
   I have tried this and got it working, I had problems with clrSrvPgm()
   Should
   this be clearSrvPgm, when I changed it I still issues with
   nbrVars = zhbgetinput(savedquerystring:qusec); in service program, and
   commented it out, what is the effect of this.
   Also XML browser did not like first few lines of output. i.e.
                   Content-type: text/xml
                   # This is a generated xml-file   (I replaced this with
    echo('<!This
   is a generated xml-file of Deliverys from AWH Pty'); )
   I also changed the codepage to 819 instead of 1208 as this seemed to
   cause
   issues.
   Sorry bit rusty in this area. Thaks for your help.
   Nick Runnalls
   -----Original Message-----
   From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
   hr@xxxxxxxxxxxx
   Sent: Wednesday, 8 July 2009 12:24 AM
   To: HTTPAPI and FTPAPI Projects
   Subject: Re: XML Writer Service program
   Hi,
   enclosed is a service program that does the trick;
   Sample code
   --------------------------------------------------------
   clrSrvPgm();
   // setGlobalTab(*off);   // compress the file
   // setGlonalNL(*off);    // by omitting Tab's and CRLF
   // if you wish to send it out over HTTP
   setContent('text/xml');
   echo('# This is a generated xml-file');
   echo('');
   xmlNode('xml');
    xmlNode('header':'custNumber='+%char(cust));
      xmlNode('name':'':cuname);                   // "Jon & Susan"
      xmlNode('adress':'':cuadrs);
      select;
        when country = 'dk';
          xmlNode('zip':'list=dk':%char(cuzip));
        when country = 'usa';
          xmlNode('zip':'list=us':%char(cuzip));
      endsl;
    xmlEndNode();
   xmlEndNode();
   select;
    when output = 'file';               // Output to File
      echoToStmf('/testxml.xml':1208);    // most XML converters likes
   UTF-8
    when output = 'http';               // Output to HTTP buffer
      echoFini();
   endsl;
   Result:
   ---------------------------------------------------------
   Content-type: text/xml
   # This is a generated xml-file
   <xml>
          <header custNumber=123456>
                  <name>Jon &#38; Susan</name>
                  <adress>Stampedammen</adress>
                  <zip list=dk>1234</zip>
          </header>
   </xml>
   This code is done by a CGIDEV2 service extension program that handles
   not
   only the single node's but also the tree, so there is no need to
   insert tabs
   or to remember parent nodes when
   ending them with xmlEndNode() and it eliminates spelling
   errors between start and end nodes.
   It also automatically handles the special character incoding
   of strings in the XML.
   And there is no need for CGIDEV2 templates wich does it far
   easier to include/exclude elements by just using inline tests.
   Note:
   The enclosed basic service program is part of a larger WEB 2.0 (ext
   JS)
   project that will be released later this year and it
   is build on top of a modified CGIDEV2 (Scott's CCSID support
   modification for Unicode CCSID).
   Regards
   Henrik
   Nicolas Machado <nicolas.machado@xxxxxxxxxxxxx>
   Sent by: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   06-07-2009 16:34
   Please respond to
   HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
   To
   HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
   cc
   Subject
   XML Writer Service program
   Hi,
   I'm starting a project that need to write xml files.
   I know that there is no mora "rocket science" that wrinting to a
   stream
   file in teh IFS.
   But I'm wondering is someone has developed something like:
     xml =  pCreateXmlObject();
      pWriteStartElement(xml : 'Invoice') ;
      pWriteTag(xml : 'InvNro' : $InvoiceNumber ) ;
      pWriteEndElement(xml)
   To for example create this xml
      <Invoice>
            <InvNr>some value</InvNr>
      </Invoice>
   If anyone has something , please let me know.
   --
   .::.
   Nicolas Machado
   Metodo Argentina S.A.
   _____________________
   Tel: 02262 527431
   Necochea, Buenos Aires.
   ----------------------------------------------------------------------
   -
   This is the FTPAPI mailing list.  To unsubscribe, please go to:
   http://www.scottklement.com/mailman/listinfo/ftpapi
   ----------------------------------------------------------------------
   -
   ----------------------------------------------------------------------
   -
   This is the FTPAPI mailing list.  To unsubscribe, please go to:
   http://www.scottklement.com/mailman/listinfo/ftpapi
   ----------------------------------------------------------------------
   -
   ===================================================
   Fortis Bank disclaimer :
   http://www.fortisbank.com/common/disclaimer.htm
   Fortis Bank privacy policy:
   http://www.fortisbank.com/common/privacy_policy.htm
   ===================================================
   ----------------------------------------------------------------------
   -
   This is the FTPAPI mailing list.  To unsubscribe, please go to:
   http://www.scottklement.com/mailman/listinfo/ftpapi
   ----------------------------------------------------------------------
   -
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------