Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-294

Cmis WebServices connector can not manage WSDL in protected URLs (HttpBasic for instance)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • OpenCMIS 0.3.0
    • OpenCMIS 0.9.0
    • None
    • Ubuntu Linux, JDK 1.6, Tomcat 6

    Description

      When connecting using SOAP services, when those are behind protected URLs (ie http basic) WSDL can not be retrieved.. Would be good that this scenario is supported, as WSDL is usually protected on the servers. I think this is very low priority.

      Stack trace:

      Exception in thread "main" org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Cannot initalize Web Services service object [org.apache.chemistry.opencmis.binding.webservices.RepositoryService]: Failed to access the WSDL at: http://ggimenez.emea.hpqcorp.net:8080//cmis/RepositoryService?wsdl. It failed with:
      Server returned HTTP response code: 401 for URL: http://ggimenez.emea.hpqcorp.net:8080/cmis/RepositoryService?wsdl.
      at org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractPortProvider.initServiceObject(AbstractPortProvider.java:234)
      at org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractPortProvider.getPortObject(AbstractPortProvider.java:163)
      at org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractPortProvider.getRepositoryServicePort(AbstractPortProvider.java:79)
      at org.apache.chemistry.opencmis.client.bindings.spi.webservices.RepositoryServiceImpl.getRepositoryInfo(RepositoryServiceImpl.java:97)
      at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getRepositoryInfo(RepositoryServiceImpl.java:69)
      at org.apache.chemistry.opencmis.client.runtime.SessionImpl.connect(SessionImpl.java:570)
      at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.createSession(SessionFactoryImpl.java:61)
      at com.hpexstream.lal.cmis.test.CMISTest.main(CMISTest.java:48)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115)
      Caused by: javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://ggimenez.emea.hpqcorp.net:8080/cmis/RepositoryService?wsdl. It failed with:
      Server returned HTTP response code: 401 for URL: http://ggimenez.emea.hpqcorp.net:8080/cmis/RepositoryService?wsdl.
      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)
      at javax.xml.ws.Service.<init>(Service.java:56)
      at org.apache.chemistry.opencmis.commons.impl.jaxb.RepositoryService.<init>(RepositoryService.java:42)
      at org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractPortProvider.initServiceObject(AbstractPortProvider.java:211)
      ... 12 more
      Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: http://ggimenez.emea.hpqcorp.net:8080/cmis/RepositoryService?wsdl
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313)
      at java.net.URL.openStream(URL.java:1010)
      at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.createReader(RuntimeWSDLParser.java:804)
      at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(RuntimeWSDLParser.java:262)
      at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:129)
      ... 19 more

      Attachments

        Activity

          People

            fmui Florian Müller
            galo.gimenez Galo Gimenez
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: