We've added a javascript extension and using it we want to invoke a SOAP web service with SOAP request like this:
$.ajax({
url: 'https://blahblah.com',
type: "POST",
dataType: "xml",
data: soapRequest,
contentType: "text/xml; charset=\"utf-8\"",
success: OnSuccess,
error: OnError
});
When we invoke the SOAP web service using same request xml, we're getting response from service.
But when we invoke it from our javascript extension, its not even hitting the target SOAP webservice.
What could go wrong here ?