Caused by: javax.xml.bind.JAXBException: standardPremiumUpdateMessageDTO is not a valid property on

Caused by: javax.xml.bind.JAXBException:  standardPremiumUpdateMessageDTO is not a valid property on class com.taiping.svc.webservice.request.wrapper.StandardPremiumUpdate

原因:

 1   /**
 2      * 标保更新接口
 3      */
 4     @WebResult(name = "return", targetNamespace = "")
 5     @RequestWrapper(localName = "standardPremiumUpdate", targetNamespace = "http://webservice.svc.taiping.com/",className = "com.taiping.svc.webservice.request.wrapper.StandardPremiumUpdate")
 6     @WebMethod
 7     @ResponseWrapper(localName = "standardPremiumUpdateResponse", targetNamespace = "http://webservice.svc.taiping.com/",className = "com.taiping.svc.webservice.response.wrapper.StandardPremiumUpdateResponse" )
 8     public com.taiping.svc.webservice.ReturnDTO standardPremiumUpdate(
 9             @WebParam(name = " standardPremiumUpdateMessageDTO", targetNamespace = "")
10             com.taiping.svc.webservice.request.DTO.StandardPremiumUpdateMessageDTO standardPremiumUpdateMessageDTO
11     );


这一行  @WebParam(name = " standardPremiumUpdateMessageDTO", targetNamespace = ""),standardPremiumUpdateMessageDTO前面多了个空格,无语

原文地址:https://www.cnblogs.com/xiluhua/p/4376556.html