Avatar

Correct answer by
Level 2

Thanks @pablo.rosero

I got this sorted and the code is working. For anyone who is encountering a similar error here are some tips:

1) Ensure that the URL is part of the urlPermissions in the serverconf.xml

2) Ensure that the datatype in the function is correct. Hint: use long instead of int64

3) For initialising the HttpSoapConnection use the proper protocol. example: document.cnx = new HttpSoapConnection('http://www.dneonline.com/calculator.asmx', 'utf-8', HttpSoapConnection.SOAP_11)

Lastly, if you need additional details then look at the logs, if you don't get enough information then try executing the code outside of campaign within a Javascript.

View solution in original post