diff --git a/soapui.js b/soapui.js
index c551367..4e4ee31 100644
--- a/soapui.js
+++ b/soapui.js
@@ -95,11 +95,10 @@
var soapActionNode = $(root_node).find("soap-action").get(0);
soapActionNode = soapActionNode != null ? $(soapActionNode) : null;
var soapAction = soapActionNode != null ? soapActionNode.text() : null;
+ var newSoapActionNode = $("", { value: soapAction, type: "text"});
if (soapAction != null && soapAction != "") {
soapActionNode.before("SOAP Action");
- soapActionNode.replaceWith(function (i, e) {
- return $("", { value: soapAction, type: "text"});
- });
+ soapActionNode.replaceWith(newSoapActionNode);
} else {
soapActionNode.find("soap-action")
.remove();
@@ -156,6 +155,11 @@
// Show the request and response pane
response_div.removeClass("hidden");
+ // Set the SOAPAction
+ if (soapAction != null && soapAction != "") {
+ soap_options.SOAPAction = newSoapActionNode.val();
+ }
+
// Get the SOAP Body from the HTML form
soap_options.data = newSoapBodyNode.val();
@@ -171,6 +175,9 @@
}
}
}
+ if (soapAction != null && soapAction != "") {
+ request += "SOAPAction: " + newSoapActionNode.val() + "\n";
+ }
request += "\n";
// Dump the SOAP Request