chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "smita panda (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CMIS-1064) failed to integrate cmis "*wsdl" web service from .net client ,
Date Thu, 20 Sep 2018 13:07:00 GMT
smita panda created CMIS-1064:
---------------------------------

             Summary: failed to integrate cmis "*wsdl" web service from .net client , 
                 Key: CMIS-1064
                 URL: https://issues.apache.org/jira/browse/CMIS-1064
             Project: Chemistry
          Issue Type: New Feature
          Components: dotcmis
            Reporter: smita panda


Hi ,

We are working on one of the project where we have cmis service (wsdl) , where we trying to
consume the cmis servcie from .net client , but we unable to create the session , we have
used several process  , we have refer to below sites also 

[https://chemistry.apache.org/java/examples/example-connect-dotnet.html]

[https://chemistry.apache.org/dotnet/getting-started-with-dotcmis.html]

we have used dot cmis and port cmis , but still also we are not able to create the session
.

Below is the code we have written :

try
 {

Dictionary<string, string> parameters = new Dictionary<string, string>();

parameters[DotCMIS.SessionParameter.BindingType] = BindingType.WebServices;
 var binding = new BasicHttpBinding(BasicHttpSecurityMode.None);
 //var Binding = new System.ServiceModel.WebHttpBinding(WebHttpSecurityMode.None);
 parameters[DotCMIS.SessionParameter.WebServicesRepositoryService] = "http://"hosted server"/cmis/services/<RepositoryServiceWSDL>";
 parameters[DotCMIS.SessionParameter.WebServicesAclService] = "http://"hosted server"/cmis/services/<AclServiceWSDL>";
 parameters[DotCMIS.SessionParameter.WebServicesDiscoveryService] = "http://"hosted server"/cmis/services/<DiscoveryServicewsdl>";
 parameters[DotCMIS.SessionParameter.WebServicesMultifilingService] = "http://"hosted server"/cmis/services/<MultiFilingServicewsdl>";
 parameters[DotCMIS.SessionParameter.WebServicesNavigationService] = "http://"hosted server"/cmis/services/<NavigationServicewsdl>";
 parameters[DotCMIS.SessionParameter.WebServicesObjectService] = "http://"hosted server"/cmis/services/<ObjectServicewsdl>";
 parameters[DotCMIS.SessionParameter.WebServicesPolicyService] = "http://"hosted server"/cmis/services/<PolicyServicewsdl>";
 parameters[DotCMIS.SessionParameter.WebServicesRelationshipService] = "http://"hosted server"/cmis/services/<RelationshipServicewsdl>";
 parameters[DotCMIS.SessionParameter.WebServicesVersioningService] = "http://"hosted server"/cmis/services/<VersioningServicewsdl>";
 parameters[DotCMIS.SessionParameter.User] = "username";
 parameters[DotCMIS.SessionParameter.Password] = "ppassword";

SessionFactory factory = SessionFactory.NewInstance();
 ISession session = factory.GetRepositories(parameters)[0].CreateSession();

}
 catch (Exception ex)
 {
 //throw ex;
 }

*Error – “The provided URI scheme 'http' is invalid; expected 'https'.\r\nParameter name:
via”*

 

Please let us know if any confugration we have to do in web.congif file in visual studio or
any thing we are missing here .

Please let us know . Appreciate you help . 

 

Thank you .

 

Regards,

Smita Panda



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message