Orep_Rs_Application_Instance_Publish()

Abstract

Sends the information in an application instance to Report Server for publishing.

Syntax

Orep_Rs_Application_Instance_Publish (OrepT_Rs_Application_Instance *instance_ptr, OrepT_Rs_Info *info_ptr, char *err_msg, int err_msg_len, int options)

Return Type

int

Status of the publishing attempt (see Details).

orep_report_server.h

Details

This function gathers all of the information necessary for publishing the reports, generates the XML meta-file, zips together the individual documents, and sends them via HTTP to Report Server.

If an error occurs, err_msg is filled in with the message received from Report Server. The buffer size should be set in err_msg_len.

The options flag is not currently used and should be set to OrepC_Rs_Publish_Opt_None.

The return value will be one of the following symbolic constants:

  • OrepC_Rs_Success—Was able to publish
  • OrepC_Rs_Archive_Error—Could not generate .zip file
  • OrepC_Rs_Meta_File_Error—Could not generate XML meta-file
  • OrepC_Rs_Index_File_Missing—No index file for collection
  • OrepC_Rs_Server_Connection_Error—Could not connect to server
  • OrepC_Rs_Server_Transfer_Error—Could not transfer to server
  • OrepC_Rs_Error—Other error in publishing

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com