consuming webservice java
hey everybody !
and this code:
- $.ajax({
- type: "POST",
- url: "http://www.safetrace.com.br/safefrigorifico/services/ServicoConsulta.jws/consultarDadosRequest",
- data: "{}",
- contentType: "application/json; charset=utf-8",
- dataType: "json",
- success: function(data) {
- alert(data.d);
- },
- error: function(){
- alert("erro");
- }
- });
but I just get "erro" .. this is the first time that I'm working with webservice .. I search a lot of tutorials .. but does not work! =/