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

Re: HTTP API - two step communications.



   Or convert it to xml ....

   [1]http://216.109.205.54:8080/jsontest.xml

   On Tue, Oct 11, 2011 at 5:57 PM, <[2]thomas.raddatz@xxxxxx> wrote:

     � Try to call the service without the "_ts" parameter. The "_ts"
     � parameter might be a session id which expires after 30 minutes.
     When I
     � call the service with "_ts" it get the following error message:
     � "Your American FactFinder session has expired after 30 minutes
     of
     � inactivity.
     � But when I call it without that parameter, I get the following
     � response:

   � {"AllRecords":{ "SearchRecords":{"Results":
   � {
   � "rowsPerPageOptions":[25,50,75],
   � "sort":"",
   � "dir":"",
   � "callingurlparams":"",
   � "TotalNumRecsAvailable": 0,
   � "TotalResultsReturned":10,
   � "CurrentPage":1,
   � "NumPages":1,
   � "StartRecNum":"",
   � "EndingRecNum":"",
   � "DisplayProperties":"p_record_canonical_name:Geography
   � Name,p_geography_summary_level_name:Geography
   � Type,info:About,p_geography_summary_level_code:Geography Summary
   Level
   � Code,p_geography_summary_level_code:Geography Summary Level
   � Code,d_geography_year:Geographic
   � Vintage,d_geography_pseudo_geography_ind:Pseudo Geography
   � Indicator,p_geography_year_state:Geography Year State",
   � "GeoMessage":"",
   � "FipscodeSearchInterface":"",
   � "FipsclasscodeSearchInterface":"",
   � "AnsicodeSearchInterface":"",
   � "LsadcodeSearchInterface":"",
   � "GeoSearchInterface":"",
   � "BlockIndexVintageList":"",
   � "DefaultMatchMode":"",
   � "SelectedProductsInSession":"",
   � "ProductIncludeArchive":"",
   � "batchLimit":""
   � ,

     � "matchingAddress":"",
     � "selectedVintage":"2010",
     � "totalAddressRecords":"0",

   � "sort":"",
   � "dir":"",
   � "ResultSet":
   � [

     � ]
     � }
     � }
     � }}
     � A JASON object is a special container to pass data around.
     Mihael
     � Schmidt has a nice JSON service program that may help you to get
     the
     � details out of the JSON container:
     � [1][3]http://www.rpgnextgen.com/index.php?content=json
     � Thomas.
     � [4]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx schrieb am 11.10.2011
     17:29:22:
     � > Von: [5]dcmason@xxxxxxxxxxxx
     � > An: [6]ftpapi@xxxxxxxxxxxxxxxxxxxxxx
     � > Datum: 11.10.2011 17:38
     � > Betreff: RE: HTTP API - two step communications.
     � > Gesendet von: [7]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx

   � >
   � > Hi:
   � > I have tried the below URL, but it does not appear to work.
   � > What is a JSON object.
   � > Thanks!
   � >
   � > -----Original Message-----

   � > From: [8]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   [[2]mailto:[9]ftpapi-
   � > [10]bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Henrik Rützou
   � > Sent: Tuesday, October 11, 2011 10:32 AM
   � > To: HTTPAPI and FTPAPI Projects
   � > Subject: Re: HTTP API - two step communications.
   � >
   � > The link to the service you are looking for is:
   � >

     � >
     [3][11]http://factfinder2.census.gov/rest/addressSearch/search?

   � > street=aaa&city=vvv&state=Alaska&&_ts=336389236520
   � >
   � > and it will return a JSON object
   � >
   � > On Tue, Oct 11, 2011 at 1:59 PM, Chuck Mason
   <[12]dcmason@xxxxxxxxxxxx>
   � wrote:
   � >
   � > >

     � > > � [[4]cid:image001.gif@01CC87EB.78682FE0]

   � > >
   � > > � Hi Scott:
   � > >
   � > > � I have used your HTTP API utility at several clients of mine
   -
   � works
   � > > � great.
   � > >
   � > >
   � > > � I have run into a website that has me stumped.
   � > >
   � > > � This is for a local taxing authority that needs to find the
   � school
   � > > � district that an address resides in.
   � > >
   � > > � I had written an interface for this (Their old web site
   would
   � display
   � > > � a form, I would create a URL with the form fields and do a
   � submit).
   � > >
   � > > � Their new web site opens up two windows. �The second window
   � appears to
   � > > � run from javascript.
   � > >
   � > >
   � > > � My questions is, within RPGLE, Can I send a URL request,
   wait
   � for the
   � > > � response, then fill in the information and submit. �After
   this
   � submit,
   � > > � the web page displays the information that I am looking for.
   � > >
   � > >
   � > > � The url that I am having problems with is:
   � > >
   � > >

     �     [1][5][13]http://factfinder2.census.gov/faces/nav/jsf/pages/searchr
     esults.

   � xht
   � > > � ml?ref=addr&refresh=t
   � > >
   � > >
   � > > � Fill in the street and zip or all, then submit the "GO"
   button.
   � > >
   � > >
   � > > � Thanks
   � > >
   � > > � Chuck Mason.
   � > >
   � > > References
   � > >
   � > > � 1.
   � > >

     �     [6][14]http://factfinder2.census.gov/faces/nav/jsf/pages/searchresu
     lts.xht

   � ml?
   � > > ref=addr&refresh=t
   � > >
   � > >
   �   ----------------------------------------------------------------------
   � > > - This is the FTPAPI mailing list. �To unsubscribe, please go
   to:

     � > > [7][15]http://www.scottklement.com/mailman/listinfo/ftpapi

   � > >
   �   ----------------------------------------------------------------------
   � > > -
   � > >
   � > >
   � >
   � >
   � > --
   � > Regards,
   � > Henrik Rützou
   � >

     � > �[8][16]http://powerEXT.com <[9][17]http://powerext.com/>

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

     � > [10][18]http://www.scottklement.com/mailman/listinfo/ftpapi
     � >
     �     -------------------------------------------------------------------
     ---
     � -
     � --
     � IMPORTANT NOTICE:
     � This email is confidential, may be legally privileged, and is
     for the
     � intended recipient only. Access, disclosure, copying,
     distribution, or
     � reliance on any of it by anyone else is prohibited and may be a
     � criminal
     � offence. Please delete if obtained in error and email
     confirmation to
     � the sender.
     References
     � 1. [19]http://www.rpgnextgen.com/index.php?content=json
     � 2. mailto:[20]ftpapi-
     � 3. [21]http://factfinder2.census.gov/rest/addressSearch/search?
     � 4. cid:image001.gif@01CC87EB.78682FE0
     � 5.
     [22]http://factfinder2.census.gov/faces/nav/jsf/pages/searchresults
     .xht
     � 6.
     [23]http://factfinder2.census.gov/faces/nav/jsf/pages/searchresults
     .xhtml?
     � 7. [24]http://www.scottklement.com/mailman/listinfo/ftpapi
     � 8. [25]http://powerext.com/
     � 9. [26]http://powerext.com/
     �10. [27]http://www.scottklement.com/mailman/listinfo/ftpapi
     -------------------------------------------------------------------
     ----
     This is the FTPAPI mailing list. �To unsubscribe, please go to:
     [28]http://www.scottklement.com/mailman/listinfo/ftpapi
     -------------------------------------------------------------------
     ----

   --
   Regards,
   Henrik Rützou
   �   [29]http://powerEXT.com
   �   [plogofull200.png]

References

   1. http://216.109.205.54:8080/jsontest.xml
   2. mailto:thomas.raddatz@xxxxxx
   3. http://www.rpgnextgen.com/index.php?content=json
   4. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   5. mailto:dcmason@xxxxxxxxxxxx
   6. mailto:ftpapi@xxxxxxxxxxxxxxxxxxxxxx
   7. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   8. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   9. mailto:ftpapi-
  10. mailto:bounces@xxxxxxxxxxxxxxxxxxxxxx
  11. http://factfinder2.census.gov/rest/addressSearch/search
  12. mailto:dcmason@xxxxxxxxxxxx
  13. http://factfinder2.census.gov/faces/nav/jsf/pages/searchresults
  14. http://factfinder2.census.gov/faces/nav/jsf/pages/searchresults.xht
  15. http://www.scottklement.com/mailman/listinfo/ftpapi
  16. http://powerEXT.com/
  17. http://powerext.com/
  18. http://www.scottklement.com/mailman/listinfo/ftpapi
  19. http://www.rpgnextgen.com/index.php?content=json
  20. mailto:ftpapi-
  21. http://factfinder2.census.gov/rest/addressSearch/search
  22. http://factfinder2.census.gov/faces/nav/jsf/pages/searchresults.xht
  23. http://factfinder2.census.gov/faces/nav/jsf/pages/searchresults.xhtml
  24. http://www.scottklement.com/mailman/listinfo/ftpapi
  25. http://powerext.com/
  26. http://powerext.com/
  27. http://www.scottklement.com/mailman/listinfo/ftpapi
  28. http://www.scottklement.com/mailman/listinfo/ftpapi
  29. http://powerext.com/
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------