You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Nicolas Raoul (JIRA)" <ji...@apache.org> on 2013/02/14 09:18:13 UTC

[jira] [Commented] (CMIS-294) Cmis WebServices connector can not manage WSDL in protected URLs (HttpBasic for instance)

    [ https://issues.apache.org/jira/browse/CMIS-294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13578220#comment-13578220 ] 

Nicolas Raoul commented on CMIS-294:
------------------------------------

This problem is preventing me from connecting to a SharePoint server.
As Galo says, WSDL is usually protected on the servers, and this will not change any time soon.
I am surprised this is considered low priority.
                
> Cmis WebServices connector can not manage WSDL in protected URLs (HttpBasic for instance)
> -----------------------------------------------------------------------------------------
>
>                 Key: CMIS-294
>                 URL: https://issues.apache.org/jira/browse/CMIS-294
>             Project: Chemistry
>          Issue Type: Improvement
>          Components: opencmis-client-bindings
>    Affects Versions: OpenCMIS 0.3.0
>         Environment: Ubuntu Linux, JDK 1.6, Tomcat 6
>            Reporter: Galo Gimenez
>            Assignee: Florian Müller
>            Priority: Trivial
>             Fix For: OpenCMIS 1.0.0
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira