RE: [U2] Questions about addRequestParameter
>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! Just to throw in my 2 cents, you can use callHTTP to send XML. We are running 16 different interfaces using callHTTP POST to send and receive XML. Also, the response files contain embedded pdf's, html, or can be used with XSL stylesheets. That is not to say, however, that the SOAP functionality may not be better suited for your purposes. Mike Dallaire Mortgage Builder Software Inc. (248) 208-3223 ext. 103 [EMAIL PROTECTED] www.mortgagebuilder.com --- 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] 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] 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] 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/