user2083588
user2083588

Reputation: 11

Consuming Sharepoint web service using SOAP

In my Netbeans, after clean and successful build, when running my program the following message appears:

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.

What could it mean?

I dont know how to handle the usergroups methods in Java.

Upvotes: 1

Views: 258

Answers (1)

Mikkel Løkke
Mikkel Løkke

Reputation: 3749

Going by the error message, it seems you're trying to use some Dependency Injection framework, that only supports member injection on methods that have a void return type, where as yours is returning an object instance.

Upvotes: 2

Related Questions