(i'm sorry if someone write about this before)
i write a SOAP webservice with delphiXE. i can connect that service delphi webclient application. here is xml data when i send and receive data;
before;
<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body xmlns:NS1="urn:atmodemeplaniIntf-Iatmodemeplani" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<NS1:topla>
<dgr1 xsi:type="xsd:int">3</dgr1>
<dgr2 xsi:type="xsd:int">5</dgr2>
</NS1:topla>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
after;
<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:NS1="urn:atmodemeplaniIntf-Iatmodemeplani">
<NS1:toplaResponse>
<return xsi:type="xsd:int">8</return>
</NS1:toplaResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
how can i post this xml with jquery?
here is my code;
</head>
<body>
<form action="/" id="searchForm">
<a href="javascript:mahmut()">topla</a></br>
</form>
<script>
/* attach a submit handler to the form */
function mahmut() {
var xmlString = '' +
'<?xml version="1.0"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">' +
'<SOAP-ENV:Body xmlns:NS1="urn:atmodemeplaniIntf-Iatmodemeplani" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">' +
'<NS1:topla><dgr1 xsi:type="xsd:int">3</dgr1><dgr2 xsi:type="xsd:int">5</dgr2></NS1:topla></SOAP-ENV:Body></SOAP-ENV:Envelope>';
$.post("http://localhost:26900/", {"xmlString":xmlString}, function (response){alert(response);});
};
</script>
</body>
</html>
i also send web service wsdl screen shot and send & receive xml files.