InvokeURL showing Internal Exception on the URL line

InvokeURL showing Internal Exception on the URL line

Hi Everyone

trying to use InvokeURL to hit an API to create a new order in our ERP system

got all my params set up in a Map and my header set up in Map,

but its not even giving me errors in failures from the API, its telling me



So is it not even able to execute the attempt? 

Heres the code, ull see alot of notes where i was trying to add more possible headers thinking it wanted more info, but in the end, the only ones active are what is required. 
  1. // Create a map that holds the values of the new order that needs to be created
  2. OrderInfo = Map();
  3. OrderInfo.put("SALFCY","W01");
  4. OrderInfo.put("ZSALFCY","Corporate Warehouse");
  5. //i added above
  6. OrderInfo.put("SOHTYP","SAM");
  7. OrderInfo.put("STOFCY","W81");
  8. //i added above
  9. OrderInfo.put("SOHNUM","");
  10. OrderInfo.put("CUSORDREF","ZOHO_TEST");
  11. OrderInfo.put("ORDDAT","20211111");
  12. OrderInfo.put("CUR","USD");
  13. OrderInfo.put("BPCORD","CUS002");
  14. OrderInfo.put("ZORDACTION","3");
  15. OrderInfo.put("BPAADD","DS");
  16. OrderInfo.put("BPDNAM","Leonard Skinner III");
  17. OrderInfo.put("DEMDLVDAT","20211111");
  18. OrderInfo.put("ZCNCLDAT","20211111");
  19. OrderInfo.put("MDL","US-FC");
  20. OrderInfo.put("BPTNUM","USPS");
  21. OrderInfo.put("XX4S_UDF3","123");
  22. OrderInfo.put("XX4S_UDF1","EMAIL ADDRESS");
  23. OrderInfo.put("XX4S_UDF2","9092394238");
  24. OrderInfo.put("BPRNAM","Leonard Skinner III");
  25. //i added above
  26. OrderInfo.put("BPAADDLIG","1 wood rd");
  27. //i added above
  28. OrderInfo.put("CRY","US");
  29. OrderInfo.put("POSCOD","92336");
  30. OrderInfo.put("CTY","Fontana");
  31. OrderInfo.put("SAT","CA");
  32. OrderInfo.put("SHO","Freight amt");
  33. OrderInfo.put("INVDTAAMT","6.99");
  34. OrderInfo.put("ITMREF","EOD1-1003-CO5");
  35. OrderInfo.put("QTY","1");
  36. OrderInfo.put("GROPRI","0.99");
  37. //
  38. //make header data
  39. header_data = Map();
  40. //header_data.put("callContext","wss:CAdxCallContext");
  41. header_data.put("requestConfig","adxwss.trace.on=off&adxwss.beautify=true&adxwss.optreturn=XML");
  42. //older: adxwss.trace.on=on&adxwss.trace.size=16384&adonix.trace.on=on&adonix.trace.level=3&adonix.trace.size=8
  43. //newer: adxwss.trace.on=off&adxwss.beautify=true&adxwss.optreturn=XML
  44. //i added above
  45. header_data.put("codeLang","ENG");
  46. //changed from "ZSOHWEB"
  47. //header_data.put("codeUser", "XTEST");
  48. //header_data.put("password", "");
  49. //i added above
  50. header_data.put("soapAction","save");
  51. //i added above
  52. header_data.put("poolAlias","EDICIOT");
  53. header_data.put("poolId","EDICIOT");
  54. //i added above
  55. header_data.put("publicName","ZSOHWEB");
  56. header_data.put("Authorization","Basic eHRlc3Q6eHRlc3Q=");
  57. header_data.put("Content-Type","application/xml");
  58. //maybe change to "application/x-www-form-urlencoded"?
  59. // Supply the URL and parameters to the invoke URL task
  60. info header_data;
  61. info OrderInfo;
  62. auth_url = "URL HIDDEN";
  63. Export = invokeurl
  64. [
  65. url :auth_url
  66. type :POST
  67. headers:header_data
  68. detailed:true
  69. files:OrderInfo
  70. ];
  71. info Export;