0
My code:
<html>
<head>
<title></title>
<script type="text/javascript">
function valor() {
var form1 = document.frm;
var dados = form1.dados.value;
if (dados == "teste"){
alert('pegando dados');
form1.dados.focus();
return false;
}
return true;
}
</script>
</head>
<body>
<form onSubmit="return valor()" name="frm" method="post"
action="http://schemas.xmlsoap.org/soap/envelope/">
<input name="dados" placeholder="email">
<input type="submit" onClick="return valor()" value='Inserir texto'/>
</form>
</body>
</html>
To send a SOAP envelope you would have to parse the Form for a valid XML, I think it is not worth the effort, on the other hand you can use SOAPUI to make Restful Mockservice, you can read more about it at the following link: http://www.soapui.org/rest-testing-mocking/Rest-service-mocking.html
– Tobias Mesquita
knows how to make Soap return an xml ?
– user22168
found a plugin that parses the form for SOAP, but I still find it more useful to work with a Web API than with SOAP messages.
– Tobias Mesquita