1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

comunicação progress x webservices

Discussão em 'Progress 4GL' iniciado por angeloata, Julho 3, 2009.

  1. angeloata

    angeloata Membro Participativo

    Alguem tem ideia de como fazer a comunicação de um programa progress, com um webservice, do tipo da nota fiscal eletronica, e obter um retorno, ou envio de algum dado?

    Att.
  2. rodrigodds

    rodrigodds Membro Participativo

    Angelo,

    O software que gerencia o sistema de NF-e da Datasul é o Integrator..

    Ele recebe o banco de dados Progress e faz ele "conversar" com o banco Oracle.

    Att,
  3. angeloata

    angeloata Membro Participativo

    Certo, só q não utilizamos o Datasul.. rs. Preciso desenvolver em progress, essa integração...

    Att.
  4. rodrigodds

    rodrigodds Membro Participativo

    Vixi cara.. desculpe!

    Vamos ver se alguém consegue te ajudar.

    Abs,
  5. angeloata

    angeloata Membro Participativo

    Ontem consultando algumas documentações da Progress, encontrei o seguinte exemplo:

    DEFINE VARIABLE hWebSrvc AS HANDLE.
    DEFINE VARIABLE hPortType AS HANDLE.
    DEFINE VARIABLE cResponse AS CHARACTER FORMAT "x(72)".
    DEFINE VARIABLE g_header AS HANDLE.

    /* Create the Web service server object */
    CREATE SERVER hWebSrvc.

    /* Connect to the Web service */
    hWebSrvc:CONNECT("-WSDL https://homologacao.nfe.fazenda.sp.gov. ... nsultaSoap").

    /* Get the method, set the port type */
    RUN HeadersSoap SET hPortType ON hWebSrvc.

    /* Associate the req. & resp. callbacks with the port type */
    hPortType:SET-CALLBACK-PROCEDURE("REQUEST-HEADER", "ReqHandler").
    hPortType:SET-CALLBACK-PROCEDURE("RESPONSE-HEADER", "RespHandler").

    /* Invoke the Web service with no header and display the results*/
    RUN OpenAccess IN hPortType (OUTPUT cResponse).
    DISPLAY cResponse LABEL "WS response" WITH FRAME aaa.

    /* Go again with the AccessID set from previous response header */
    cResponse = "".
    RUN HelloWorld IN hPortType (OUTPUT cResponse).
    DISPLAY cResponse LABEL "WS response" WITH FRAME bbb.

    DELETE OBJECT g_header.
    DELETE OBJECT hPortType.
    hWebSrvc:DISCONNECT().
    DELETE OBJECT hWebSrvc.

    *****************

    Acredito q seja isso o que estou procurando, só que ao executar ocorre o seguinte erro:

    Falha no Secure Socket Layer (SSL). codigo de erro -54: unable to get local issuer certificate: for dd54b6d5.0 in c:\progress\openEdge\certs (9318)

    Coneection failute for host homologacao.nfe.fazenda.sp.gov.br port 443 transport HTTPS. (9407)

    Error loadind WSDL document https://homologacao.nfe.fazenda.sp.gov. ... nsultaSoap : Faltal error: connect operation failed (winsock reported erro=997) (11748)

    SERVIDOR não esta conectado. (5451)

    Handle do servidor especificado para o comando RUN HeadersSoap ... ON SERVER, invalido ou inapropriado (5453)

    Se alguem puder me ajudar agradeço...
  6. Agnaldo

    Agnaldo Membro Ativo

    NF-e usa certificado digital.

    COloque teu certificado na pasta indicada.
    "Falha no Secure Socket Layer (SSL). codigo de erro -54: unable to get local issuer certificate: for dd54b6d5.0 in c:\progress\openEdge\certs (9318)"

    E de uma olhada no manual (sim, tem um manual só sobre WebService sim) sobre o uso com HTTPS.

Compartilhe esta Página