Hi All,
I've seen a number of post about consuming Web Services from behind a proxy server, but none that seams to address this problem.
I'm building a desktop application, using Java, JAX-WS in NetBeans. I have a working prototype, that can query the server for authentication mode, successfully authenticate and retrieve a list of web site.
However, if I run the same app from a network that is behind a proxy server (the proxy does not require authentication), then I'm running into trouble.
The normal -dhttp.proxyHost ... settings does not seam to help any.
But I have found that by creating a ProxySelector class and setting it as default, I can regain access to the authentication web service, but I still can't retrieve the list of web sites from the SharePoint server.
Anyone have any experience on how to make this work?
I have put the source text java class files of a demo app up, showing the issue at the following urls (it's a bit to long even in the short demo form to post here).
link text
When running the code from a network behind a proxy server, I successfully retrieve the Authentication mode from the server, but the request for the Web Site list generates an exception originating at:
com.sun.xml.internal.ws.transport.http.client
.HttpClientTransport.readResponseCodeAndMessage(HttpClientTransport.java:201)
The output from the source when no proxy is on the network is listed below:
Successfully retrieved the SharePoint WebService response for Authentication
SharePoint authentication method is: WINDOWS
Calling Web Service to retrieve list of web site.
Web Service call response:
-------------- XML START --------------
<Webs xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<Web Title="Collaboration Lab" Url="http://host.domain.com/collaboration"/>
<Web Title="Global Data Lists" Url="http://host.domain.com/global_data_lists"/>
<Web Title="Landing" Url="http://host.domain.com/Landing"/>
<Web Title="SharePoint HelpDesk" Url="http://host.domain.com/helpdesk"/>
<Web Title="Program Management" Url="http://host.domain.com/programmanagement"/>
<Web Title="Project Site" Url="http://host.domain.com/Project Site"/>
<Web Title="SharePoint Administration Tools" Url="http://host.domain.com/admin"/>
<Web Title="Space Management Project" Url="http://host.domain.com/spacemgmt"/>
</Webs>
-------------- XML END --------------
Br
Jan