What is the fastest way to generate an POST or GET SOAP XML payload for SuiteTalk Web services?

356 Views Asked by At

Hopefully someone can help me.

I am currently using POSTMAN to run SOAP web service tests on NetSuite.

Annoyingly, I am having to generate the body of an XML request from scratch, and would really like a method whereby a basic template is generated for me, and I simply fill in the gaps. Creating an XML web request from scratch is prone to errors hence my question. I tried SOAPUI but it does not

Any ideas is most appreciated!

2

There are 2 best solutions below

0
Anuradha Sinha On

hope you remember me!! The easiest way would be to download any of the existing working SOAP web request from any running build and modify that to suit your need. There is no out of the box built in template that you could build on at least as per my knowledge. Please specify the record for which you are building the SOAP request

1
bknights On

The easiest way is to not use POSTMAN.

I used to do a lot of this and what I'd do is:

  • generate the java client for SuiteTalk
  • install a recording proxy (I think WireMock does this -- the one I used to use doesn't seem to be around anymore)
  • use JUnit tests to hit SuiteTalk
    • in the test setup override the SSL config to ignore host name verification
    • test an API call
    • extract the complete working SOAP from the proxy logs
    • templatize the SOAP and use it where needed.