AccountQueryRq (qbxml) throwing error when parsing the provided XML text stream - php

I am using Keith's Consolibyte PHP SDK for QBXML to fetch the data from QB Desktop (US 2022 version). I have 2 client company files on two different machines (2 different QB Desktop instances. both same version as above). When I request Accounts import using qbxml (below) then one QB instance returns proper data(all account details as xml response) where as the same xml fails for the other QB instance with error message as below.
XML:
<?qbxml version="13.0"?><QBXML><QBXMLMsgsRq onError="stopOnError"><AccountQueryRq requestID="22471"></AccountQueryRq></QBXMLMsgsRq></QBXML>
Error:
QuickBooks found an error when parsing the provided XML text stream.
I am not able to understand why this error is coming only on one QB instance where as the same is returning complete account details as xml response on other QB instance. Request some pointer on it as what could be the reason for the problem. There is no difference in the input QBXML (except the request ID which is automatically generated by the QBXML SDK).
I have tested the same using qbxml tester(SDKTestPLus3) too. Everything related to webconnector, qwc file permission is all correctely set. PLease guide me on this.
Thanks,

Related

unable to include PHP webservice in C#

I am trying to add a PHP webservice in my C# application but getting error as below
The HTML document does not contain Web service discovery information.
The webservice using is from a 3rd party. and the link as below.
http://mobile.mycomp.ae/ver_4_0/services/NetworkSearch.php?wsdl

Is XML parsing blocked on amazon product API requests?

I am trying to parse/recieve the XML from the amazon product API. When sending a api request to amazon I can successfully receive a url containing the XML data for the product(s). When I try to use the simplexml_load_file() function in php I get a connection refused.
Is this amazon blocking the use of this sort of request, or is it more likely a problem on my end? (I am only testing in XAMPP)

SimpleSamlPHP - Generating SP metadata

I am using SimpleSamlPHP library to implement SAML 2.0 SSO for my client. My client has already shared their IdP metadata and I have implemented that on my end. Now they need (off course) the SP metadata from me.
SimpleSamlPHP provides a very user friendly converter (find the converter in simplesamlphp/www/admin/metadata-converter.php) that you can use to convert the IdP metadata XML into metadata (PHP) array that you would use in saml20-idp-remote configuration.
I am looking for a similar utility that would take details about my assertion url, single logout url etc and would generate the SP metadata file for my client. If there is no such utility, can someone please give me a hint on how can I go about generating the SP metadata for my client. I off course don't expect anyone to give me the full solution, just a push in the right direction is all I need.
Thanks all.
UPDATE: I am looking for the standard XML attributes that the SP metadata XML should have.
SP metadata is available in web console of SimpleSAMLphp (Federation tab -> Show metadata):
https://your_server/path_to_simplesamlphp/www/
or directly via URL:
https://your_server/path_to_simplesamlphp/www/module.php/saml/sp/metadata.php/sp_name_from_authsources_php

Crystal Reports in PHP Application using XML

I have a requirement as below:
I have a PHP Web Application with ability to connect to any DB with PDO.
I have a report generating script that will give me the report data in XML
Using the XSD from XML as Data Source, i have to define a Crystal report RPT file.
I have to call this RPT in runtime dynamically, during which the PHP Script will generate the XML document from DB and using this XML as Input to my RPT, the rendered report should be sent to the users browser.
I have googled to address this using PHP-COM but could not find what i exactly want..
Expose the XML/XSD documents via a RESTful web service; the web service will be responsible for querying the database and creating the XML file. The XSD should be a one-time effort.
Manually create a RPT that references the web service's URL.
Publish your report as a web service: How Do I Work with Crystal Reports as Web Services?
Interact with CRWS using your PHP application.

wsdl soap server not returning xml

I have to write soap wsdl server in php.
Requirement:
request:two parameters say startDate & endDate
response: as follows
<students>
<student FirstName='Mr. A' LastName='B' />
<student FirstName='Mr. B' LastName='C' />
</students>
Can any one help me writing wsdl file & soap server for the above requirement. I tried many ways but failing for last 4 days.
Please help in writing WSDL file & SOAP Server which communicates with WSDL file, if possible a test client to verify.
Thanks in Advance
Try the SoapServer class:
http://www.php.net/manual/en/class.soapserver.php
Keep in mind that this class is not always available:
http://www.php.net/manual/en/soap.installation.php
Using Google I found a few tutorials explaining how to set up a SOAP web service:
http://devzone.zend.com/25/php-soap-extension/
http://www.phpeveryday.com/articles/Web-Services-WSDL-Creating-SOAP-Server-P477.html
Please help in writing WSDL file & SOAP Server which communicates with
WSDL file, if possible a test client to verify.
IMHO quite high expectations on a simple Q&A site...

Categories