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

Re: Consume Webservice requiring JSON input



   Hej Henrik,
   Thank you very much for your valuable help. I got it working. I'm
   making the webservice myself.
   I wish you a nice weekend.
   Best regards
   Jan

   Am 12.08.2016 um 14:54 schrieb Henrik R�

   Hi Jan,
   something like this ...
   d jsonAddr �  �  �  � s �  �  �  �  �  �  �  * � �
   d jsonSize �  �  �  � s �  �  �  �  �  �  10u 0�
   yajl_genOpen(*on); �  �  �  �  �  �  �  � �
   �  yajl_beginObj(); �  �  �  �  �  �  �  � �
   �  �  yajl_addNum('number':'123456');
   �  �  yajl_addChar('name':'R�);�
   �  yajl_endObj(); �  �  �  �  �  �  �  �  � �
   yajl_getBuf(jsonAddr:jsonSize); �  �
   HTTP_debug(*on); �  �  �  �  �  �  �  �  �  �  �  �  �  �  �  �  �
   HTTP_SetCCSIDs(1208:1208); �  �  �  �  �  �  �  �  �  �  �  �
   HTTP_SetFileCCSID(1208); �  �  �  �  �  �  �  �  �  �  �  �  �
   url = '[1][1]http://127.0.0.1:8080/pextcd2lib/yajl.pgm';
   rc = http_url_post( url �  �  �  �  �  �  �  �  �
   �  �  �  �  �  �  �  �  �  : jsonAddr �  �  �  �  �  � �
   �  �  �  �  �  �  �  �  �  : jsonSize �  �  �  �  �  � �
   �  �  �  �  �  �  �  �  �  : tmpfile �  �  �  �  �  �  �
   �  �  �  �  �  �  �  �  �  : HTTP_TIMEOUT �  �  �  � �
   �  �  �  �  �  �  �  �  �  : HTTP_USERAGENT �  �  � �
   �  �  �  �  �  �  �  �  �  : 'application/json');�

   On Fri, Aug 12, 2016 at 2:16 PM, Jan Grove Vejlstrup [2]<[2]jgv@xxxxxxxx>
   wrote:

     �  � Hej Henrik
     �  � Thank you for mail. I know yajl allready and I'm able to create
     the
     �  � JSON. But I don't know how to user HTTPAPI to send the JSON to
     the
     �  � service.
     �  � Best regards
     �  � Jan
     �  � Am 12.08.2016 um 12:03 schrieb Henrik R�
     �  � Hi Jan
     �  � you use YAJL that can be dowloaded from Scotts Homepage
     �  � On Fri, Aug 12, 2016 at 11:46 AM, Jan Grove Vejlstrup
     [1][3]<[1][3]jgv@xxxxxxxx>
     �  � wrote:
     �  �  � Hello,
     �  �  � How do I use HTTPAPI to consume a webservice requiring the
     input to
     �  �  � the service to be delivered as a JSON?
     �  �  � Best regards
     �  �  � Jan
     �  �  � ------------------------------------------------------------
     �  �  � -----------
     �  �  � This is the FTPAPI mailing list.��  To unsubscribe, please
     go to:
     �  �  � [2][2][4][4]http://www.scottklement.com/mailman/listinfo/ftpapi
     �  �  � ------------------------------------------------------------
     �  �  � -----------
     �  � --
     �  � Regards,
     �  � Henrik R�     �  � �
     �  � [3][3][5][5]http://powerEXT.com
     �  � �
     References
     �  � 1. [4]mailto:[[6]6]jgv@xxxxxxxx
     �  � 2. [5][7][7]http://www.scottklement.com/mailman/listinfo/ftpapi
     �  � 3. [6][8][8]http://powerext.com/
     ------------------------------------------------------------
     -----------
     This is the FTPAPI mailing list.�  To unsubscribe, please go to:
     [7][9][9]http://www.scottklement.com/mailman/listinfo/ftpapi
     ------------------------------------------------------------
     -----------
     --
     Freundliche Gr�    Jan Grove Vejlstrup
     _______________________________________
     Jan Grove Vejlstrup
     WEMAG Consulting AG
     Bernstrasse 99, Postfach
     CH-3122 Kehrsatz
     Tel.:�  � [10]+41 31 960 36 36
     Fax:�  �  [11]+41 31 960 36 37
     Mail:�  � [8][[10]12]jgv@xxxxxxxx
     References
     �  � 1. mailto:[1][[11]13]jgv@xxxxxxxx
     �  � 2. [14][12]http://www.scottklement.com/mailman/listinfo/ftpapi
     �  � 3. [15][13]http://powerEXT.com/
     �  � 4. mailto:[[14]16]jgv@xxxxxxxx
     �  � 5. [17][15]http://www.scottklement.com/mailman/listinfo/ftpapi
     �  � 6. [18][16]http://powerext.com/
     �  � 7. [19][17]http://www.scottklement.com/mailman/listinfo/ftpapi
     �  � 8. mailto:[[18]20]jgv@xxxxxxxx
     ------------------------------------------------------------
     -----------
     This is the FTPAPI mailing list.�  To unsubscribe, please go to:
     [21][19]http://www.scottklement.com/mailman/listinfo/ftpapi
     ------------------------------------------------------------
     -----------

   --
   Regards,
   Henrik R�   �
   [22][20]http://powerEXT.com
   �

References

   1. [21]http://127.0.0.1:8080/pextcd2lib/yajl.pgm
   2. [22]mailto:jgv@xxxxxxxx
   3. [23]mailto:jgv@xxxxxxxx
   4. [24]http://www.scottklement.com/mailman/listinfo/ftpapi
   5. [25]http://powerEXT.com/
   6. [26]mailto:jgv@xxxxxxxx
   7. [27]http://www.scottklement.com/mailman/listinfo/ftpapi
   8. [28]http://powerext.com/
   9. [29]http://www.scottklement.com/mailman/listinfo/ftpapi
  10. tel:%2B41%2031%20960%2036%2036
  11. tel:%2B41%2031%20960%2036%2037
  12. [30]mailto:jgv@xxxxxxxx
  13. [31]mailto:jgv@xxxxxxxx
  14. [32]http://www.scottklement.com/mailman/listinfo/ftpapi
  15. [33]http://powerEXT.com/
  16. [34]mailto:jgv@xxxxxxxx
  17. [35]http://www.scottklement.com/mailman/listinfo/ftpapi
  18. [36]http://powerext.com/
  19. [37]http://www.scottklement.com/mailman/listinfo/ftpapi
  20. [38]mailto:jgv@xxxxxxxx
  21. [39]http://www.scottklement.com/mailman/listinfo/ftpapi
  22. [40]http://powerext.com/


-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
[41]http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

References

   1. http://127.0.0.1:8080/pextcd2lib/yajl.pgm
   2. mailto:[2]jgv@xxxxxxxx
   3. mailto:[1][3]jgv@xxxxxxxx
   4. http://www.scottklement.com/mailman/listinfo/ftpapi
   5. http://powerEXT.com/
   6. mailto:6]jgv@xxxxxxxx
   7. http://www.scottklement.com/mailman/listinfo/ftpapi
   8. http://powerext.com/
   9. http://www.scottklement.com/mailman/listinfo/ftpapi
  10. mailto:12]jgv@xxxxxxxx
  11. mailto:13]jgv@xxxxxxxx
  12. http://www.scottklement.com/mailman/listinfo/ftpapi
  13. http://powerEXT.com/
  14. mailto:16]jgv@xxxxxxxx
  15. http://www.scottklement.com/mailman/listinfo/ftpapi
  16. http://powerext.com/
  17. http://www.scottklement.com/mailman/listinfo/ftpapi
  18. mailto:20]jgv@xxxxxxxx
  19. http://www.scottklement.com/mailman/listinfo/ftpapi
  20. http://powerEXT.com/
  21. http://127.0.0.1:8080/pextcd2lib/yajl.pgm
  22. mailto:jgv@xxxxxxxx
  23. mailto:jgv@xxxxxxxx
  24. http://www.scottklement.com/mailman/listinfo/ftpapi
  25. http://powerEXT.com/
  26. mailto:jgv@xxxxxxxx
  27. http://www.scottklement.com/mailman/listinfo/ftpapi
  28. http://powerext.com/
  29. http://www.scottklement.com/mailman/listinfo/ftpapi
  30. mailto:jgv@xxxxxxxx
  31. mailto:jgv@xxxxxxxx
  32. http://www.scottklement.com/mailman/listinfo/ftpapi
  33. http://powerEXT.com/
  34. mailto:jgv@xxxxxxxx
  35. http://www.scottklement.com/mailman/listinfo/ftpapi
  36. http://powerext.com/
  37. http://www.scottklement.com/mailman/listinfo/ftpapi
  38. mailto:jgv@xxxxxxxx
  39. http://www.scottklement.com/mailman/listinfo/ftpapi
  40. http://powerext.com/
  41. 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
-----------------------------------------------------------------------