Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
var nodeId = $('input:radio[name=quiz]:checked').val();
var soapMessage = '<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">' + '<soap:Body>' + '<QuizCount xmlns="http://tempuri.org/">' + '<nodeId>' + nodeId + '</nodeId>' + '</QuizCount>' + '</soap:Body>' + '</soap:Envelope>';
ajax sender:
type: "POST", url: loc, contentType: "text/xml; charset=utf-8", data: soapMessage, dataType: "xml", success: function(){ alert("Quiz sent, thanks!."); },
current error:
500 (Internal Server Error) Server was unable to read request. ---> There is an error in XML document (1, 270). ---> Input string was not in a correct format.
What can I do ?
and this error show too:
400 (Bad Request)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
how I send this var in a soap message...
var nodeId = $('input:radio[name=quiz]:checked').val();
var soapMessage = '<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">' +
'<soap:Body>' +
'<QuizCount xmlns="http://tempuri.org/">' +
'<nodeId>' + nodeId + '</nodeId>' +
'</QuizCount>' +
'</soap:Body>' +
'</soap:Envelope>';
ajax sender:
type: "POST",
url: loc,
contentType: "text/xml; charset=utf-8",
data: soapMessage,
dataType: "xml",
success: function(){
alert("Quiz sent, thanks!.");
},
current error:
500 (Internal Server Error) Server was unable to read request. ---> There is an error in XML document (1, 270). ---> Input string was not in a correct format.
What can I do ?
and this error show too:
400 (Bad Request)
is working on a reply...