I removed the jcifs calls and the update code looks like this:
String listsUrl =
"https://int.vanderbilt.edu/research/mcgdev/live/_vti_bin/Lists.asmx"
JaxWsProxyFactoryBean factoryBean = new
JaxWsProxyFactoryBean()
factoryBean.setServiceClass(com.microsoft.schemas.sharepoint.soap.ListsSoap.class)
factoryBean.setAddress(listsUrl)
factoryBean.setUsername(username)
factoryBean.setPassword(password)
port = (ListsSoap) factoryBean.create()
Client client = ClientProxy.getClient(port)
HTTPConduit http = client.getConduit()
HTTPClientPolicy httpClientPolicy = new
HTTPClientPolicy()
httpClientPolicy.setConnectionTimeout(36000)
httpClientPolicy.setAllowChunking(false)
httpClientPolicy.setReceiveTimeout(32000)
httpClientPolicy.setAutoRedirect(true)
http.setClient(httpClientPolicy)
// AuthorizationPolicy policy = new
AuthorizationPolicy()
// policy.setUserName(username)
// policy.setPassword(password)
// http.setAuthorization(policy)
GetListItemsResponse.GetListItemsResult result
=
port.getListItems("AboutUs", null, null, null,
null, null, null)
I am still receiving the 'Cannot send message exception'. I have tried
supplying username password credentials to the factoryBean and to the
AuthorizationPolicy, neither seem to get authenticated. Is there somewhere
else I should be supplying credentials to?
--
View this message in context:
http://cxf.547215.n5.nabble.com/CXF-Client-NTLM-Authentication-with-SharePoint-Server-tp5598272p5598853.html
Sent from the cxf-user mailing list archive at Nabble.com.