Back to index

nordugrid-arc-nox  1.1.0~rc6
test_cache_check.cpp File Reference
#include <map>
#include <iostream>
#include <signal.h>
#include <arc/ArcConfig.h>
#include <arc/Logger.h>
#include <arc/message/SOAPEnvelope.h>
#include <arc/message/PayloadSOAP.h>
#include <arc/message/MCC.h>
#include <arc/message/MCCLoader.h>
#include <arc/URL.h>
#include <arc/client/ClientInterface.h>

Go to the source code of this file.


int main (void)

Function Documentation

int main ( void  )

Definition at line 18 of file test_cache_check.cpp.


  Arc::Logger logger(Arc::Logger::rootLogger, "Test");
  Arc::LogStream logcerr(std::cerr);
  logger.msg(Arc::INFO, "Creating client side chain");

  std::string id;
  std::string url("https://localhost:60000/arex");
  Arc::NS ns;
  Arc::MCCConfig cfg;


  Arc::ClientSOAP client(cfg, url, 60);

    std::string faultstring;

    Arc::PayloadSOAP request(ns);
    Arc::XMLNode req = request.NewChild("CacheCheck").NewChild("TheseFilesNeedToCheck");

    req.NewChild("FileURL") = "";

    req.NewChild("FileURL") = "";

    req.NewChild("FileURL") = "";

    Arc::PayloadSOAP* response;

    Arc::MCC_Status status = client.process(&request, &response);

    if (!status) {
           std::cerr << "Request failed" << std::endl;

    std::string str;
    response->GetDoc(str, true);
    std::cout << str << std::endl;

   return 0;  

Here is the call graph for this function: