I want to get the data from google sheet in json format. I have implemented the code but it giving error is
page currently unable to handle this request.HTTP ERROR 500
I am using this link "https://gist.github.com/karlkranich/de225928665dc6b83667". The function checkServiceAccountCredentialsFile() given in this file was not defined anywhere in base.php file. So i coppy the base.php file from "github google client php".
When i echo this function in my php file from where i am trying to get the data is not working.
please suggest anything to resolve this issue.
Related
I have a VERY simple PHP code:
<?php
$soap = new SoapClient('https://rev-int.api.us.fleetmatics.com/Vehicle/SageQuest/VehicleService.svc?wsdl', array());
var_dump($soap);
When I copy that URL into my browser it loads just fine, with no redirects or anything:
$soap = new SoapClient('https://rev-int.api.us.fleetmatics.com/Vehicle/SageQuest/VehicleService.svc?wsdl
But when I execute that PHP script I get the following error after a PHP timeout:
Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://rev-int.api.us.fleetmatics.com/Vehicle/SageQuest/VehicleService.svc?wsdl=wsdl0' : failed to load external entity "http://rev-int.api.us.fleetmatics.com/Vehicle/SageQuest/VehicleService.svc?wsdl=wsdl0"
Notice the response URL is http://rev-int.api.us.fleetmatics.com/Vehicle/SageQuest/VehicleService.svc?wsdl=wsdl0 which is very similar but not quite accurate. If I search the working WSDL for that given URL I find it at the top:
That said, every URI points to HTTP instead of HTTPS, but if we simply change this in our browser the page loads just fine.
So the question becomes: when we create a PHP SoapClient, can we force all URIs to follow HTTPS regardless of the protocol specified in the WSDL?
The WSDL can stand by itself and contain everything inside, or it can use imports to bring in content from other locations (it usually happens with XSD schemas).
If it imports things, those imports need to be resolved by the client. If they can't be resolved, either because the location is wrong, or the protocol is wrong, or whatever, then the client bails out, because it needs a complete WSDL to understand the service's contract and how to call it, not just the parts it could load.
So you have two options:
Contact the provider of the service and ask them to fix it so all imports can be resolved.
If you can download the WSDL and all the resources it tries to import, by opening in browser and changing the protocol to https, you can save them all locally on disk in the same folder. Assuming you end up with a file named VehicleService.wsdl for the WSDL itself, and VehicleService.xml for the file you got from http://rev-int.api.us.fleetmatics.com/Vehicle/SageQuest/VehicleService.svc?wsdl=wsdl0 somehow, you can then change the WSDL to import this local file with <wsdl:import .... location="VehicleService.xml" /> instead of what it does right now. Then you can feed this local WSDL to your client, and because now everything is in the same folder, it should work.
I am using Nusoap library in codeigniter. My code works fine in localhost as well as on server before i make new folder for my testing purpose. But now in testing folder it gives error like this.
I'm receiving this Error:
HTTP Error: Unsupported HTTP response status 404 Not Found
(soapclient->response has contents of the response)
I have searched solution Here and Here but it shows that endpoint is not set for client. On my side, when I print my object it has the endpoint value... What do I do wrong?
I can't connect the URL(http://carvilshoe.cz.cc/index.wsdl.php?wsdl) from my web browser too. I think you have to check your WebService status is online.
I am developing a jasper report in PHP
I have tried embedded jasper library 0.9d -- PhpJasperLibrary-master
After fixing part of the code in the library,
It works normally but it cannot display table format which is very important for me to develop Jasper report so I give up in this method and build up an jasper server.
I have installed the PHP Client(v2.0) by composer and using the sample code in the following link
http://community.jaspersoft.com/wiki/php-client-sample-code
http://community.jaspersoft.com/project/php-client/releases
I am not sure why there is a lot of bugs in the sample code like getjob(s) function and passing variable to class client.
Anyway, I fixed it and the server info can be called.
In the last stage, I cannot run the report and the error message shown that the resource of my report not found.
Jaspersoft\Exception\RESTRequestException
Resource /20150604 not found.
I could like you to help me and I hope I can release a prefect version after all parts done.Thanks
And the below is my report information.
I have put my report under the folder /reports
and it can run in the jasper server
I have checked the URL that calling the report is like below
localhost:9090/jasperserver/rest_v2/reports/20150604.html
I have concern about the URL but I cant find any reference to it.
So please support me to fix the problem.
Thanks
additional: here is the code I call the report
$report = $c->reportService()->runReport('/20150604', 'html');
Hmm the rest endpoint to "run" a report is js/rest_v2/?path to report?.html
Unless your report is in the root of your organization, then you need a path.
Check out this (line 20):
https://github.com/jasonhuber/Jaspersoft_InputControlsFromCSV/blob/master/index.html#L20
and check in the web services guide page 71...
I am trying to send some data using URlLoader and urlVariables(this also includes encoded images ) on a button click to Php Script.Its a POST request. My client says - "Most of the times it works fine but sometimes it gives an "Error 2032"" but i am unable to replicate the error. I am listening to HTTP_STATUS, IO_ERROR and COMPLETE events. Php script file url is correct and the cross domain policy file is in place. I am using CSS 5.5 & AS3 . Any Thoughts. Thanks in Advance.
I'm trying to upload files via the API (issuu.document.upload). It worked in the past. But on new files I receive always the following response error:
{"rsp":{"_content":{"error":{"code":"999","message":"a66125aeaff42e3a893a985fdc9b659587880484 - Internal server error"}},"stat":"fail"}}
The document also does not show up in "My Publications" (http://issuu.com/home/publications)
There is no API documentation about this error code...
Problem solved (the ISSUU developers fixed it). From the ISSUU support team: "... It seems like there was some problems with our API servers, ..."