I'm writing against the 2008.2 endpoint, using request-level authentication, to store customer and order data. Error handling in the service seems to be *very* bad, as almost anything that fails seems to fail by returning completely undiagnosable internal errors.
The first example I came upon was happening when updating a customer record. The address book, being pushed with replaceAll true, was failing on a customer where of the address entries were marked explicitly defaultBilling false and defaultShipping false. Perhaps this is illegal, but the server should either choose one and make it the default, which I believe it used to do, or it should return a sensible error. It took hours to identify the problem.
The next example was happening when updating a customer record with two address book entries. One was marked 'default', because of the fix i put in for the first problem. But on this customer, the update worked fine with either of the address records but not both. That is, until I left out the default billing/shipping flags altogether, after which it was able to update with both records. Again, the failure was an internal server error, and now I'm not setting default addresses, which I'm not happy about.
Now I'm having trouble adding a few of my sales orders. The vast majority are working, but a few (currently 2) fail, for reasons I have yet to figure out, because again the failures are internal server errors.
It should go without saying that a web service should *never* return an internal server error. If for some reason it does, it should return it in XML form. The fact that I'm getting garbage responses back that end up being thrown as XML parsing errors just adds insult to injury.
Is there anything I can do to diagnose these problems other than trial and error? Is there a documented list of known issues with this web services endpoint? Has anyone run into similar problems? Every time I dive back into NetSuite integration I end up really frustrated.