I have a TargetServer defined in Edge known as SoapServer. I want make a call to it using JS, is it possible?
Solved! Go to Solution.
@Amar N , maybe, it's possible. SOAP is an XML-based encoding of messages that are typically sent over HTTP. So you can make a call. What have you tried ? Do you see any issues ?
But you cannot retrieve the TargetServer configuration from within a JS callout, if that's what you mean.
No, you cannot.
You can *simulate* the behavior, by invoking the same HOST and URL as used in the TargetServer definition. But there's no good way to read the details of the TargetServer definition within the JS Callout.
Even if you simulate, it may not work properly. Does this TargetServer use client certificates?
I don't believe it is possible to do two-way ssl using the HTTP Client in Javascript callout. Instead, you will need to use a Service Callout or Node JS