Search results

  1. peterjudge

    Copying Data from ttCustomer to ttContacts

    You can save yourself some typing and just use the GUID function without an argument. The GUID function also returns a character value, so you don't need to use the STRING function either. ttContacts.ContactID = GUID. /* Auto-generate ContactID *
  2. peterjudge

    SOAP error with Content-type

    Ok, what heppens if you do just this? No extra headers. oRequestBody:Encoding = 'utf-8'. oRequest = RequestBuilder:Post(oUri, oRequestBody) :ContentType('text/xml; charset=utf-8') :AcceptAll() :AddHeader('SOAPAction'...
  3. peterjudge

    SOAP error with Content-type

    This is how you set it , or shold set it. oRequest = RequestBuilder:Post(oUri, oRequestBody) :ContentType('text/xml; charset=utf-8') :AcceptAll() :AddHeader('SOAPAction', 'http://tempuri.org/IConsultaCFDIService/Consulta')...
  4. peterjudge

    SOAP error with Content-type

    You were doing this earlier, and got the same error. Or? If so, that tells me that the server does not like the quoted charset. oRequest = RequestBuilder:Post(oUri, oRequestBody) :ContentType('text/xml; charset=utf-8') :AcceptAll()...
  5. peterjudge

    SOAP error with Content-type

    Ok, it looks like the server does not like the quoted charset value (even though that's legal HTTP). You can try @Cecil 's suggestion to leave off the charset completely. That may work. Getting rid of the quotes is more complicated ... the Http Client always quotes header parameter values...
  6. peterjudge

    SOAP error with Content-type

    The code you have is the correct approach. I would check to see what is actually being sent - if you set up the LOG-MANAGER with a LOGGING-LEVEL of 5 you will get a request-raw.txt file with the data that's sent to the server. You can see there whether the header value is correct. It may be...
  7. peterjudge

    REST vs WEB APIs

    IMO definitely.
  8. peterjudge

    Resolved SOAP error

    You need to install the relevant root CA certificate in the OpeNEdge cert store. OE does not do this automatically for you. The easiest way, often, is to put the URL in your browser, and download the certificate from there. Note that you don't need the chain, just the root CA. Download to the...
  9. peterjudge

    REST vs WEB APIs

    In addition to what @Jean-Christophe Cardot said, using the web transport/web handlers is SIGNIFICANTLY easier for developers - You can write them in any editor you choose. Rest is tightly tied to a PDSOE project - You can consume and produce non-JSON payloads simply - without hacking XML -...
  10. peterjudge

    Resolved Base32 Decoder and Encoder

    Maybe I should read the subject line properly ... :eek: . Sorry for the noise.
  11. peterjudge

    Resolved Base32 Decoder and Encoder

    Is there a reason you don't want to use the BASE64-ENCODE and BASE64-DECODE built-in functions? That's not for BASE32 encoding ...
  12. peterjudge

    Error Unable to send Json API with special characters through socket

    What codepage is the input parameter?
  13. peterjudge

    Progress with XML or JSON ?

    PASOE does this, for error messages. JSON and HTML but @Cecil 's point stands .
  14. peterjudge

    OE Studio / GitHub integration

    In general terms, I don't use Eclipse's SCM plugins. They always seems to clash with each other (SVN and ClearCase in particular). I use a standalone tool for SCM and Eclipse for coding. With VS Code the integration seems better thought-out and/or implemented, and SCM seems more of a...
  15. peterjudge

    Question How do I use Windows Hello Authentication (Windows.Security.Credentials)

    You can usually find assemblies on on nuget (https://nuget.info/packages) but it doesn't look like there's a Microsoft-published version on there. Or even a .net 4 version ...
  16. peterjudge

    Understanding IF NOT AVAILABLE STATEMENT

    The FOR EACH block will only show available records. There are cases where this is not the case for joined tables, but for the first table in the query, you will always see records from that first table. If the contents of the FOR EACH block do not execute at least once, then there are no...
  17. peterjudge

    Progress Downloads

    I think there an email address in the ESD site for help with that site. I think it's com-global@progress.com they were really responsive when I last contacted them.
  18. peterjudge

    Question Does Progress provide a utility to update ADM2 apps to use new PAS appserver?

    There's not a lot that needs doing ... you need to update the connection information in appsrvtt.d (to use the -URL syntax). Make sure that the PROPATH in PASOE points to the right place. And that is just about it.
  19. peterjudge

    Progress with XML or JSON ?

    JsonObjects are 11.0 and later. I think (per History of Progress Versions | The OpenEdge Hive) that WRITE-JSON on temp-tables and ProDataSets was 10.2B. If you can use those depends on whether the required data is in a "dataset format". As @Hikmet_Alemdaroglu says, writing JSON isn't that hard...
  20. peterjudge

    How to write a xml file using break by

    The temp-table and dataset WRITE-XML (and WRITE-JSON) methods write out the entire contents of the dataset/temp-table. You would call SERIALIZE-ROW on the buffer, so the syntax would be BUFFER tt_woorder:SERIALIZE-ROW(...) . YOu will overwrite the file each time you call it, so I would write...
Back
Top