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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
XML Cross Domain Posting Question
Hello,
Does anyone know whether Suitelet Script support calling webservice from another domain?
I've tried to post an xml from my suitelet script to another domain, and I hope to have the response shown in my browser.
I'm wondering why I couldn't receive anything in the response body.
Below is my code, I'll be appreciated if somebody help me out.
Thanks.
function etest(){
var sWSDL="http://www.echosign.com/services/EchoSignDocumentService7";
var sPort="";
var posturl="";
var apiKey = "cn5y387gxr";
var echoSignXmlmessage = "";
var echoSignXmlmessage1 = "";
var postdata=null;
var testHttpResponse = null;
var strHttpRes1 = "";
var strHttpRes2 = "";
var strBody = new Array();
var strErr = null;
0