Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Attempt to retrieve Sharepoint WSDL fails with “Server redirected too many times”

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to connect to a Sharepoint server through Java code. My code works fine with some Sharepoint servers, but fails when I try to connect to my Comcast provided account. The classes `ListsSoap` and `Lists` were generated from a Sharepoint WSDL using wsimport.

I read this may be caused by not using doman\username as the Sharepoint username. I tried prepending different domains to the username parameter, things like "mycompany.comcastbiz.net\\me@mycompany.comcastbiz.net"; but I received a 401 error for all domain names I tried.







javax.xml.ws.WebServiceException: Failed to access the WSDL at:
https://www.po1.comcast.net/sites/mycompany//_vti_bin/Lists.asmx?WSDL.
It failed with:
Server redirected too many times (20).
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(RuntimeWSDLParser.java:162)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:144)
at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:265)
at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:228)
at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:176)
at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:104)


 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic