vimalrv / java-sharepoint-library

Automatically exported from code.google.com/p/java-sharepoint-library
0 stars 0 forks source link

NetworkCredentials class and wrong path for lists.wsdl #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Using class NetworkCredentials is not present in ava-sharepoint-library. 
Where can I find this one ?

2. Running of the method 

Lists service = new Lists();
port = service.getListsSoap(); 

Error : javax.xml.ws.WebServiceException: Failed to access the WSDL at: 
file:/C:/Users/vkorecky/Prace/Projekty/GIA/java-sharepoint/src/main/resources/ws
dl/lists.wsdl. It failed with: 
    Got C:\Users\vkorecky\Prace\Projekty\GIA\java-sharepoint\src\main\resources\wsdl\lists.wsdl (System nie może odnaleźć określonej ścieżki) while opening stream from file:/C:/Users/vkorecky/Prace/Projekty/GIA/java-sharepoint/src/main/resources/wsdl/lists.wsdl.

What version of the product are you using? On what operating system?
java-sharepoint-2.0-BETA2.jar. Windows 7 x64

Please provide any additional information below.
None

Original issue reported on code.google.com by garci...@gmail.com on 14 Feb 2013 at 1:44

GoogleCodeExporter commented 8 years ago
I also got the same error using the latest downloadable version..  Can't find 
class NetworkCredentials.

Can you please let us know how to fix this?
Thanks!

Original comment by marci.ni...@gmail.com on 1 Nov 2013 at 3:28

GoogleCodeExporter commented 8 years ago
hey guys use:
// Create NTLM v2 credentials (authenticator)
NtlmAuthenticator credentials = new NtlmAuthenticator("DOMAIN", "username", 
"password");

like descripted in the example in the project home page:

https://code.google.com/p/java-sharepoint-library/

Original comment by hasnaoui...@gmail.com on 6 Jan 2015 at 2:56