cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
116
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Chandar vr on 12-02-2010 04:36:43 PM
Hi

I am getting the following error when i try to call the api get_file_list() and get_file with valid parameters.

 1
 2$client = new SoapClient('https://ip:8443/CDRonDemandService/services/CDRonDemand?wsdl',
 3                        array('trace'=>1,
 4                      'exceptions'=>1,
 5                      'location'=>"https://ip:8443/axl]",
 6                      'login'=>'user',
 7                      'password'=>'pwd',
 8                       ))
 9$val=$client->get_file_list(array("Start Time"=>'200909101000',"End Time"=>'200909101059'));
10print_r ($val);
11 

 
The error i am getting is
1
2Fatal error:  Uncaught SoapFault exception: [SOAP-ENV:Client] cvc-complex-type.3.2.2: Attribute 'SOAP-ENV:encodingStyle' is not allowed to appear in element 'SOAP-ENV:Envelope'. in /path/a.php:253Stack trace:
3#0 [internal function]: SoapClient->__call('get_file_list', Array)#1 /path/a.php(25): SoapClient->get_file_list(Array)
4#2 {main}  thrown in /path/a.php on line 25

 
Please help me on this ...

Subject: RE: Error while trying to retrive CDR files
Replied by: Anum Nawaz on 05-10-2012 01:33:47 AM
Hello,
were you able to get a working code? I have used the same code above with the ip address change to my own. I get the error of "Failed to load external entity".
Can you please help?
Anum
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links