Hi can anyone explain, What is difference between ...
# general
s
Hi can anyone explain, What is difference between SuiteTalk's REST and SOAP web services? What are the scenarios in which we choose either of them?
👀 1
a
REST was only recently added as an option, and is still in beta for 99% of record types. Otherwise the differences are more just the standard differences between REST & SOAP, independent of NS. I'm planning on using it for new integrations whenever the REST web services is more broadly available, bc REST is generally easier to work w/ and faster than SOAP.
👍 1
but if you were building an integration today, you might want to stick w/ SOAP just because beta NS products are not the most reliable. unless you happen to be integrating suiteBilling, which is the subset of records that are out of beta for REST web services
s
I want to integrate NS with Python so I should prefer SOAP right?
t
I think you would have a much easier time using REST. It uses a much simpler JSON format for sending data, which you can do natively with Python. To use SOAP, you would almost certainly need 1 or more libraries to format the XML properly.
s
Do you have any references which I can follow to achieve it with REST?
t
Its pretty straight forward really, here is NetSuite's REST API documentation: https://system.netsuite.com/help/helpcenter/en_US/APIs/REST_API_Browser/record/v1/2019.2/index.html
s
I have tried some of the python netsuite libraries but I've got login error for most of the libraries also have issues for netsuite wsdl
t
Understandable. Have you been trying basic authentication or TBA (OAuth 1.0)?
s
I've tried TBA
you can check the example over here: https://pypi.org/project/netsuitesdk/
I don't have any experience in netsuite so need to understand how exactly I can achieve my goal, and thanks for helping 🙂
t
Have you been able to get your TBA setup working with Postman yet? You might have an issue with how your TBA is configured in NetSuite in regards to the Integration Record and the User Access Tokens. Try getting a basic call working in Postman before you try it in your Python script
s
Yes, it does work on postman
t
Not sure what else advice I can give on this one. If your credentials are good and are working in Postman and are also working on SOME of the Python libraries, then it sounds like an issue with the specific library. Here are some more TBA libraries in various languages: https://oauth.net/1/
s
Ok no issues, I will check Thanks for the help 🙂
t
no problem, good luck.