Quickbooks Employee update through web connector 2.1.0.31 issue - quickbooks

I have issue with adding / updating employees through php soap to quickbooks enterprise solution 2016 via quickbooks web connector 2.1.0.30.
Outgoing XML request:
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="2.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<EmployeeModRq requestID="102">
<EmployeeMod>
<ListID>80000013-1481963705</ListID>
<EditSequence>1482221410</EditSequence>
<Name>NewEmployee3 J Profile</Name>
<FirstName>NewEmployee3</FirstName>
<MiddleName>J</MiddleName>
<LastName>Profile</LastName>
<EmployeeAddress>
<Addr1>test street</Addr1>
<Addr2>Sivakasi</Addr2>
<City>Houston</City>
<State>TX</State>
<PostalCode>77497</PostalCode>
</EmployeeAddress>
<SSN>2342342345</SSN>
</EmployeeMod>
</EmployeeModRq>
</QBXMLMsgsRq>
</QBXML>
When i pass SSN, mobile or hired date after employee address, i am getting error
0x80040400: QuickBooks found an error when parsing the provided XML text stream.
Can you please tell me how to add
SSN, HiredDate, Mobile, payroll deduction values and DirectDeposit bank account information
FYI, I am using Quickbooks Web Connector 2.1.0.30 & Quickbooks Enterprise Solution 2016

Anytime you get this error:
0x80040400: QuickBooks found an error when parsing the provided XML text stream.
The first thing you should do is run to the XML Validator tool that is included with the QuickBooks SDK.
If you haven't done that already, please do it. It will tell you exactly where the error is.
In your case, you'll find out that Name and SSN are not valid fields.
You should also consider:
Using a different version of qbXML. qbXML 2.0 is 15+ years old now. Use the highest version your QuickBooks supports. If you're not sure what version your QuickBooks supports, refer to the QuickBooks documentation or search Google.
Referring to the QuickBooks OSR for field reference about which fields are supported, and in what order you should put them in your request.

Thanks for your response. Can you send script how to validate my qbxml?
And also send EmployeeAdd and EmployeeMod valid field tags?
Current qbxml version is 13.0?
What is the right version to pass quickbooks webconnector 2.1.0.30 to quickbooks enterprise solution 2016.

Find out the issues and fixed the employee creation.
Now I had one more issue. I want to add marital status and employee federal state tax configuration with number of allowances. Is it possible to update payroll information with tax options.
I was checked out in OSR also, there is no options for that. Can you please guide for me.

Related

Consolibyte QuickBooks PHP Library - How Do You Debug / View Errors?

I am currently trying to import a list of customers from my QB installation using the _quickbooks_customer_import_request() and _quickbooks_customer_import_response() methods found in Consolibyte's QB PHP library in the docs/web_connector/example_web_connector_import.php file.
When I run Web Connector, it is able to establish a connection and receive the request from my server. It then errors out on the response (where QB contacts my server and tries to pass to it response data). The error shown in Web Connector is a generic getLastError() message:
When I look in the quickbooks_log table that the Consolibyte library created in the quickbooks MySQL database, I see the following:
The above doesn't show the reason for the error. How do I log the underlying errors here? I would prefer a solution where the detailed error description can be inserted into the quickbooks_log table in a JSON format.
There's a Troubleshooting section of the docs here:
http://wiki.consolibyte.com/wiki/doku.php/quickbooks_integration_php_consolibyte?s[]=troubleshooting#troubleshooting
You should start by putting the Web Connector in VERBOSE mode, and looking at what's in the Web Connector log file.
Also, check your PHP error log.
There's many different places an error could be occurring (PHP, configuration, SSL/TLS, QuickBooks, etc.) so start with the Web Connector log and go from there.

OracleRightNow health check endpoint

We have an application that depends on ORN.
We want to have a health check endpoint for that application to know if it works fine and all its dependencies work fine.
In order to check if ORN is working, currently we are using:
https://support.something.com/cgi-bin/something.cfg/services/soap?wsdl
as health check endpoint for ORN. It works fine, but it's too big (1800 lines):
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright # 2009, 2017, Oracle and/or its affiliates. All rights reserved.
http://www.oracle.com
-->
<wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
...
</wsdl:service>
</wsdl:definitions>
Is there another health check endpoint for ORN?
Ideally, I'd like something to have something like this:
https://support.something.com/cgi-bin/something.cfg/check
that returns just
OK
Are you actually trying to test the availability of the SOAP API, all APIs, the Customer Portal, or something else. Depending on your test, the answer will be different. APIs might be up while CP is down, or any potential combination of the distributed components of the platform.
For the SOAP API test that you have, rather than checking for WSDL availability, you could try one of the SOAP operations that returns fewer lines; a ROQL query would probably be a good choice.
The REST API would probably be the root "connect" path, which doesn't require authentication. https://my.osvc.site.com/services/rest/latest.
For Customer Portal, you could just hit the index/home page, which would tell you that CP is up.
Chat could use a REST/SOAP approach as mentioned above.
Email probably cannot be checked in any useful way in this manner.
Of course, you could implement a CP controller or custom script that acts as an API endpoint, but that is not a best practice and will probably not be a good longterm solution, even though such practices are commonplace in the SI space currently.

Cannot access 4 day weather - MSN weather

I have been using this msn weather api for couple of years now
Programatically access weather info
As of today I get the following error in my app. Access Denied. It could be a glitch or a permanent shutdown by microsoft. I don't know but is there any other free 4 day weather forecast api that I can use to get weather in a XML format? Saddest part is that I have been using this api in at least 20 of my apps and now I am scrambling to find a solution.
I did send an email to weather#microsoft.com couple of hours ago but as predicted no response.
2014-12-10 07:46:40.321 Big Clock[10890:230027] locationStr: http://weather.service.msn.com/data.aspx?weadegreetype=F&culture=en-US&weasearchstr=Detroit,MI
2014-12-10 07:46:40.461 Big Clock[10890:230027] XML:
<?xml version="1.0" encoding="utf-8"?><weatherdata xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><weather errormessage="Access denied: Please contact weather#microsoft.com if you need access to this API." /></weatherdata>
You are not alone in this.
For the time being, passing an additional query string "&src=outlook" worked for me.
Sample Working URL:
http://weather.service.msn.com/data.aspx?weasearchstr=45236&culture=en-US&weadegreetype=F&src=outlook
Try it out and see if it solves your issue.
This is Ram from Microsoft. The existing service will be deprecated soon.
Please resend your email to the alias one more time so we can take it offline. We had an email hiccup so the alias should work now.
Please do not use the outlook as src value.
We are writing to notify you that the Microsoft Weather API will no longer be available for download and will be discontinued as of April 15, 2015, meaning it will no longer provide weather data. Accordingly, please remove the Microsoft Weather API from any of your products or apps that currently use it.
Here is a list of external providers who might be able to support your needs if you are interested in obtaining an alternate weather API:
http://api.accuweather.com/
http://www.wunderground.com/weather/api/d/pricing.html?MR=1
https://developer.forecast.io/
Disclaimer: Microsoft and Microsoft Weather are not affiliated or associated with any of the above companies in any way.
Thank You
Microsoft Weather Team
Thanks to Ram we now know that MSN weather api will be gone by April 15th, 2015.
If anyone wants a free weather alternate then try this
http://openweathermap.org/price_detailes
Calls per minute (no more than) 3,000
Calls per day (no more than) 4,000,000
This is the most I have seen any weather provide give out for free. I hope it helps.

QBXML : Can I get the balance sheet or do I have to calculate it?

I am creating an overview page for a customer which gets invoice and sales data from Quickbooks using QBXML via a PHP app and web connector.
The customer would like me to include the balance sheet (for the requested date(s)). Is it possible to retrieve this directly, or do I have to get all the item and account data and calculate it myself?
This is definitely possible to do.
Using qbXML and the Web Connector, you can send QuickBooks a qbXML request asking it to generate the report, and return the report data to you. The report data is returned in a nice parseable XML format.
If you look at the OSR:
https://developer-static.intuit.com/qbSDK-current/Common/newOSR/index.html
You'll find an option for:
GeneralSummaryReportQuery
If you use that syntax to send a qbXML request something like:
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="13.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<GeneralSummaryReportQueryRq>
<GeneralSummaryReportType>BalanceSheetStandard</GeneralSummaryReportType>
<DisplayReport>false</DisplayReport>
<ReportPeriod>
<FromReportDate>2013-01-01</FromReportDate>
<ToReportDate>2014-01-01</ToReportDate>
</ReportPeriod>
</GeneralSummaryReportQueryRq>
</QBXMLMsgsRq>
</QBXML>
You'll get back a nicely formatted row/column XML document with all the balance sheet details.
More details on this QuickBooks qbXML example site and QuickBooks wiki.

Using [delphi] MadExcept errorhandling with MS Exchange Server 2007

I currently use madExcept.MailAsSmtpClient to send my bug reports. However a couple of large clients have upgraded to Exchange Server 2007 and we can't get the SMTP support for our app configured (the app runs on individual workstations so the messages aren't all coming from one IP. We can configure an authenticated account in exchange and access it via SMTP from other clients but it rejects madExcept for some reason).
So I have two questions
1) has anyone successfully configured that combo ? or
2) is there an example somewhere of how to use the madExcept.UploadViaHTTP option?
If you upload a madExceptbug report via HTTP a web server is required which accepts POST requests. The bug report parts will be posted as form parameters, encoded as multipart/form-data. PHP example code for HTTP upload can be found here: http://forum.madshi.net/viewtopic.php?t=4611

Resources