[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HTTP API - two step communications.
Here is the program:
clearSrvPgm(); � � � � � � � � � �� setContent('*none'); � � � � � � �� � � � � � � � � � � � � � � � � � � xmlFromStmf('/jsonTest.json'); � �� jsonToXml(xmlAddr:xmlSize); � � � � echoToStmf('/jsonTest.xml':1208); � � � � � � � � � � � � � � � � � � � *inlr = *on; � � � � � � � � � � �� On Tue, Oct 11, 2011 at 6:21 PM, Henrik Rützou <[1]hr@xxxxxxxxxxxx>
wrote:
Or convert it to xml ....
[2]http://216.109.205.54:8080/jsontest.xml
On Tue, Oct 11, 2011 at 5:57 PM, <[3]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][4]http://www.rpgnextgen.com/index.php?content=json
� Thomas.
� [5]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx schrieb am 11.10.2011
17:29:22:
� > Von: [6]dcmason@xxxxxxxxxxxx
� > An: [7]ftpapi@xxxxxxxxxxxxxxxxxxxxxx
� > Datum: 11.10.2011 17:38
� > Betreff: RE: HTTP API - two step communications.
� > Gesendet von: [8]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: [9]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[[2]mailto:[10]ftpapi-
� > [11]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][12]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
<[13]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][14]http://factfinder2.census.gov/faces/nav/jsf/pages/searchresu
lts.
� 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][15]http://factfinder2.census.gov/faces/nav/jsf/pages/searchresults
.xht
� ml?
� > > ref=addr&refresh=t
� > >
� > >
� ----------------------------------------------------------------------
� > > - This is the FTPAPI mailing list. �To unsubscribe, please go
to:
� > > [7][16]http://www.scottklement.com/mailman/listinfo/ftpapi
� > >
� ----------------------------------------------------------------------
� > > -
� > >
� > >
� >
� >
� > --
� > Regards,
� > Henrik Rützou
� >
� > �[8][17]http://powerEXT.com <[9][18]http://powerext.com/>
� >
� >
� ----------------------------------------------------------------------
� -
� > This is the FTPAPI mailing list. �To unsubscribe, please go to:
� > [10][19]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. [20]http://www.rpgnextgen.com/index.php?content=json
� 2. mailto:[21]ftpapi-
� 3. [22]http://factfinder2.census.gov/rest/addressSearch/search?
� 4. cid:image001.gif@01CC87EB.78682FE0
� 5.
[23]http://factfinder2.census.gov/faces/nav/jsf/pages/searchresults.xh
t
� 6.
[24]http://factfinder2.census.gov/faces/nav/jsf/pages/searchresults.xh
tml?
� 7. [25]http://www.scottklement.com/mailman/listinfo/ftpapi
� 8. [26]http://powerext.com/
� 9. [27]http://powerext.com/
�10. [28]http://www.scottklement.com/mailman/listinfo/ftpapi
-------------------------------------------------------------------
----
This is the FTPAPI mailing list. �To unsubscribe, please go to:
[29]http://www.scottklement.com/mailman/listinfo/ftpapi
-------------------------------------------------------------------
----
--
Regards,
Henrik Rützou
� [30]http://powerEXT.com
� [plogofull200.png]
--
Regards,
Henrik Rützou
� [31]http://powerEXT.com
� [plogofull200.png]
References
1. mailto:hr@xxxxxxxxxxxx
2. http://216.109.205.54:8080/jsontest.xml
3. mailto:thomas.raddatz@xxxxxx
4. http://www.rpgnextgen.com/index.php?content=json
5. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
6. mailto:dcmason@xxxxxxxxxxxx
7. mailto:ftpapi@xxxxxxxxxxxxxxxxxxxxxx
8. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
9. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
10. mailto:ftpapi-
11. mailto:bounces@xxxxxxxxxxxxxxxxxxxxxx
12. http://factfinder2.census.gov/rest/addressSearch/search
13. mailto:dcmason@xxxxxxxxxxxx
14. http://factfinder2.census.gov/faces/nav/jsf/pages/searchresults
15. http://factfinder2.census.gov/faces/nav/jsf/pages/searchresults.xht
16. http://www.scottklement.com/mailman/listinfo/ftpapi
17. http://powerEXT.com/
18. http://powerext.com/
19. http://www.scottklement.com/mailman/listinfo/ftpapi
20. http://www.rpgnextgen.com/index.php?content=json
21. mailto:ftpapi-
22. http://factfinder2.census.gov/rest/addressSearch/search
23. http://factfinder2.census.gov/faces/nav/jsf/pages/searchresults.xht
24. http://factfinder2.census.gov/faces/nav/jsf/pages/searchresults.xhtml
25. http://www.scottklement.com/mailman/listinfo/ftpapi
26. http://powerext.com/
27. http://powerext.com/
28. http://www.scottklement.com/mailman/listinfo/ftpapi
29. http://www.scottklement.com/mailman/listinfo/ftpapi
30. http://powerext.com/
31. http://powerext.com/
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------