ValidateInvoiceBusinessRulesWithTools

송장, 규격 준수

설명

내장 송장에 대해 XML 스키마와 Schematron 검증을 실행합니다

구문

Delphi

Function TPDFlib.ValidateInvoiceBusinessRulesWithTools(Const EmbeddedFileName, Standard, RulesVersion, RulesProfile, SchemaFile, SchematronStylesheetFile, XMLLintExecutable, JavaExecutable, SaxonClassPath: WideString;
  TimeoutMS: Integer): WideString;

DLL

Function DLValidateInvoiceBusinessRulesWithTools(InstanceID: Integer;
  EmbeddedFileName, Standard, RulesVersion, RulesProfile, SchemaFile, SchematronStylesheetFile, XMLLintExecutable, JavaExecutable, SaxonClassPath: PWideChar; TimeoutMS: Integer): PWideChar; Stdcall;
Function DLValidateInvoiceBusinessRulesWithToolsA(InstanceID: Integer;
  EmbeddedFileName, Standard, RulesVersion, RulesProfile, SchemaFile, SchematronStylesheetFile, XMLLintExecutable, JavaExecutable, SaxonClassPath: PAnsiChar; TimeoutMS: Integer): PAnsiChar; Stdcall;

ActiveX

Function PDFlib::ValidateInvoiceBusinessRulesWithTools(EmbeddedFileName As String, Standard As String, RulesVersion As String, RulesProfile As String, SchemaFile As String, SchematronStylesheetFile As String, XMLLintExecutable As String, JavaExecutable As String, SaxonClassPath As String, TimeoutMS As Long) As String

비고

버전이 매겨진 XSD 패키지와 컴파일된 Schematron XSLT 스타일시트를 모두 사용해 선택한 내장 XML의 JSON을 반환합니다. 이 편의 메서드는 항상 두 단계를 모두 요구합니다

xmllint와 Java의 실행 파일 경로와 SaxonJ와 의존 항목을 담은 세미콜론으로 구분된 SaxonClassPath를 넘기십시오. 컴파일되지 않은 .sch 파일이 아니라 컴파일된 .xsl이나 .xslt를 사용하십시오

RulesVersion은 규칙 패키지 릴리스를 식별하고 RulesProfile은 대상 송장 프로필을 식별합니다. 스키마와 일반 EN16931 규칙이 모든 국가 또는 업계 프로필을 자동으로 포함하지 않으므로 맞는 규칙을 명시적으로 선택하십시오

두 도구는 셸이나 보이는 창 없이 DTD 처리를 끄고 출력 크기 제한과 요청한 타임아웃으로 실행됩니다. TimeoutMS<=0이면 30000 ms를 선택합니다

JSON에는 standard, version, profile, complete, valid와 별개의 schema, schematron 단계가 담깁니다. 각 단계는 상태, 완료 여부, 엔진, 실행 횟수, 진단과 규칙 ID, 필드 경로, 심각도, 줄, 메시지를 가진 문제를 포함합니다

단계 상태는 passed, failed, error, unavailable, not_checked입니다. 실패한 규칙도 complete=true일 수 있지만, 없는 의존 항목, 타임아웃, 출력 제한, 잘못된 SVRL, 실행되지 않은 규칙은 유효한 결과를 낼 수 없습니다

내장 도구 어댑터는 Windows가 필요합니다. 이식 가능한 애플리케이션은 형식화된 API를 통해 자체 IPDFInvoiceValidationProvider를 제공할 수 있습니다

PDF 컨테이너 검사와 송장 비즈니스 검증은 별개 작업입니다. PDF/A-3와 하이브리드 첨부 규약까지 검사해야 하면 ValidateFacturXInvoice도 함께 호출하십시오

DLL 결과는 인스턴스 소유이므로 다른 문자열 결과 호출 전에 복사해야 합니다. A 결과는 UTF-8 JSON을 담고 A 입력 문자열은 인스턴스 ANSI 설정을 사용합니다

참고 항목

ValidateFacturXInvoice, ValidateInvoiceBusinessRules, ValidateInvoiceBusinessRulesWithTools, ExtractFacturXXMLToString