Open GoogleCodeExporter opened 9 years ago
Here is a link to how to change the JAXB stubs to use the wsdl's provided in
the jar.
http://stackoverflow.com/questions/4455195/how-to-avoid-the-need-to-specify-the-
wsdl-location-in-a-cxf-or-jax-ws-generated
Thanks
Larry
Original comment by LarryWBu...@gmail.com
on 26 Feb 2013 at 6:58
I've downloaded BETA2, and it is still looking for
file:/C:/Users/vkorecky/Prace/Projekty/GIA/java-sharepoint/src/main/resources/ws
dl/webs.wsdl
Original comment by emiliano...@iris-advies.com
on 28 Feb 2013 at 2:13
Hi - I am having the same problem. I guess the basic question is why is the
call to SPSite.getRootWeb() ending up trying to retrieve the WSDL at all? Is
there a fix to this?
Original comment by martinpg...@gmail.com
on 23 Apr 2013 at 5:54
Seems like all the wsdl classes create a hard coded path to the wsdl file
location when they are generated.
My workaround (I am new to Java btw):
Extract the wsdl package out of the java-sharepint-whatever_version.jar and
place it somewhere on your local drive.
Generate the java classes for each wsdl using the jdk's wsimport.exe. Executing
the commands below (change the path to your jdk) will create a package for each
wsdl that I then imported into my project. However the code is not very
portable since it will now hard code the wsdl file path to you location:
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.admin -keep -extension admin.wsdl
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.Alerts -keep -extension Alerts.wsdl
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.authentication -keep -extension
authentication.wsdl
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.copy -keep -extension copy.wsdl
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.dspsts -keep -extension dspsts.wsdl
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.dws -keep -extension dws.wsdl
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.forms -keep -extension forms.wsdl
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.imaging -keep -extension imaging.wsdl
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.lists -keep -extension lists.wsdl
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.meetings -keep -extension meetings.wsdl
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.people -keep -extension people.wsdl
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.permissions -keep -extension
permissions.wsdl
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.publishedlinksservice -keep -extension
publishedlinksservice.wsdl
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.search -keep -extension search.wsdl
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.sharepointemailws -keep -extension
sharepointemailws.wsdl
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.sitedata -keep -extension sitedata.wsdl
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.sites -keep -extension sites.wsdl
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.socialdataservice -keep -extension
socialdataservice.wsdl
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.spsearch -keep -extension spsearch.wsdl
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.usergroup -keep -extension usergroup.wsdl
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.versions -keep -extension versions.wsdl
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.views -keep -extension views.wsdl
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.webpartpages -keep -extension
webpartpages.wsdl
"c:\Program Files\Java\jdk1.7.0_13\bin\wsimport.exe" -p
com.microsoft.schemas.sharepoint.soap.webs -keep -extension webs.wsdl
Original comment by martin.d...@gmail.com
on 4 May 2013 at 11:31
I'd say this is a pretty severe defect; is this project still being maintained?
I'd patch the bloody thing, but OP can't seem to figure out subversion :\
Original comment by edmond.b...@gmail.com
on 16 May 2013 at 5:02
I've extracted the wsdl folder from the jar file and placed the wsdl folder
under src\main\resources (from eclipse project). Now, I'm not getting the
FileNotFound exception anymore but instead Connection Refused or JTTP status
code 401: Unauthorized.
Original comment by waynelib...@gmail.com
on 21 May 2013 at 6:55
@waynelib...
I did the same thing but even I am getting the same error HTTP status code 401:
Unauthorized. Any help is appreciated. Thanks
Original comment by Mukund.P...@gmail.com
on 21 Jun 2013 at 1:19
[deleted comment]
I've extracted the wsdl folder from the jar file and placed the wsdl folder
under src (from eclipse project). Now, I'm not getting the FileNotFound
exception anymore and as I am using the proxy I used HTTPProxy with my
credentials and I am stuck at getting this error.
HTTP transport error: java.io.IOException: Unable to tunnel through proxy.
Proxy returns "HTTP/1.0 407 Proxy Authentication Required"
If I remove the HTTPProxy, then I get "connection Refused" error.
Please help.
Original comment by aryan.as...@gmail.com
on 25 Jul 2013 at 10:18
Original issue reported on code.google.com by
georgeme...@gmail.com
on 13 Feb 2013 at 6:19