ajax - jQuery SOAP returns 404 but works fine in SoapUI -



ajax - jQuery SOAP returns 404 but works fine in SoapUI -

the url , soap envelope below in code works fine in soapui, when seek same request jquery 404 not found meaasage. there wrong code? :

$(document).ready(function () { $("#btncallwebservice").click(function () { var sr = '<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:swp="http://soquij.qc.ca/swplumprov" xmlns:swp1="http://schemas.datacontract.org/2004/07/swplumprov">' + '<soapenv:header/>' + '<soapenv:body>' + ' <swp:recherche>' + '<swp:dossier>?</swp:dossier>' + '<swp:utilisateur>?</swp:utilisateur>' + '<swp:user>xxxx</swp:user>' + '<swp:pass>xxxx</swp:pass>' + '<swp:recherche>' + '<swp1:anneedebut>?</swp1:anneedebut>' + '<swp1:anneefin>?</swp1:anneefin>' + '<swp1:nom>bourgeois</swp1:nom>' + '<swp1:prenom>pierre</swp1:prenom>' + '<swp1:type>penal</swp1:type>' + '</swp:recherche>' + '</swp:recherche>' + '</soapenv:body>' + '</soapenv:envelope>'; $.ajax({ type: "post", url: "https://soquij.qc.ca/swplumprov/swplumprov.svc?wsdl", data: sr, contenttype: "text/xml; charset=\"utf-8\"", datatype: "xml", success: function (data) { $("#response").text("yes!! :-)" + info ); }, error: function (msg) { $("#response").text("erreur: " + msg.status + ": " + msg.statustext) } }); }); });

thank you.

jquery ajax wcf soap http-status-code-404

Comments

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -