Search results

  1. P

    Question Processing Chunked data from XML socket response

    It is a HTTP POST and it does require authentication. I do not need to pass any parameters to in the request. The host does recommend using 'Accept-Encoding: gzip,deflate' but I am not currently using this as I don't get have a a way to uncompress the respond in progress. The http header for...
  2. P

    Question Processing Chunked data from XML socket response

    I have a socket connection that is receiving an XML response from a host. The host sends the data chunked (Transfer-Encoding: chunked). I have a procedure that is reading the response and saving to file (.dat). I am able to identify and remove the http header details but have not been able to...
  3. P

    Question Web Service Connection Failure

    I am developing an application that needs to connect to a HTTPS web service for request and response processing. The host has provided an Web Service URL but I cannot get my progress program to successfully connect. My connection method looks something like this DEFINE VARIABLE hWebService AS...
  4. P

    Process compressed XML response

    I was able to get a working version of the program to read the XML respond data from the host using the pointers provided above. I need to cleanup the program and will post the final working program. Thank you all for all your suggestions.
  5. P

    Question Running procedure in single-user

    I have a Progress program that I would like to run in single-user mode as it is currently locking a high number of tables causing a "Lock table overflow, increase -L on server (915)" error. It is not necessary for the program to lock any of the tables as no other users need access to these...
  6. P

    Process compressed XML response

    You are spot on about the READ method possibly being the cause of the delay receiving the XML response from the Vendor because it was reading 1 byte at a time. Utilizing your updated getReponse procedure I am getting signifcantly better response times. I still need to work though making sure the...
  7. P

    Process compressed XML response

    Thank you for the clarification on the use of zlib1.dll. I think part of the reason the function is returning a error code -3 (data error) is that the MEMPTR is passing some of the header HTTP trasmission information received with the response to the zlib1.dll procedure call. The text is as...
  8. P

    Process compressed XML response

    Thank you for the suggestion/sample code using zlib1.dll. I went ahead and setup a simple test to see if it would work with a zip file saved on my hard driver and I keep getting a return code of -3 from the function DeCompressBuffer. Based on the manual for zlib -3 indicates a data error...
  9. P

    Process compressed XML response

    I have an application that sends a XML request document to a external vendor. The Vendor then responds with an XML document. The respond XML can be relatively large (> 5 MB) and therefore takes a long time to receive back over the WAN. The vendor recommended adding 'Accept-Encoding: gzip' to the...
  10. P

    Partial Webspeed output with OpenEdge 11

    I am upgrading from WebSpeed 9.1E on Windows 2003 Server to OpenEdge 11.1 on Windows 2008 Server and have a webspeed application that was reading in data from a html file created using an XSLT processor and writing it out. The application ran okay on 9.1E but on 11.1 I am having a problem where...
  11. P

    Assign string with { & } characters to a character variables

    I have two questions that should be fairly simple 1.) I am trying to assign a string that start and ends with { & } for example "{ price }" to a progress character variable. Progress however keeps giving an error that 'price' is not a know database field. How can I get this assignment done...
  12. P

    Verifying the User's Answer from reCAPTCHA in Progress Webspeed

    Thank you for the suggestion. REMOTE_ADDR looks to be working but get-field("fieldname") is still not providing the values I need to capture to return in order to process the request. I am getting the same results with get-field("fieldname") as I did with get-value("fieldname"). Any suggestions...
  13. P

    Verifying the User's Answer from reCAPTCHA in Progress Webspeed

    I have a webspeed application for which I need to add the capability for users to add comments. To avoid spam I am trying to implement the use of reCAPTCHA (www.google.com/recaptcha) to have users enter text that is verified before the comments are saved to the database. So far I have been able...
  14. P

    Webspeed and UTF-8

    I am receiving data from a vendor in XML format that I load to a progress database and later display on a webpage. The vendor has UTF-8 characters in the XML document and when I publish these to the webpage I am getting different results based on different web browsers. On IE and Chrome the UTF...
  15. P

    Parsing XML file with long strings on 9.1B

    Thank you for the suggestion to use NODE-VALUE-TO-MEMPTR() method. I do my development using 9.1B and NODE-VALUE-TO-MEMPTR() was not available on that version. However I also run 9.1E on the production region so I am hoping I can get it working there.
  16. P

    Parsing XML file with long strings on 9.1B

    I setup a simple progress program to parse XML files and it works well for most of the files. There are however some files that have fairly long strings of data in one of the nodes and I get an error when I try to assign the value from that node to a character variable. I am working with...
  17. P

    Save XML response from HTTP POST Request

    I have a simple 4GL program that is utilizing a socket connection to submit a HTTP Post Request to an external web site that responds with a XML document. I am able to able to read the response to a memptr and I now need to save the response to an XML file that can be read later by other...
  18. P

    Os-command output to Webstream

    I have made some progress by writing the output of the os-command to a file as a html file. After that I use the lines below to read the file and display content to the web input stream wshtml from value(vcfilenamehtml) no-echo unbuffered. repeat: import stream wshtml unformatted vcoutput...
  19. P

    Os-command output to Webstream

    Thank you MaximMonin for the suggestion. I have tried two options both of which do not seem to be working. OPTION 1: define variable vccommand as character no-undo. define variable vcoutput as character no-undo. vccommand = "d:\Saxon\saxon d:\xmlfiles\xmlfilename.xml...
  20. P

    Os-command output to Webstream

    I am testing an simple implementation of XSLT transformation of XML to HTML using Instance Saxon. I am making a os-command call to saxon to do the transformation and need to capture the output and write it a webstream from webspeed. I am not familiar with how to capture the output of the...
Back
Top