Latest post Wed, Nov 22 2017 1:13 AM by Vadym. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • Tue, Nov 21 2017 4:22 PM

    • ding-mc
    • Not Ranked
    • Joined on Tue, Nov 21 2017
    • Posts 3
    • Points 45

    Checking in headframe along with AAF

    I am trying to check in a headframe along with the aaf with no results. I get the server fault with no detail info. I am using the code below along with the code found on this forum to check in an aaf in C++ with gsoap. Can a headframe be checked in along with the aaf or does this have to be done seperately?

    //working code to check in aaf with ns2__CheckInAAFType theCheckin


            //add headframe not working
            if (headframePath.size() > 0) {
                //get headframe file name
                fs::path hp = headframePath;
                std::string headfilename = hp.filename().string();
                // read the file and copy the data into a buffer
                std::ifstream headinput( headframePath, std::ios::binary );
                std::vector<unsigned char> headbuffer((std::istreambuf_iterator<char>(headinput)), (std::istreambuf_iterator<char>()));
                std::string hcid = "cid:"; //get the begining of the id
                std::string hcidName = hcid + headfilename; //add the filename
                std::vector<char> hc(hcidName.begin(), hcidName.end());
                char* headfileID = &hc[0]; //convert string to char*
                xsd__base64Binary hframe;
       = headfileID;
                hframe.__size = headbuffer.size();
                hframe.__ptr = &headbuffer.front();
                theCheckin.Headframe = &hframe;


  • Wed, Nov 22 2017 1:13 AM In reply to

    • Vadym
    • Top 500 Contributor
    • Joined on Thu, Apr 17 2014
    • Posts 262
    • Points 3,110
    • ! Avid Employee
      Avid Developer Moderator

    Re: Checking in headframe along with AAF


    Headframe can be added both ways, with the AAF or separately whichever suits you better.

    Some extra error information can be retrieved from the WebServices server logs. Please provide message dump and logs for review.


    Also you may use other tools e.g. soapUI in designing/debugging SOAP requests and to verify that it works as it provides easy view of the raw messages.


Page 1 of 1 (2 items)

© Copyright 2011 Avid Technology, Inc.  Terms of Use |  Privacy Policy |  Site Map |  Find a Reseller