Bom dia pessoal!
Estou tentando criar um webMethod utilizando o jaxws, só que quando vou gerar o cliente, ele não pega todos os parametros do webMethod, segue o código:
@WebMethod(operationName="pesquisaManifestacaoInteresse", action="urn:PesquisaManifestacaoInteresse")
public Object pesquisaManifestacaoInteresse(
@WebParam(name="cnpj" )String cnpj,
@WebParam(name="dataLimiteInicio")Date dataLimiteInicio,
@WebParam(name="dataLimiteFim") Date dataLimiteFim,
@WebParam(name="situacao")String situacao) throws SOAPException {
return null;
O client que o wsimport gera fica assim:
/**
*
* @param situacao
* @return
* returns java.lang.Object
* @throws SOAPException_Exception
*/
@WebMethod(action = "urn:PesquisaManifestacaoInteresse")
@WebResult(name = "pesquisaManifestacaoInteresseResponse", targetNamespace = "http://services.fiesEmpresa.mec.gov.br/", partName = "pesquisaManifestacaoInteresseResponse")
public Object pesquisaManifestacaoInteresse(
@WebParam(name = "situacao", targetNamespace = "http://services.fiesEmpresa.mec.gov.br/", partName = "situacao")
String situacao)
throws SOAPException_Exception
;
Ou seja, ele ignorou todos os outros parametros ficando somente com o último.
Ao utilizar o wsimport ele gera essa mensagem:
C:\fies\fies-src\testesFies>wsimport -s src -d src http://localhost:8080/fiesEmp
resaService/FiesEmpresaService?wsdl
parsing WSDL...
[WARNING] "cnpj" specified in the parameterOrder attribute of operation "pesquis
aManifestacaoInteresse" is not a valid part of the message.
line 92 of http://localhost:8080/fiesEmpresaService/FiesEmpresaService?wsdl
[WARNING] "dataLimiteInicio" specified in the parameterOrder attribute of operat
ion "pesquisaManifestacaoInteresse" is not a valid part of the message.
line 92 of http://localhost:8080/fiesEmpresaService/FiesEmpresaService?wsdl
[WARNING] "dataLimiteFim" specified in the parameterOrder attribute of operation
"pesquisaManifestacaoInteresse" is not a valid part of the message.
line 92 of http://localhost:8080/fiesEmpresaService/FiesEmpresaService?wsdl
[WARNING] parameterOrder attribute on operation "pesquisaManifestacaoInteresse"
is invalid, ignoring parameterOrder hint
line 92 of http://localhost:8080/fiesEmpresaService/FiesEmpresaService?wsdl
generating code...
compiling code...
Agradeço qualquer colaboração.