Java WebService抛出带有无效端点接口的javax.xml.ws.WebServiceException

时间:2012-03-05 17:20:53

标签: java web-services

我正在尝试调用WebService。我从已发布的WSDL构建了客户端jar。当我进行WebService调用时,我得到一个WebServiceException。

javax.xml.ws.WebServiceException: The Endpoint validation failed to validate due to the following errors:  :: Invalid Endpoint Interface

例外情况是列出WSDL公开的方法以及客户端认为应该存在的方法。在客户端列表中,有几个空值而不是方法名称。

wsdl operations = [getEntity getBrokers addBrokerPermissions removeBrokerPermissions addAgencyPermissions updateTaxIdUserAuth updateTaxIdFacets removeAgencyPermissions addBrokerUser isValidTaxId getBrokerConfirmationId addConfirmationId getBrokerByConfirmationId confirmBrokerRegistration getBrokerConfirmations addAgencyUser getAgencies approveAgencyRegistration rejectAgencyRegistration getAgencyConfirmations ] 

dispatch operations = [getBrokers addBrokerUser removeBrokerPermissions getAgencyConfirmations getBrokerConfirmations addBrokerPermissions approveAgencyRegistration isValidTaxId getBrokerByConfirmationId null addConfirmationId addAgencyUser confirmBrokerRegistration rejectAgencyRegistration addAgencyPermissions getBrokerConfirmationId null getEntity getAgencies removeAgencyPermissions ]

null应该是updateTaxIdUserAuth或updateTaxIdFacets。我查看了我的客户端,方法在那里,并使用@WebMethod进行注释。

我在WAS 7.0上运行。

1 个答案:

答案 0 :(得分:1)

当客户端使用的wsdl不是最新版时,通常会发生这种情况。 F.E.服务器在与客户端共享wsdl后添加了一些方法。

您可以进入WAS配置,添加以下属性:

myfun4<-function(){
colnames(DF2)[1]='Director_2007'
DF_final<-left_join(DF,DF2[DF2$Year==2006,-2],by='Director_2007') %>% 
              left_join(DF2[DF2$Year==2007,-2],by='Director_2007')
n=dim(DF_final)[2]
colnames(DF_final)[(n-1):n]=paste0('YearsExperience_',2006:2007)
}

myfun3<-function(){
DF2_spread<-tidyr::spread(DF2,Year,YearsExperience)[,-2]
colnames(DF2_spread)=c('Director_2007',paste0('Experience_',colnames(df2_spread)[2:3]))
DF_final<-dplyr::left_join(DF,DF2_spread,by='Director_2007')
}

myfun2<-function() {
  DF1 <- reshape(DF, direction = "long", varying = names(DF)[5:10], sep = "_", timevar = "Year")
DF3 <- merge(DF1, DF2, all.x = TRUE, by.x = c("Director" , "Year"), by.y = c("DirectorID", "Year"))
DF_final<-reshape(DF3, direction = "wide", v.names = names(DF3)[c(1,7,8,10)], timevar = "Year", sep = "_")
}

myfun1<-function(){
  DF %>% 
  left_join(DF2 %>% 
              filter(Year == 2006) %>% 
              select(DirectorID,YearsExperience_2016=YearsExperience), 
            by=c("Director_2006" =  "DirectorID")) %>% 
  left_join(DF2 %>% 
              filter(Year == 2007) %>% 
              select(DirectorID,YearsExperience_2017=YearsExperience), 
            by=c("Director_2007" =  "DirectorID")) 
}

这告诉WAS不要将该条件视为错误。 应该解决问题。