调用Web服务时出现此错误:java.lang.ArrayStoreException:sun.reflect.annotation.TypeNotPresentExceptionProxy

时间:2015-12-16 13:27:00

标签: web-services

执行Web服务时出现以下错误

java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy.

以下是代码

importservice.importrequests.sco.prosegur.ImportService_Service service = new importservice.importrequests.sco.prosegur.ImportService_Service();
importservice.importrequests.sco.prosegur.ImportService port = service.getBasicHttpBindingImportService();
// TODO initialize WS operation arguments here
        org.datacontract.schemas._2004._07.prosegur_sco.ImportFLMRequest ImportFLMRequest = new org.datacontract.schemas._2004._07.prosegur_sco.ImportFLMRequest();
        org.datacontract.schemas._2004._07.prosegur_sco.FLMRequest FLMRequest=new  org.datacontract.schemas._2004._07.prosegur_sco.FLMRequest();
        //assign value to FLMRequest
        FLMRequest.setCODCHMCLI(docketNo);
        FLMRequest.setCODOCOASSTEC(falutid);
        FLMRequest.setDATABECHM(xmlOpendate);
        FLMRequest.setDATABECHMCLI(xmlOpendate);
        FLMRequest.setNUMATM(atmId);
        //Pass FLMRequest into ImportFLMRequest..
        ImportFLMRequest.setRequest(FLMRequest);
        //Method invoke...
        org.datacontract.schemas._2004._07.prosegur_sco.FLMResponse result = port.importFLM(ImportFLMRequest);
        JAXBElement<String> resDescription = result.getDescription();
        JAXBElement<String> resDocketNo = result.getCODCHMCLI();

0 个答案:

没有答案