Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andres Tenjo 35 posts 55 karma points
    Mar 28, 2011 @ 18:48
    Andres Tenjo
    0

    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. ---&gt; There is an error in XML document (1, 270). ---&gt; Input string was not in a correct format.

    What can I do ?

  • Andres Tenjo 35 posts 55 karma points
    Mar 28, 2011 @ 19:02
    Andres Tenjo
    0

    and this error show too:

    400 (Bad Request)

Please Sign in or register to post replies

Write your reply to:

Draft