Hi,
I am using a PHP SOAP client to collect CCM trace files on demand as required and push them to an SFTP server. Everything is working fine except I never recieve the files in ZIP format even though I request it, they are allways uncompressed.
I have PHP compiled with ZIP and GZIP support though I would have thought it was zipped on the server before it was transfered?
Anyway, my request is as follows -
<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://schemas.cisco.com/ast/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://cisco.com/ccm/serviceability/soap/LogCollection/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:SelectLogFiles>
<FileSelectionCriteria xsi:type="ns2:SchemaFileSelectionCriteria">
<ServiceLogs SOAP-ENC:arrayType="xsd:string[1]" xsi:type="ns2:ArrayOfString">
<item xsi:type="xsd:string">Cisco Syslog Agent</item>
</ServiceLogs>
<SystemLogs xsi:type="ns2:ArrayOfString"/>
<SearchStr xsi:type="xsd:string"/>
<Frequency xsi:type="ns2:Frequency">OnDemand</Frequency>
<JobType xsi:type="ns2:JobType">PushtoSFTPServer</JobType>
<ToDate xsi:type="xsd:string"/>
<FromDate xsi:type="xsd:string"/>
<TimeZone xsi:type="xsd:string">Client

GMT-8:0)Pacific Standard Time</TimeZone>
<RelText xsi:type="ns2:RelText">Hours</RelText>
<RelTime xsi:type="xsd:byte">1</RelTime>
<Port xsi:type="xsd:byte">22</Port>
<IPAddress xsi:type="xsd:string">10.23.104.57</IPAddress>
<UserName xsi:type="xsd:string">removed</UserName>
<Password xsi:type="xsd:string">removed</Password>
<ZipInfo xsi:type="xsd:boolean">true</ZipInfo>
<RemoteFolder xsi:type="xsd:string">/opt/www/html/test</RemoteFolder>
</FileSelectionCriteria>
</ns1:SelectLogFiles>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
And the Response -
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:SelectLogFilesResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://schemas.cisco.com/ast/soap/">
<FileSelectionResult xsi:type="ns2:SchemaFileSelectionResult" xmlns:ns2="http://cisco.com/ccm/serviceability/soap/LogCollection/">
<Node xsi:type="ns2:Node">
<name xsi:type="xsd:string">10.23.104.57</name>
<ServiceList soapenc:arrayType="ns2:ServiceLogs[1]" xsi:type="soapenc:Array" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<item xsi:type="ns2:ServiceLogs">
<name xsi:type="xsd:string" xsi:nil="true"/>
<SetOfFiles soapenc:arrayType="ns2:file[1]" xsi:type="soapenc:Array">
<item xsi:type="ns2:file">
<name xsi:type="xsd:string">syslogmib00000001.txt</name>
<absolutepath xsi:type="xsd:string">/var/log/active/cm/trace/syslogmib/sdi/syslogmib00000001.txt</absolutepath>
<filesize xsi:type="xsd:string">4091</filesize>
<modifiedDate xsi:type="xsd:string">Wed Aug 26 00:01:02 EST 2009</modifiedDate>
</item>
</SetOfFiles>
</item>
</ServiceList>
</Node>
</FileSelectionResult>
<ScheduleList soapenc:arrayType="ns3:Schedule[0]" xsi:type="soapenc:Array" xmlns:ns3="http://cisco.com/ccm/serviceability/soap/LogCollection/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"/>
</ns1:SelectLogFilesResponse>
</soapenv:Body>
</soapenv:Envelope>
Any help would be apreciated, the query used to call SelectLogFiles is shown below - I am trying to catch errors but I amreturned none.
try {
$result = $client->SelectLogFiles($FileSelectionCriteria);
}
catch(Exception $e) {
echo "Exception: " . $e->getMessage();
}
Thanks,
Brendon