Hi all !, It is my first post in the forum.
I'm working on an QlikView application. This application has a button (extension) which consume a WebService.
function postData(webServiceUrl, xml) {
$.support.cors = true;
alert('URL : ' + webServiceUrl);
var jqxhr = $.ajax({
url: webServiceUrl,
type: 'POST',
crossDomain: true,
data: xml,
dataType: 'xml',
contentType: "application/xml; charset=utf-8",
statusCode: {
The problem is if the application Works fine in client, with this log:
Address: http://localhost:8040/services/candidatos/solicitud
Encoding: UTF-8
Http-Method: POST
Content-Type: application/xml; charset=utf-8
Headers: {Accept=[application/xml, text/xml, */*; q=0.01],
bt, when I execute in the Server the http-method changes to GET, and of course, it doesnt work.
ID: 1
Address: http://localhost:8040/services/candidatos/solicitud
Http-Method: GET
Content-Type:
Headers: {Accept=[text/html, application/xhtml+xml, */*], accept-encoding=[gzip, deflate], Accept-Language=[es-ES], Authorization=[Basic dGFkbWluOnRhZG1pbg==], connection=[keep-alive], Content-Type=[null], Cookie=[JSESSIONID=m9342mxzblag1fdf73cfe2dal], Host=[localhost:8040], User-Agent=[Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)]}
WARN tp1085871242-161 pl.WebApplicationExceptionMapper 72 101 - org.apache.cxf.cxf-rt-frontend-jaxrs - 3.1.4 javax.ws.rs.ClientErrorException: HTTP 405 Method Not Allowed
at org.apache.cxf.jaxrs.utils.SpecExceptions.toHttpException(SpecExceptions.java:117)