Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
nlapiRequestURL response body format
Hi,
I am trying to make a web service call from a suitelet. I am using the nlapiRequestURL call which is getting a valid response. My problem is that the response.getBody() result does not maintain the soap XML format. The Element values are returned in a single string. I am doing the following:
var a = {};
a['Content-Type'] = 'text/xml;charset=UTF-8';
a['Content-Length'] = soap_request.length + '';
a['Accept-Encoding'] = 'gzip,deflate';
a['SOAPAction'] = 'login';
a['Host'] = 'webservices.netsuite.com';
var soap_request = "A well formed soap request";
var response = nlapiRequestURL('https://webservices.netsuite.com/services/NetSuitePort_2009_2', soap_request, a);