使用Cxf發佈Webservice服務,若是待發布的接口中有重載方法,怎麼處理??[轉]


發佈服務時提示:
嚴重: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webServiceSample': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: java.lang.IllegalArgumentException: An operation with name [{http://service.cxf.cvicse.com/}sayUserNamealready exists in this service
Caused by: javax.xml.ws.WebServiceException: java.lang.IllegalArgumentException: An operation with name [{http://service.cxf.cvicse.com/}sayUserName] already exists in this service

WebServiceSample裏有兩個重載的方法sayUserName,不能成功發佈服務,應該如何處理,請指教!java

相關文章
相關標籤/搜索