Jump to content
Fivewin Brasil

NFS-e João Pessoa-PB


macs

Recommended Posts

Olá pessoal, consegui a rotina que estava procurando. Mas estou com o seguinte problema:

No código abaixo, quando chega na linha " oSchema:Add( "http://www.abrasf.org.br/nfse", cSchemaFilename )"

gera o seguinte erro:

Error: 1001
SubC: 3
OSCode: 0
Subsystem: MSXML2.ServerXMLHTTP.6.0
DISP_E_MEMBERNOTFOUND

 

Alguém tem ideia do que possa está acontecendo?

Já registrei as Dlls, mas não tem jeito.

 

  oSchema:= CreateObject( "MSXML2.ServerXMLHTTP.6.0" )

  cSchemaFilename := diskName() + ":\" + CurDir() + "\Schemas\nfsev202.xsd"

  IF ! File( cSchemaFilename )
     RETURN msgErro( "Schema não encontrado " + cSchemaFilename )
  ENDIF

  TRY
     oSchema:Add( "http://www.abrasf.org.br/nfse", cSchemaFilename )
  CATCH oError
    cMsgErro := "Falha "      + CRLF + ;
                   "Error: "     + Transform(oError:GenCode, nil)   + ";" +CRLF+ ;
                 "SubC: "      + Transform(oError:SubCode, nil)   + ";" +CRLF+ ;
                 "OSCode: "    + Transform(oError:OsCode,  nil)   + ";" +CRLF+ ;
                 "SubSystem: " + Transform(oError:SubSystem, nil) + ";" +CRLF+ ;
                 "Mensangem: " + oError:Description

     RETURN msgErro(cMsgErro)
  END
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...