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

Re: Consume Webservice requiring JSON input



   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ützou');�   � yajl_endObj(); � � � � � � � � ��   yajl_getBuf(jsonAddr:jsonSize); � �   HTTP_debug(*on); � � � � � � � � � � � � � � � � �   HTTP_SetCCSIDs(1208:1208); � � � � � � � � � � � �   HTTP_SetFileCCSID(1208); � � � � � � � � � � � � �   url = '[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]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ützou:
     � �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]<[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]http://www.scottklement.com/mailman/listinfo/ftpapi
     � � �------------------------------------------------------------
     � � �-----------
     � �--
     � �Regards,
     � �Henrik Rützou
     � �½
     � �[3][3][5]http://powerEXT.com
     � �½
     References
     � �1. [4]mailto:[6]jgv@xxxxxxxx
     � �2. [5][7]http://www.scottklement.com/mailman/listinfo/ftpapi
     � �3. [6][8]http://powerext.com/
     ------------------------------------------------------------
     -----------
     This is the FTPAPI mailing list.� To unsubscribe, please go to:
     [7][9]http://www.scottklement.com/mailman/listinfo/ftpapi
     ------------------------------------------------------------
     -----------
     --
     Freundliche Grüsse
     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][12]jgv@xxxxxxxx
     References
     � �1. mailto:[1][13]jgv@xxxxxxxx
     � �2. [14]http://www.scottklement.com/mailman/listinfo/ftpapi
     � �3. [15]http://powerEXT.com/
     � �4. mailto:[16]jgv@xxxxxxxx
     � �5. [17]http://www.scottklement.com/mailman/listinfo/ftpapi
     � �6. [18]http://powerext.com/
     � �7. [19]http://www.scottklement.com/mailman/listinfo/ftpapi
     � �8. mailto:[20]jgv@xxxxxxxx
     ------------------------------------------------------------
     -----------
     This is the FTPAPI mailing list.� To unsubscribe, please go to:
     [21]http://www.scottklement.com/mailman/listinfo/ftpapi
     ------------------------------------------------------------
     -----------

   --
   Regards,
   Henrik Rützou
   �   [22]http://powerEXT.com
   �
References

   1. http://127.0.0.1:8080/pextcd2lib/yajl.pgm
   2. mailto:jgv@xxxxxxxx
   3. mailto:jgv@xxxxxxxx
   4. http://www.scottklement.com/mailman/listinfo/ftpapi
   5. http://powerEXT.com/
   6. mailto:jgv@xxxxxxxx
   7. http://www.scottklement.com/mailman/listinfo/ftpapi
   8. http://powerext.com/
   9. http://www.scottklement.com/mailman/listinfo/ftpapi
  10. tel:%2B41%2031%20960%2036%2036
  11. tel:%2B41%2031%20960%2036%2037
  12. mailto:jgv@xxxxxxxx
  13. mailto:jgv@xxxxxxxx
  14. http://www.scottklement.com/mailman/listinfo/ftpapi
  15. http://powerEXT.com/
  16. mailto:jgv@xxxxxxxx
  17. http://www.scottklement.com/mailman/listinfo/ftpapi
  18. http://powerext.com/
  19. http://www.scottklement.com/mailman/listinfo/ftpapi
  20. mailto:jgv@xxxxxxxx
  21. http://www.scottklement.com/mailman/listinfo/ftpapi
  22. http://powerext.com/
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------