27
Points
Questions
0
Answers
3
-
When you are pasing an object with 'N/xml' you need to consider this object would be multiple levels deep most of the time, then you may need a function to loop througth the object and parse/excape each individual string/values.
This function works for most of the use cases you will find, however, this would not consider the cases where the object keys may need to be parsed aswell in which case you will need a more complex/robust function that will basically mutate your entire object into a new one taking care of the keys also./** * Escape a Multiple Levels Object to make it XML Compliant * * @param {Object[]} paramObject * * @return {Object[]} */ function escapeXMLObject(paramObject){ for(var nKey in paramObject){ if (paramObject[nKey] != null && typeof paramObject[nKey] === 'string') { paramObject[nKey] = xml.escape({xmlText: paramObject[nKey]}); }else if(paramObject[nKey] != null && typeof paramObject[nKey] === 'object') { paramObject[nKey] = escapeXMLObject(paramObject[nKey]); } } return paramObject; }- 2231 views
- 1 answers
- 0 votes
-
Depending on how many integrations you have using SOAP(SuiteTalk) you may be hitting Concurrency Limits.
While this does not address your problem directly I will suggest you consider moving your Intranet integration to use a Restlet(I would try to move everything I can to Restlets because SOAP is such an old and slow protocol I will avoid to use every single time.)Just by moving this to a Restlet you automatically go from 5 calls to just 1.
- 5868 views
- 5 answers
- 1 votes
-
Take a look at Setting Up a URL Redirect that should be good enough to set up a redirect so everytime somebody request https://domain.com or http://domain.com it get redirected to www.domain.com.
- 3737 views
- 7 answers
- 0 votes