Re: [U2] I'm in an Array quandry, any suggestions...
I was told once that was the case in rel 8, but that is unverified. I wonder if there is some way we could write a test to check that out? -- Regards, Clif On May 17, 2005, at 10:18 PM, [EMAIL PROTECTED] wrote: And then I would wonder if the code is optimized to actually try to determine whether it would be faster to scan backward from present, or forward from cell 1 ... --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Dymanic vs Dimensioned
Responding to what you perceive as an ad hominem attack with an ad hominem attack. How the mighty (arrogant) have fallen On May 17, 2005, at 10:14 PM, [EMAIL PROTECTED] wrote: Well it's nice to see that when you are wrong, instead of discussing the logic of the problem you resort to slanderous name-calling, how pleasant. Perhaps you did learn something from your daughter. Will --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Questions about addRequestParameter
Brian, John received your reply and that is when I saw it, after seeing his reply. (I think hotmail is hiding some things from me!) I would like to see what you said about callSOAP Thanks, R. Bruce Lunt From: "John Kent" <[EMAIL PROTECTED]> Reply-To: u2-users@listserver.u2ug.org To: Subject: Re: [U2] Questions about addRequestParameter Date: Wed, 18 May 2005 08:08:06 +0930 Brian, i would like a copy of that to if you can dig it up. jak - Original Message - From: "Brian Leach" <[EMAIL PROTECTED]> To: Sent: Tuesday, May 17, 2005 8:13 PM Subject: RE: [U2] Questions about addRequestParameter Bruce, Am I right in thinking that you are consuming a web service here? You say the response is in XML. If so, check out whether your version of UniData supports the newer SOAP calling (SOAPCreateRequest etc) routines (I only have UniVerse here so I can't check). These might be more simple/appropriate to use. If you are accessing a web service, callHTTP is for HTTP requests, similar to an HTML form post. It does not send XML. If you are not, ignore the rest of this! I had some problems with encoding when I tried to use callHTTP with some services and in the end found it easier to just roll a very simple socket based routine to send and strip out the required data from the SOAP packets (this was before callSOAP was added). I wrote a short article on how to do this for the U2UG with a simple example: if you like I can dig it out and send it you off-list. Brian --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Questions about addRequestParameter
Thanks, Wendy. I used that CallHTTP code for my starter kit. I just couldn't get it to work right until the web-service gave me a different url. Now, its all looking rosy. Regards, R. Bruce Lunt From: Wendy Smoak <[EMAIL PROTECTED]> Reply-To: u2-users@listserver.u2ug.org To: u2-users@listserver.u2ug.org Subject: RE: [U2] Questions about addRequestParameter Date: Tue, 17 May 2005 08:22:11 -0700 Bruce Lunt wrote: > I have been investigating using callhttp to send addresses to > the web for > address verification and the documentation is leaving me a little > unfulfilled. There are some examples on the Wiki: http://www.pickwiki.com/cgi-bin/wiki.pl?CallHTTP and http://www.pickwiki.com/cgi-bin/wiki.pl?CallHTTPWithSSL -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University, PA, IRM --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Questions about addRequestParameter
Thanks, David. I did finally get it to work, after changing the url address. I was geeting a 0 response to my requests but it wasn't giving me what I was asking for. It turns out that something along the way was changing the url from ws. to www. and that put me in the wrong camp, but the right service. Everything is working great, now. Thanks again, R. Bruce Lunt From: David Tod Sigafoos <[EMAIL PROTECTED]> Reply-To: u2-users@listserver.u2ug.org To: Bruce Lunt Subject: Re: [U2] Questions about addRequestParameter Date: Mon, 16 May 2005 20:54:37 -0700 Bruce, i recently used callHttp to generate 'Customs Form' through the USPS. You are basically right in your understanding. It is very quick as long as you have a good connection .. we were getting forms back in PDF format (6 pages) in approx 2-4 seconds after submit. For your address you should be able to get response quicker. so .. rtn = createRequest(.) will return 0 if there was no error. This builds the handle that all the other requests use. Not sure what you want to 'see' with the handle. give it a try .. think you will like the results. DTsig Monday, May 16, 2005, 3:19:20 PM, you wrote: BL> Hi All Esteemed Ones, BL> I have been investigating using callhttp to send addresses to the web for BL> address verification and the documentation is leaving me a little BL> unfulfilled. BL> If I am understanding things correctly, I first do: BL> createRequest(URL, http_method, request_handle) BL> Then, I would add the address fields one by one to this by issuing: BL> addRequestParameter(request_handle, parameter_name, parameter_value, BL> content_handling) BL> for as many fields as I have to validate. BL> Finally, I would do: BL> submitRequest(request_handle, time_out, post_data, response_headers, BL> response_data, http_status). The response_headers and response_data vars BL> would have my reply. In this case it is XML. BL> I am assuming that the request_handle is used by all three processes but I BL> cannot see what is being done with it. I don't know whether it is correct or BL> not. BL> And finally, can anyone tell me if this is even worth pursuing? Is it fast BL> enough to use with data-entry? Or should I be looking into another method? BL> Thanks, BL> R. Bruce Lunt BL> HP/UX v. 11 BL> Unidata v. 6.0 BL> --- BL> u2-users mailing list BL> u2-users@listserver.u2ug.org BL> To unsubscribe please visit http://listserver.u2ug.org/ BL> __ NOD32 1.1099 (20050516) Information __ BL> This message was checked by NOD32 antivirus system. BL> http://www.nod32.com -- DSig ` David Tod Sigafoos ( O O ) ___oOOo__( )__oOOo___ Cannot open file "C:\DOCUMENTS AND SETTINGS\DAVID TOD SIGAFOOS\APPLICATION DATA\BATMAIL\COOKIES.TXT" --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] I'm in an Array quandry, any suggestions...
In a message dated 5/17/2005 7:47:46 PM Pacific Daylight Time, [EMAIL PROTECTED] writes: > es, Will. There are two variables. The descriptor definition found in > $UVHOME/gcidir/include/DATUM.h states: > > structDstring > { /* This are my comments. GI */ >STRING str; /* This is the entire dynamic array. */ >int lastfield; /* This is the last field accessed. */ >uchar *lastfptr; /* This is a pointer into str.text */ Thanks Gyle for that information. So it seems like then it might be just as fast to also step *backward* through an array ? I suppose that would depend on whether there is also an opcode for "scan backward to delimited" like there is for "scan forward to delimiter". And then I would wonder if the code is optimized to actually try to determine whether it would be faster to scan backward from present, or forward from cell 1 ... And then by that time, system programmers would be saying "Why can't they just all use dimensioned arrays dammit" :) I suppose. Will --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Dymanic vs Dimensioned
Well it's nice to see that when you are wrong, instead of discussing the logic of the problem you resort to slanderous name-calling, how pleasant. Perhaps you did learn something from your daughter. Will In a message dated 5/17/2005 6:10:31 PM Pacific Daylight Time, [EMAIL PROTECTED] writes: > I have a six year old girl who hates it when anyone else is right about > anything. I was showing her how to unlock the garage door last week, and she > > said, "that's not how you do it". Then she jiggled the key & then did > exactly what I had showed her. > > I have hope that she'll learn as she grows up. > > Good luck, Will. I'm going back to my practice of ignoring you again. I have > > enough six-year olds in my life at the moment. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] I'm in an Array quandry, any suggestions...
Will Johnson postulated: >This would imply that not only would the run-time engine have >to maintain a pointer to the last cell referenced, but also >it would have to maintain a register telling it the cell >number of this cell (not just its offset). So it needs two >variables. I've never heard that it actually uses two >variables to accomplish this. Yes, Will. There are two variables. The descriptor definition found in $UVHOME/gcidir/include/DATUM.h states: struct Dstring { /* This are my comments. GI */ STRING str; /* This is the entire dynamic array. */ int lastfield; /* This is the last field accessed. */ uchar *lastfptr; /* This is a pointer into str.text */ /* where the last field field accessed */ /* begins. */ }; Best regards, Gyle --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Unidata SELECT
--- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Unidata SELECT
Hi Roger, Non of the dictionaries are indexed and I can select the data. File is not corrupted. Fawaz --- Roger Glenfield <[EMAIL PROTECTED]> wrote: > Fawaz Ashraff wrote: > > >Hi All, > > > >We have a program that used to work but is now not > >functioning. The problems is if you have an active > >select list and you try to run the following > >statements > > > >GET.LIST CL.BCS.MAYBE this has 139 records > > > >SELECT STUDENTS WITH X.STU.BCS.REG.FLAG LIKE 'N...' > > > >This statement will return either No results or > only 1 > >result > > > >But if you change the SELECT to a LIST then 3 lines > >will be returned. > > > >Also if you change the SELECT to an SSELECT then 3 > >lines will be returned. > > > >What it looks like is happening is another select > >statement is clearing out the orginal select > statement > >and only returning the results of the last record > in > >the orginal 139 records. > > > >X.STU.BCS.REG.FLAG is a I desriptor in STUDENTS > that > >calls the following subroutine > > > >XS.CALC.ACTIVE.BCS.TO.REG and this subroutine calls > >another SUBROUTINE XS.CALC.REG.TERM. > > > >Anybody have any ideas? Any UDT.OPTIONS I should > work > >with? > > > > > Have you checked that those 3 listed records are in > the save.list? > > 1) get.list the list > 2) select the file. With no With or By options. > just confirm that the > items on the list are in the file. > > And you've confirmed that the file isn't corrupted, > right? > > And are any of the dictionaries indexed? > > Roger > --- > u2-users mailing list > u2-users@listserver.u2ug.org > To unsubscribe please visit > http://listserver.u2ug.org/ > __ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Unidata SELECT
Fawaz Ashraff wrote: Hi All, We have a program that used to work but is now not functioning. The problems is if you have an active select list and you try to run the following statements GET.LIST CL.BCS.MAYBE this has 139 records SELECT STUDENTS WITH X.STU.BCS.REG.FLAG LIKE 'N...' This statement will return either No results or only 1 result But if you change the SELECT to a LIST then 3 lines will be returned. Also if you change the SELECT to an SSELECT then 3 lines will be returned. What it looks like is happening is another select statement is clearing out the orginal select statement and only returning the results of the last record in the orginal 139 records. X.STU.BCS.REG.FLAG is a I desriptor in STUDENTS that calls the following subroutine XS.CALC.ACTIVE.BCS.TO.REG and this subroutine calls another SUBROUTINE XS.CALC.REG.TERM. Anybody have any ideas? Any UDT.OPTIONS I should work with? Have you checked that those 3 listed records are in the save.list? 1) get.list the list 2) select the file. With no With or By options. just confirm that the items on the list are in the file. And you've confirmed that the file isn't corrupted, right? And are any of the dictionaries indexed? Roger --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Questions about addRequestParameter
Brian, i would like a copy of that to if you can dig it up. jak - Original Message - From: "Brian Leach" <[EMAIL PROTECTED]> To: Sent: Tuesday, May 17, 2005 8:13 PM Subject: RE: [U2] Questions about addRequestParameter Bruce, Am I right in thinking that you are consuming a web service here? You say the response is in XML. If so, check out whether your version of UniData supports the newer SOAP calling (SOAPCreateRequest etc) routines (I only have UniVerse here so I can't check). These might be more simple/appropriate to use. If you are accessing a web service, callHTTP is for HTTP requests, similar to an HTML form post. It does not send XML. If you are not, ignore the rest of this! I had some problems with encoding when I tried to use callHTTP with some services and in the end found it easier to just roll a very simple socket based routine to send and strip out the required data from the SOAP packets (this was before callSOAP was added). I wrote a short article on how to do this for the U2UG with a simple example: if you like I can dig it out and send it you off-list. Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bruce Lunt Sent: 16 May 2005 23:19 To: u2-users@listserver.u2ug.org Subject: [U2] Questions about addRequestParameter Hi All Esteemed Ones, I have been investigating using callhttp to send addresses to the web for address verification and the documentation is leaving me a little unfulfilled. If I am understanding things correctly, I first do: createRequest(URL, http_method, request_handle) Then, I would add the address fields one by one to this by issuing: addRequestParameter(request_handle, parameter_name, parameter_value, content_handling) for as many fields as I have to validate. Finally, I would do: submitRequest(request_handle, time_out, post_data, response_headers, response_data, http_status). The response_headers and response_data vars would have my reply. In this case it is XML. I am assuming that the request_handle is used by all three processes but I cannot see what is being done with it. I don't know whether it is correct or not. And finally, can anyone tell me if this is even worth pursuing? Is it fast enough to use with data-entry? Or should I be looking into another method? Thanks, R. Bruce Lunt HP/UX v. 11 Unidata v. 6.0 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Dymanic vs Dimensioned
You implied that the difference isn't what it used to be. This is not true. It's only not what it used to be in certain situations. In other situations, it is exactly what it used to be. Sigh. I have a six year old girl who hates it when anyone else is right about anything. I was showing her how to unlock the garage door last week, and she said, "that's not how you do it". Then she jiggled the key & then did exactly what I had showed her. I have hope that she'll learn as she grows up. Good luck, Will. I'm going back to my practice of ignoring you again. I have enough six-year olds in my life at the moment. I have hope that I'll learn to stick to that as I grow up. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] I'm in an Array quandary, any suggestions...
Ken, Thanks for the suggestion, but that would require changing programs that we had no intention of changing. Further making such changes is much larger than can fit within the scope of the current enhancement project. A global system switch that effected just this one behavior would have been nice, but guess it is not to be. Honestly, I didn't hold out much hope, but it was worth a shot. Rich Taylor | Senior Programmer/Analyst| VERTIS 250 W. Pratt Street | Baltimore, MD 21201 P 410.361.8688 | F 410.528.0319 [EMAIL PROTECTED] | http://www.vertisinc.com Vertis is the premier provider of targeted advertising, media, and marketing services that drive consumers to marketers more effectively. "The more they complicate the plumbing the easier it is to stop up the drain" - Montgomery Scott NCC-1701 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ken Wallis Sent: Friday, May 13, 2005 11:01 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] I'm in an Array quandary, any suggestions... > REC(0) references a dimensioned array and, apparently, in UV holds all > fields that could not fit into the dimension of the array. > UniData does > not work this way, it puts it into the last dimension of the > array which > could result in data loss if you change that array position. We have > confirmed this on our system as we are faced with the same problem. > -- > Here is a question to the group. Is this a behaviour in UD that can be > changed in a configuration setting? Again, as with UV, UD is emulation dependant on this. Basictype 'u' and 'm' use element (0,0) IIRC, while 'p' and 'r' put the data at the end, or simply truncate it - I can't remember. If for some reason you need to operate your account with BASICTYPE 'p', then you can always drop a 'BASICTYPE "u"' statement into the top of a program you want to behave sensibly. HTH, Ken --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] I'm in an Array quandry, any suggestions...
In a message dated 5/16/2005 5:00:45 AM Pacific Daylight Time, [EMAIL PROTECTED] writes: > > Yes. But it only works when stepping through an array in a READNEXT > > fashion. So if you're accessing fields in random order (as a lot of my > > code does) you gain nothing. > > > No it does work even when you access the dynamic array in random order. > It then > provides an alternative starting point for the search to use instead of > character 1. > I'm not sure this is accurate. This would imply that not only would the run-time engine have to maintain a pointer to the last cell referenced, but also it would have to maintain a register telling it the cell number of this cell (not just its offset). So it needs two variables. I've never heard that it actually uses two variables to accomplish this. Perhaps someone in the internals could answer that question. So again, it would need one variable to tell it the offset (example: my last reference ended at character 96 of the string ... or position 2345 of the frame, or something of that sort); AND another variable to tell it the cell number (example: my last reference was to cell number 4). Otherwise, random access into a dynamic array would not be improved by the method talked about in this thread. Will Johnson --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Questions about addRequestParameter
Bruce Lunt wrote: > I have been investigating using callhttp to send addresses to > the web for > address verification and the documentation is leaving me a little > unfulfilled. There are some examples on the Wiki: http://www.pickwiki.com/cgi-bin/wiki.pl?CallHTTP and http://www.pickwiki.com/cgi-bin/wiki.pl?CallHTTPWithSSL -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University, PA, IRM --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] I'm in an Array quandry, any suggestions...
Larry, Well, if you have to work in dimensioned arrays that would be the way to do it. Unfortunately, the code base I am working off of took this idea and completely messed it up. It is to the point that the dictionaries can not be trusted to truly represent the data. We are spending a great deal of time just dealing with this. As to the original topic, I will still stand by my earlier remarks, but I will qualify it by saying that performance (in ANY system) has a lot to do with how the system is designed in the first place. The code base that I came from previously was also of late 80s vintage and we did not see any benefit in moving to dimensioned arrays. I think that the difference is that we had records of a fairly manageable field count, but we used lots of value and even sub-value marked data. Dimensioned arrays don't really help you too much with that. We also sold systems based on the flexibility of the database and dimensioned arrays, even with tools like you describe, does lessen that flexibility (IMHO) Rich Taylor | Senior Programmer/Analyst| VERTIS 250 W. Pratt Street | Baltimore, MD 21201 P 410.361.8688 | F 410.528.0319 [EMAIL PROTECTED] | http://www.vertisinc.com Vertis is the premier provider of targeted advertising, media, and marketing services that drive consumers to marketers more effectively. "The more they complicate the plumbing the easier it is to stop up the drain" - Montgomery Scott NCC-1701 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Larry Hiscock Sent: Friday, May 13, 2005 5:57 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] I'm in an Array quandry, any suggestions... Richard Taylor wrote: >> Certainly not enough to justify throwing away one of the >> best features of the Pick database, or having to code >> work-arounds to deal with the short-comings of dimensioned >> arrays. I'm maintaining a system that was originally developed on Prime Information in the mid-80's, when performance between dimensioned and dynamic arrays WAS an issue. It uses dimensioned arrays and matread/matwrite, but the way it was designed, none of the "short-comings" you mention are really an issue. Every file in the system has an abbreviated name. For example, the abbreviation for the customer master file (CUST.MST) is CM. There is a utility program that selects every 'D' item from the dictionary, and builds an $INCLUDE file for all or selected files, named "DIM.(filename)" (eg DIM.CUST.MST). This DIM.xx file is included in every program that needs to access the customer master file, and includes the following statements: DIM D.CM(X) ; MAT D.CM = '';* Where X = number of fields in the file EQU CM.CUST.NAME TO D.CM(1) ... And so forth for every field in the file NOWHERE in any of the code is the customer name referenced as D.CM(1) or CM<1> or anything similar. It is ALWAYS referenced as CM.CUST.NAME. Sub-valued fields are refenced as CM.ADDR<1,x>, for example. As new fields are added to the file, the inserts are re-created. Because "extra" fields are stored as a dynamic array in D.CM(0), programs that don't use the new fields don't need to be recompiled. Yes, I realize that the same thing can be accomplished with dynamic arrays (ie EQU CM.CUST.NAME TO CM<1>), but as I mentioned in the beginning of this post, this software was originally written back when there WAS a performance difference between using dimensioned vs dynamic arrays ... At least that's what the conventional wisdom told us at the time. Larry Hiscock Western Computer Services --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[U2] Unidata SELECT
Hi All, We have a program that used to work but is now not functioning. The problems is if you have an active select list and you try to run the following statements GET.LIST CL.BCS.MAYBE this has 139 records SELECT STUDENTS WITH X.STU.BCS.REG.FLAG LIKE 'N...' This statement will return either No results or only 1 result But if you change the SELECT to a LIST then 3 lines will be returned. Also if you change the SELECT to an SSELECT then 3 lines will be returned. What it looks like is happening is another select statement is clearing out the orginal select statement and only returning the results of the last record in the orginal 139 records. X.STU.BCS.REG.FLAG is a I desriptor in STUDENTS that calls the following subroutine XS.CALC.ACTIVE.BCS.TO.REG and this subroutine calls another SUBROUTINE XS.CALC.REG.TERM. Anybody have any ideas? Any UDT.OPTIONS I should work with? Thank you in advance. Cheers Fawaz __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Questions about addRequestParameter
Bruce, Am I right in thinking that you are consuming a web service here? You say the response is in XML. If so, check out whether your version of UniData supports the newer SOAP calling (SOAPCreateRequest etc) routines (I only have UniVerse here so I can't check). These might be more simple/appropriate to use. If you are accessing a web service, callHTTP is for HTTP requests, similar to an HTML form post. It does not send XML. If you are not, ignore the rest of this! I had some problems with encoding when I tried to use callHTTP with some services and in the end found it easier to just roll a very simple socket based routine to send and strip out the required data from the SOAP packets (this was before callSOAP was added). I wrote a short article on how to do this for the U2UG with a simple example: if you like I can dig it out and send it you off-list. Brian > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Bruce Lunt > Sent: 16 May 2005 23:19 > To: u2-users@listserver.u2ug.org > Subject: [U2] Questions about addRequestParameter > > Hi All Esteemed Ones, > > I have been investigating using callhttp to send addresses to > the web for address verification and the documentation is > leaving me a little unfulfilled. > > If I am understanding things correctly, I first do: > createRequest(URL, http_method, request_handle) Then, I would > add the address fields one by one to this by issuing: > addRequestParameter(request_handle, parameter_name, parameter_value, > content_handling) > for as many fields as I have to validate. > Finally, I would do: > submitRequest(request_handle, time_out, post_data, > response_headers, response_data, http_status). The > response_headers and response_data vars would have my reply. > In this case it is XML. > > > I am assuming that the request_handle is used by all three > processes but I cannot see what is being done with it. I > don't know whether it is correct or not. > > And finally, can anyone tell me if this is even worth > pursuing? Is it fast enough to use with data-entry? Or should > I be looking into another method? > > Thanks, > > R. Bruce Lunt > > HP/UX v. 11 > Unidata v. 6.0 > --- > u2-users mailing list > u2-users@listserver.u2ug.org > To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Questions about addRequestParameter
Theres a good example of this on www.pickwiki.com We use a similiar system for address verification and debit/credit card payments. Performance is more than adequate. From: [EMAIL PROTECTED] on behalf of Bruce Lunt Sent: Mon 16/05/2005 23:19 To: u2-users@listserver.u2ug.org Subject: [U2] Questions about addRequestParameter Hi All Esteemed Ones, I have been investigating using callhttp to send addresses to the web for address verification and the documentation is leaving me a little unfulfilled. If I am understanding things correctly, I first do: createRequest(URL, http_method, request_handle) Then, I would add the address fields one by one to this by issuing: addRequestParameter(request_handle, parameter_name, parameter_value, content_handling) for as many fields as I have to validate. Finally, I would do: submitRequest(request_handle, time_out, post_data, response_headers, response_data, http_status). The response_headers and response_data vars would have my reply. In this case it is XML. I am assuming that the request_handle is used by all three processes but I cannot see what is being done with it. I don't know whether it is correct or not. And finally, can anyone tell me if this is even worth pursuing? Is it fast enough to use with data-entry? Or should I be looking into another method? Thanks, R. Bruce Lunt HP/UX v. 11 Unidata v. 6.0 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone +44 (0)20 7896 0011 and then delete the email and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Markets Limited and IG Index Plc are authorised and regulated by the Financial Services Authority and, in Australia, by the Australian Securities and Investments Commission. [demime 1.01d removed an attachment of type application/ms-tnef which had a name of winmail.dat] --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Questions about addRequestParameter
Bruce, i recently used callHttp to generate 'Customs Form' through the USPS. You are basically right in your understanding. It is very quick as long as you have a good connection .. we were getting forms back in PDF format (6 pages) in approx 2-4 seconds after submit. For your address you should be able to get response quicker. so .. rtn = createRequest(.) will return 0 if there was no error. This builds the handle that all the other requests use. Not sure what you want to 'see' with the handle. give it a try .. think you will like the results. DTsig Monday, May 16, 2005, 3:19:20 PM, you wrote: BL> Hi All Esteemed Ones, BL> I have been investigating using callhttp to send addresses to the web for BL> address verification and the documentation is leaving me a little BL> unfulfilled. BL> If I am understanding things correctly, I first do: BL> createRequest(URL, http_method, request_handle) BL> Then, I would add the address fields one by one to this by issuing: BL> addRequestParameter(request_handle, parameter_name, parameter_value, BL> content_handling) BL> for as many fields as I have to validate. BL> Finally, I would do: BL> submitRequest(request_handle, time_out, post_data, response_headers, BL> response_data, http_status). The response_headers and response_data vars BL> would have my reply. In this case it is XML. BL> I am assuming that the request_handle is used by all three processes but I BL> cannot see what is being done with it. I don't know whether it is correct or BL> not. BL> And finally, can anyone tell me if this is even worth pursuing? Is it fast BL> enough to use with data-entry? Or should I be looking into another method? BL> Thanks, BL> R. Bruce Lunt BL> HP/UX v. 11 BL> Unidata v. 6.0 BL> --- BL> u2-users mailing list BL> u2-users@listserver.u2ug.org BL> To unsubscribe please visit http://listserver.u2ug.org/ BL> __ NOD32 1.1099 (20050516) Information __ BL> This message was checked by NOD32 antivirus system. BL> http://www.nod32.com -- DSig ` David Tod Sigafoos ( O O ) ___oOOo__( )__oOOo___ Cannot open file "C:\DOCUMENTS AND SETTINGS\DAVID TOD SIGAFOOS\APPLICATION DATA\BATMAIL\COOKIES.TXT" --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/