
Netsuite has recently released a new version of their php toolkit (version 2012.2). It looks like they did a pretty big rewrite of a lot of the code. For those of you familiar with the old version of the toolkit, this is good news. I haven’t had a chance to look it over yet, but it looks to be promising. You can check out the office page here.
-
Recent Posts
Ubuntu Countdown
Archives
Recent Comments
Categories
Tags
ajax apache api bandwidth bash browsers bug config custom fields data validation Developing with Netsuite Doctrine embed error firefox forms google google analytics html HTML 5 JavaScript jQuery linux netbeans netsuite Netsuite Bugs Netsuite Errors Netsuite Sucks network override PHP PHP Framework php toolkit plugin routing sample code script search security Symfony task Ubuntu web browsers xml YML

yep it’s a rewrite. For one, nsComplexObject class no longer exists.
For someone who was just starting to get comfortable with the old API, and has developed a bunch of code for it, and now has to learn a _new_ API, this really sucks.
Talk about derailing an implementation… which is what would happen if we put the brakes on and started over. We decided to stick with the old API for now, which is going to end up costing us later. Unfortunately the pressure to get this project moved forward and done is too great to start a new R&D effort now. We were just starting to get productive :-/
Oh well, hopefully the old API doesn’t get deprecated too fast.
As soon as I finish up these data replication jobs and start the integration, I’ll use the new API.
*nsComplexObjectType that is.
Sorry I’m a newb :-p
Well, I can tell you that new PHP code is still terrible. No namespaces, global variables, code style without proper rules and consistency.
We just tried to run our old code (built on 2011.2) on the new API (2012.2), and it failed. It’s not backward compatible.
PHP Fatal error: Class ‘nsComplexObject’ not found
The new API doesn’t have the classes required to run old code. We are keeping the code as is, and building new web service on new APIs. This means we’ll have to maintain TWO API toolkits.