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

Re: HTTPAPI and Json

   And please lets us not start a new never ending discussion about if
   special characters
   in XML or JSON has to be encoded/decoded.
   In practise (since JSON is JAVASCRIPT object notation) it does allows
   strings like 'Mc'donalds' but�   that has to be encoded 'Mc\'Donalds' or "My nick'name is "Olfert"" that
   has to be encoded "My name�   nick'name is \"Olfert\"" - encoding/decoding depends of the starting
   delimiter of the string.
   It also allows JSON node names to be quoted or not such as
   "customernumber" : 1234 or
   customernumber : 1234.
   And that is just simple processing of a node and its data where you
   have to simulate how
   javascript treats data - teoretical rules or not!
   On Fri, Sep 27, 2013 at 1:33 AM, Henrik Rützou <[1]hr@xxxxxxxxxxxx>

   you are quite right, passing JSON back is easy if you are extremely
   good at string handling and
   decoding since JSON comes in many flavors and is an hirachical data
   I don't know if Scott's implementation also includes reading of a JSON
   structures otherwise it is
   just an OO implementation of what already has already been done by
   others (Mihael Schmidt)�
   On Fri, Sep 27, 2013 at 1:04 AM, Mike Krebs
   <[2]mkrebs@xxxxxxxxxxxxxxxxxx> wrote:

     I don't read Spanish very well (si senor said like American Speedy
     Gonzales�so I can't make out what they are asking you to do but it
     is a POST of some kind. I don't think you need a web form but maybe
     because it looks like the web service is written for an interactive
     website update. If you use a web-like post then EXAMPLE4 not
     example2 (which release do you have installed?) is where you want to
     start. Otherwise, just send the JSON as the post data.
     Creating the required JSON looks pretty straight forward. It also
     looks like the return "codes" will be easy enough to parse but you
     might look for some help with that using powerEXT or YAJL which has
     been ported to IBMi ([3]http://www.scottklement.com/yajl/).

   -----Original Message-----
   From: [4]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   [mailto:[5]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Henrik
   Sent: Thursday, September 26, 2013 4:54 PM
   To: HTTPAPI and FTPAPI Projects
   Subject: Re: HTTPAPI and Json
   the services probably work as a JSON web service, and yous you can use
   for that.
   You can either concatinate the request in a field and send it like XML,
   problem is
   when you recieve JSON back.
   You can combine HTTPAPI and my powerEXT Core service program that has
   support for JSON
   On Thu, Sep 26, 2013 at 10:41 PM, Raul A. Jager W. <[6]raul@xxxxxxxxxx>
   > I need to comunicate with Bancard for credit card payment, they
   > a new sistem that uses json as protocol, and the manual requests a
   > whit the data in json format instead of the usual webform.
   > In the example2, the program builds a webform and sends it with
   > http_url_post.
   > Can I build the json in a char variable and send it the same way?
   > A full description of the expected protocol is in:


   > Here I copied a small part where it explains that we must POST the
   > later on it gives all the detial of the data to send with each

     > ______________________________**______________________________**
     > ______________________________**___________

   > Peticiones realizadas por el portal a VPOS
   > Las peticiones serán realizadas por POST a una interfaz REST
   > public_key Clave pública del portal. En el caso de la confirmación,
   la key
   > enviada es
   > también la del portal al cual se env�.
   > Datos de la operación que se va a llevar a cabo.
   > {
   > "public_key": "[public key]",
   > "operation": {
   > "token": "[generated token]",
   > ...
   > }
   > }

     > ------------------------------**------------------------------**

   > -----------
   > This is the FTPAPI mailing list. �To unsubscribe, please go to:

     > ------------------------------**------------------------------**

   > -----------
   Henrik Rützou

     �[11]http://powerEXT.com <[12]http://powerext.com/>

   This is the FTPAPI mailing list. �To unsubscribe, please go to:

   Henrik Rützou
   �   [14]http://powerEXT.com
   Henrik Rützou
   �   [15]http://powerEXT.com

   1. mailto:hr@xxxxxxxxxxxx
   2. mailto:mkrebs@xxxxxxxxxxxxxxxxxx
   3. http://www.scottklement.com/yajl/
   4. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   5. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   6. mailto:raul@xxxxxxxxxx
   7. https://www.bancard.com.py/**docs/Manual_Tecnico_E-**Commerce.pdf
   8. https://www.bancard.com.py/docs/Manual_Tecnico_E-Commerce.pdf
   9. http://www.scottklement.com/**mailman/listinfo/ftpapi
  10. http://www.scottklement.com/mailman/listinfo/ftpapi
  11. http://powerEXT.com/
  12. http://powerext.com/
  13. http://www.scottklement.com/mailman/listinfo/ftpapi
  14. http://powerext.com/
  15. http://powerext.com/
This is the FTPAPI mailing list.  To unsubscribe, please go to: