Comments (6)
Could you echo out $string
before line 12 and just check it is valid XML/what the response was?
from php-ssrs.
Hi, thanks, I use symonfy , and in my controller,
public function indexAction(Request $request)
{
$ssrs = new Report("http://LAPTOP-48KMKF8K:8090/ReportService", array('username' => 'xxxx', 'password' => 'xxxx'));
dump($ssrs);
die();
return $this->render('reports/index.html.twig', [
'ssrs' => $ssrs
]);
and the result:
ReportingController.php on line 30:
Report {#663 ▼
+servicePath: "ReportService2010.asmx"
+executionPath: "ReportExecution2005.asmx"
+options: array:4 [▼
"cache_wsdl_path" => null
"cache_wsdl_expiry" => 86400
"curl_options" => []
"hijackActionUrls" => false
]
#_baseUri: "http://LAPTOP-48KMKF8K:8090/ReportService"
#_username: "xxxx"
#_passwd: "xxxx"
#_soapService: null
#_soapExecution: null
#_executionNameSpace: "http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices"
#_headerExecutionLayout: "%s"
#_sessionId: null
I don't understant why _soapService is null. And i can't call the function << $ssrs->listChildren('/Report Folder');>> , it will give me error " String could not be parsed as XML"
THANKS !!!!
from php-ssrs.
It is the $string
variable in vendor\chartblocks\php-ssrs\library\SSRS\Soap\ServerException.php we need to dump out.
So from your first code sample, we'd want to change it to the following temporarily just to see what your response is.
public $faultcode;
public $faultstring;
public $faultactor;
static function fromResponse($string) {
var_dump($string);
exit;
$xml = new \SimpleXMLElement($string);
$ns = $xml->getNamespaces(true);
$soap = $xml->children($ns['soap']);
$body = $soap->Body->children($ns['soap']);
if (isset($body->Fault)) {
We may need to make some changes to the library to handle non-XML response a little better but it would help to see what sort of response you're getting.
from php-ssrs.
ok thanks a lot. I tried to dump it. This is the result:
string(0) ""
from php-ssrs.
@RocheR2D2 does my fix on #33 resolve your issue?
from php-ssrs.
from php-ssrs.
Related Issues (20)
- Content-Length header must not be set HOT 2
- ListChildren is not a valid method HOT 2
- Toggle Item HOT 1
- SSRS_SOAP_EXCEPTION not found HOT 1
- Toolbar not showing HOT 4
- Pagination? HOT 6
- error handling on non-xml responses HOT 3
- String could not be parsed as XML HOT 2
- Soap Fault -Could not connect to host
- Class SSRS_Object_ExecutionParameters HOT 3
- Is it possible to retrieve the parameters for a given ssrs report? HOT 7
- _cacheExpiry not set HOT 1
- Cached WSDL file is the same for every request HOT 4
- CURL error: Could not resolve proxy HOT 3
- Back to original link when click report drill down HOT 11
- Pass DataSource Credentials? HOT 1
- I am unable to create connection with SSRS server - Fatal error: Class 'SSRS\Soap\NTLM' not found HOT 2
- Include images from ssrs report to html page HOT 3
- how can i run this code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-ssrs.