Problema com WebService

0 respostas
B

Estou tentando acessar um webservice mais está me retornando um erro.
Segue o trecho de código:

try

{

String urlWS = <a href="http://homologacao.anvisa.gov.br/sngpc/webservice/sngpc.asmx">http://homologacao.anvisa.gov.br/sngpc/webservice/sngpc.asmx</a>”;

Object[] params = {"","","",""};

Service service = new Service();

Call call = (Call) service.createCall();

call.setTargetEndpointAddress(urlWS);

call.setOperationName(EnviaArquivoSNGPC);

String ret = (String) call.invoke(params);

System.out.println("Resultado: " + ret);

}

catch(Exception ex)

{

ex.printStackTrace();

}

ao tentar acessar o método: call.invoke(params)

é retornado a seguinte erro:

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: Server did not recognize the value of HTTP Header SOAPAction: .
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:Server did not recognize the value of HTTP Header SOAPAction: .

oq está acontecendo???

Criado 4 de abril de 2008
Respostas 0
Participantes 1