{"action":"created","issue":{"url":"https://api.github.com/repos/doedje/jquery.soap/issues/90","labels_url":"https://api.github.com/repos/doedje/jquery.soap/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/doedje/jquery.soap/issues/90/comments","events_url":"https://api.github.com/repos/doedje/jquery.soap/issues/90/events","html_url":"https://github.com/doedje/jquery.soap/issues/90","id":111354441,"number":90,"title":"SOAP Error","user":{"login":"mustafizurrohman","id":12828222,"avatar_url":"https://avatars.githubusercontent.com/u/12828222?v=3","gravatar_id":"","url":"https://api.github.com/users/mustafizurrohman","html_url":"https://github.com/mustafizurrohman","followers_url":"https://api.github.com/users/mustafizurrohman/followers","following_url":"https://api.github.com/users/mustafizurrohman/following{/other_user}","gists_url":"https://api.github.com/users/mustafizurrohman/gists{/gist_id}","starred_url":"https://api.github.com/users/mustafizurrohman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mustafizurrohman/subscriptions","organizations_url":"https://api.github.com/users/mustafizurrohman/orgs","repos_url":"https://api.github.com/users/mustafizurrohman/repos","events_url":"https://api.github.com/users/mustafizurrohman/events{/privacy}","received_events_url":"https://api.github.com/users/mustafizurrohman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/doedje/jquery.soap/labels/implementation%20question","name":"implementation question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-10-14T09:02:49Z","updated_at":"2015-10-14T10:33:23Z","closed_at":null,"body":"Hello,\r\n I am facing a problem while calling my asmx SOAP service. My javascript/ajax code is as follows:\r\n\r\n\t$.soap({\r\n                url: \"https://exampleurl.com/service1.asmx\",       // url is correct \r\n                method: \"examplemethod\",                          // optional\r\n                appendMethodToURL: false,                        // 404 error when set to 'true'\r\n                soap12: true,                                   // SOAP 1.2 Request\r\n                // SOAPAction: \"http://tempuri.org/examplemethod\", // Optional for 1.2\r\n                // context: document.body,\r\n                enableLogging: true,   // logging enabled for debugging\r\n\r\n                 \r\n                // For JSON\r\n                data: {\r\n                    parameter1 : 'data1',\r\n\t\t\t\t\tparameter3 : 'data2',\r\n\t\t\t\t\tparameter3 : 'data3',\r\n\t\t\t\t\tparameter4 : 'data4'\r\n                }, \r\n                \r\n                \r\n                beforeSend: function (SOAPEnvelope) {\r\n                    alert(\"Sending : \\n\\n\\n\" + SOAPEnvelope);\r\n                    // console.log(\"Sending : \\n\\n\\n\" + SOAPEnvelope);\r\n                },\r\n                \r\n                sucess: function (soapResponse) {\r\n                    alert(\"SUCESSFUL SOAP Response : \\n\\n\\n\" + soapResponse);\r\n                    // console.log(\"SUCESSFUL SOAP Response : \\n\\n\\n\" + soapResponse);\r\n                },\r\n\r\n                error: function (SOAPResponse) {\r\n                    alert(\"FAILED SOAP Response : \\n\\n\\n\" + SOAPResponse)\r\n                    // console.log(\"FAILED SOAP Response : \\n\\n\\n\" + SOAPResponse);\r\n                },\r\n\r\n                // callback functions based on statusCode\r\n                statusCode: {                                   \r\n                    404: function () {\r\n                        alert('404 Not Found');\r\n                        // console.log('404 Not Found');\r\n                    },\r\n                    200: function () {\r\n                        alert('200 OK');\r\n                        // console.log('200 OK');\r\n                    }\r\n                }\r\n        });\r\n\r\n For this code I always get the following fail message:\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n\t<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n\t\t<soap:Body>\r\n\t\t\t<soap:Fault>\r\n\t\t\t\t<soap:Code>\r\n\t\t\t\t\t<soap:Value>soap:Receiver</soap:Value>\r\n\t\t\t\t</soap:Code>\r\n\t\t\t\t<soap:Reason>\r\n\t\t\t\t\t<soap:Text xml:lang=\"en\">\r\n\t\t\t\t\t\tThe request could not be processed by the server. --- & gt; The root element is missing.\r\n\t\t\t\t\t</soap:Text>\r\n\t\t\t\t</soap:Reason>\r\n\t\t\t\t<soap:Detail/>\r\n\t\t\t</soap:Fault>\r\n\t\t</soap:Body>\r\n\t</soap:Envelope>\r\n```\r\nIt would be nice if anyone could kindly shed some light on the error. I have been trying to fix this for the last few hours without success. Thank you. Cheers.\r\n\r\nMustafizur \r\n"},"comment":{"url":"https://api.github.com/repos/doedje/jquery.soap/issues/comments/148007862","html_url":"https://github.com/doedje/jquery.soap/issues/90#issuecomment-148007862","issue_url":"https://api.github.com/repos/doedje/jquery.soap/issues/90","id":148007862,"user":{"login":"doedje","id":3636611,"avatar_url":"https://avatars.githubusercontent.com/u/3636611?v=3","gravatar_id":"","url":"https://api.github.com/users/doedje","html_url":"https://github.com/doedje","followers_url":"https://api.github.com/users/doedje/followers","following_url":"https://api.github.com/users/doedje/following{/other_user}","gists_url":"https://api.github.com/users/doedje/gists{/gist_id}","starred_url":"https://api.github.com/users/doedje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doedje/subscriptions","organizations_url":"https://api.github.com/users/doedje/orgs","repos_url":"https://api.github.com/users/doedje/repos","events_url":"https://api.github.com/users/doedje/events{/privacy}","received_events_url":"https://api.github.com/users/doedje/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T10:33:23Z","updated_at":"2015-10-14T10:33:23Z","body":"add the following:\r\n```\r\n  namespaceURL: \"http://tempuri.org\",\r\n```\r\n\r\nBy the way, to add xml or code to your comments on github you can use the following markdown: [fenced code blocks](https://help.github.com/articles/github-flavored-markdown/#fenced-code-blocks)\r\nSaves you the trouble of making screenshots ;)"}}