Tenho um WebService que fora feito no Delphi 2005.
Estou tentando acessar o mesmo através dos recursos do ksoap de dentro de uma midlet conforme abaixo:
StringBuffer stringbuffer = new StringBuffer();
SoapObject client = new SoapObject("http://tempuri.org","INCLUIR");
client.addProperty("TABELA", new String("dbo.Acessorios"));
client.addProperty("CAMPOS", new String("Descri"));
client.addProperty("VALORES", new String("TESTE JAVA"));
client.addProperty("CODIGO", new String("dbo.Acessorios.CodAcessorio"));
client.addProperty("USUARIO", new String("Marcos Andrade"));
client.addProperty("DATA", new String("15/06/2009"));
HttpTransport ht = new HttpTransport();
ht.setUrl("http://192.168.0.4:1080/webservice/bdpwebservice.dll/soap/idmsql");
ht.setSoapAction("http://tempuri.org/INCLUIR");
ht.debug = true;
try
{
stringbuffer.append(ht.call(client));
System.out.println("O retorno foi: "+stringbuffer.toString());
}
catch (IOException ex)
{
ex.printStackTrace();
}
A estrutura da minha função chamada pelo WebService é:
string INCLUIR(string TABELA, string CAMPOS, string VALORES, string CODIGO, string USUARIO, string DATA)
A mesma retorna o id do registro inserido.
Porém ao executar está me exibindo a mensagem de erro:
org.ksoap.SoapFault
at org.ksoap.transport.HttpTransport.call(HttpTransport.java:269)
Sei que essa mensagem ocorre quando se dá uma exeção.
Alguém poderia me dizer o que há de errado ou poderia me dar uma sugestão?
Valews…