Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Sample Script: How to make an external web service (SOAP) call
Background
This example uses the StrikeIron Address Verification web service to validate an address.
The SOAP request is constructed in JavaScript based on the WSDL for this web service. nlapiRequestURL is used
to make the external callout and the return values are extracted from the SOAP-formatted XML response using some
of the built-in XPath SuiteScript functions.
SOAP Protocol
Sample Request (SOAP Interface)
Address: 2955 Campus Dr, Suite 175, San Mateo, CA, 94403
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://www.w3.org/2001/XMLSchema
0