Fully working examples and cURL commands are provided on this page.  This includes examples in Java, Ruby and C# as well as cURL commands that are useful in Reliable Query.  To view the examples please download them and open them in their corresponding IDE or compiler or copy the cURL commands to a command prompt or terminal window.

cURL Command

The cURL command below will get all of the information for 'running' sessions. The XML used in the command is seen below the command with proper structure for easier reading. This command will include multiple returned items, but the main ones to note are the ResultCount and and the RemainingResultCount which when added together will give you the total number of of running transfers.

It should be noted that persistent store in Central must be enabled or you will not be able to use Reliably Query.

curl -k -i --basic -u "[user]:[password]" -H "Content-Type: text/xml;charset=UTF-8" -H "SOAPAction:FASPSessionNET-200911#GetSessionInfo" -d "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:typ=\"urn:Aspera:XML:FASPSessionNET:2009/11:Types\"><soapenv:Header></soapenv:Header><soapenv:Body><typ:GetSessionInfoRequest><SessionFilter><SessionStatus>running</SessionStatus></SessionFilter></typ:GetSessionInfoRequest></soapenv:Body></soapenv:Envelope>" -X POST "[server]/services/soap/Transfer-201210"

XML used in cURL command above

 

If you need to get information about a transfer for an extended period of time (more than about three minutes from submission) you should you should use a combination of the /transfers/{id} Node endpoint and the Reliable Query API with a filter using a cookie instead of the job ID. This will ensure that you can continuously monitor the transfer. For example, the command below will query using a cookie called "smart-xfer-cookie". To help you better understand the command, the XML payload is seen formatted under the command.

curl -k -i --basic -u "[user]:[password]" -H "Content-Type: text/xml;charset=UTF-8" -H "SOAPAction:FASPSessionNET-200911#GetSessionInfo" -d "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:typ=\"urn:Aspera:XML:FASPSessionNET:2009/11:Types\"><soapenv:Header></soapenv:Header><soapenv:Body><typ:GetSessionInfoRequest><SessionFilter><Cookie>smart-xfer-cookie</Cookie></SessionFilter></typ:GetSessionInfoRequest></soapenv:Body></soapenv:Envelope>" -X POST "https://[server]:9092/services/soap/Transfer-201210"

XML used in cURL command above

 

Command Line Tool

WCF Monitoring Transfers Application

Video player

Video

×