使用SOAP使用Sharepoint Web服务

时间:2013-02-18 14:28:29

标签: java web-services soap

在我的Netbeans中,经过干净和成功的构建,运行我的程序时会出现以下消息:

SEVERE: Injection on a method requires a void return type
 symbol: javax.xml.ws.WebServiceRef
 location: public com.microsoft.schemas.sharepoint.soap.directory.GetUserInfoResponse$GetUserInfoResult pt.marinha.ditic.dss.NewWebServiceFromWSDL.getUserInfo(java.lang.String)
SEVERE: Injection on a method requires a void return type
 symbol: javax.xml.ws.WebServiceRef
 location: public com.microsoft.schemas.sharepoint.soap.directory.GetUserInfoResponse$GetUserInfoResult pt.marinha.ditic.dss.NewWebServiceFromWSDL.getUserInfo(java.lang.String)
SEVERE: Annotations processing failed for file:/C:/Users/m9351234/Documents/NetBeansProjects/SharePointWS/SharePointWS-war/build/web/
INFO: WS00018: Webservice Endpoint deployed

INFO: WEB0671: Loading application [SharePointWS-war] at [/SharePointWS-war]
INFO: SharePointWS-war was successfully deployed in 1.480 milliseconds.

这意味着什么?

我不知道如何处理Java中的usergroups方法。

1 个答案:

答案 0 :(得分:2)

通过错误消息,您似乎正在尝试使用一些依赖注入框架,该框架仅支持对具有void返回类型的方法的成员注入,而您的方法返回对象实例。