Problema XFire

0 respostas
B

Galera, estou obtendo o seguinte erro ao tentar utilizar o XFire para consumir um serviço:

Exception in thread “main” java.lang.UnsupportedOperationException: Service style/use not supported: document/encoded

Vejam meu código:

try

{

java.net.URL url = new java.net.URL (“<a href="http://localhost/XXXX.wsdl">http://localhost/XXXX.wsdl</a>”);

org.codehaus.xfire.client.Client cliente = new org.codehaus.xfire.client.Client(url);

java.lang.Object[] resultado = cliente.invoke(“SituacaoAgente”, new java.lang.Integer[] {null});
if (resultado != null) 
        {
            java.lang.System.out.println("OK");
        }
    } 
    catch (MalformedURLException ex) 
    {
        Logger.getLogger("global").log(Level.SEVERE, null, ex);
    }
Criado 19 de junho de 2007
Respostas 0
Participantes 1