SOAP API call for CloneAsset via Javascript


(Martin) #21

[quote]
In packages/web_services/api/soap_api_asset_service/soap_api_asset_service.inc, put:


    log_dump($all_errors);


just above the line:

    throw new SoapFault('Server', 'Unable To Clone Asset');


then clone the asset again and look at the error log.
[/quote]


This is the output in the error log. I have included a line from either side of the "incident".

    
    [2011-02-23 08:54:23][7:Public User][1024:mysource notice][R] (/core/include/locale_manager.inc:504) - URL "http://193.62.209.235/crossdomain.xml" not found [SYS0218]
    [2011-02-23 09:24:51][133963:Martin Butt][8:php notice][R] (/core/hipo/jobs/hipo_job_clone_assets.inc:610) - Undefined index:  linkid
    [23-Feb-2011 09:24:51] 
    0: Soap_Api_Asset_Service::CloneAsset (/srv/www/vanda/packages/web_services/api/soap_api_asset_service/soap_api_asset_service.inc line 563): 
    Array
    (
    [0] => Array
        (
            [time] => 1298453091
            [message] => Undefined index:  linkid ([SYSTEM_ROOT]/core/hipo/jobs/hipo_job_clone_assets.inc:610)
            [warning] => 1
        )
)

[2011-02-23 09:24:55][132788:Will Barry][1024:mysource notice][R] (:) - The Squiz Server reset the running mode to WEB for User ID #132788 and Job hipo_job_create_links-4a103beafa500df0710fee27b0ae6cc2




I am running MySource Matrix v3.28



The files I copied from the CVS repo were:

packages/web_services/api/soap_api_asset_service/soap_api_asset_service.inc

packages/web_services/api/soap_api_asset_service/asset_service_requests.js

packages/web_services/api/soap_api/web_services_caller.js



I also copied the two .js files to the correct places under data/public/asset_types and have confirmed they are the files being served.