Hello All,
ok, hopefully this will get the "sticky" put on it so people will read this first before starting and not run into the same frustrations that I did when I started.
PLEASE feel free to add on to the list with what you have come across.
** WARNING **
Currently (they are in the process of tweeking this), only ONE web service account can be logged in at a time! So if 2 web users are submiting a form and the second user tries to submit before the first transaction is complete, you are going to recieve a "Object Reference" (Null value) error on the method call. It took me a while to figure this one out (a lot of frustrating debugging). I guess this is stated in the NS WS guide (I didn't notice it when I started), but this is not how a WS is supposed to run. I just assumed (I know that is bad) that these Web Services would work like all other Web Services that I have used (from other companies)...Unlimited admin accounts can be logged in to the system at the same time. Only draw back would be server speed...but this is not the case.
-To NS credit, they are putting in a fix that will complete the first transaction before logging out. But you are going to have to check for a logged in session before you submit/pull anything from NS using the Web services.
-To get around this, they suggest that you go back to the old "COM"/App server option of keeping a persistant login there and the web would work off of that. It is bringing old (COM objects) and new (Web Services) technologies together, which in my opinion is "taking a step backwards".
-To get around this, what I did was to create a "middle tier" db server (mimicing my NS transaction set up) which takes all of the transactions from the web. Then I have a windows service running on a 30 second timer, to query my DB and see what transactions need to go into NS. It is one entry point in to NS using the Web Services. My customers never know what is going on and it is instantanious, compare to the 30 to 40 sec NS WS transaction time. So it is kind of a "message queue" system...
** WARNING **
** Things I ran across **
1. The sample application source code is wrong! You can get bits and pieces to get the idea, but do not copy and paste the code from it and expect it to work.
2. If you are having trouble logging in to NS, you probably took the login code from the sample app and you can't log into v11 with that. Just make sure that instead of this:
_services.CookieContainer = new CookieContainer(2);
you have this:
_services.CookieContainer = new CookieContainer();
3. If there is a "xxxspecified" attribute for a value (you will know it when you come across it) make sure that you set it to "true", otherwise it will not get included in the SOAP request.
4. Be careful when you upgrade to the new WDSLs. It might break things. When I went from 1.3.1 to 1.3.2 all of my searches broke. To NS credit, they did create a much more robust search option in 1.3.2 (joins and things), but they renamed all of the old searchs(basic) to say "CustomerSearchBasic" and made all of the new (advance) searches be what the basic names were "CustomerSearch" which takes in more params. SO I had to go thourgh all of my code and switch all of my searches to the new naming convention of "Basic"...It is boggles my mind why they just didn't leave the basic searches the way they were and name the NEW searches to say "CustomerSearchAdvance" so that it wouldn't break any of the legacy code..."Backwards compatible", have you heard of that Netsuite :-) just kidding Elham.
That is all that comes to mind at this point, but I will add on as I think of them :-)
Again, feel free to add to the list.
Let me know if you want me to elaborate on anything above.
Gary