Problem getting XDSRepository and XDSRegistry to work (sync version)

Jan 19, 2010 at 2:15 PM

Hi I tried to follow the setup guide that I found in the downloads section of this site, but I can't seem to get the sync version of the repository + registry to work.

With the Async version I can open the URL in my browser, but with the sync version I get a connection timeout.

I have:

-installed the certificates

-run the build.bat (got some yellow text e.g. warnings for unused exception handling but no red text so no errors)

-run the XDSbServicesInstall.bat with username .\XDSAdmin and password: pass@word1 (which is the password of the local account XDSAdmin) and got the report that the services installed properly and where started. I have verified this in the local services view.

PLZ can somebody point me in the right direction? If more information is needed I'll try to supply this.

Below are my three app.config's:

XDSDocumentRepositoryServiceHost app.config:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <section name="storageprovider" type="Microsoft.IHE.XDS.DocumentRepository.StorageProvider.SQLProviderSection,Microsoft.IHE.XDS.DocumentRepository.StorageProvider" />
  </configSections>
  <system.web>
    <webServices>
      <protocols>
        <add name="HttpGet" />
        <add name="HttpPost" />
      </protocols>
    </webServices>
  </system.web>
  <system.diagnostics>
    <sources>
      <source name="System.ServiceModel.MessageLogging" switchValue="Verbose,ActivityTracing">
        <listeners>
          <add type="System.Diagnostics.DefaultTraceListener" name="Default">
            <filter type="" />
          </add>
          <add name="TraceListener">
            <filter type="" />
          </add>
        </listeners>
      </source>
    </sources>
    <sharedListeners>
      <add initializeData="D:\Zorg en ICT 2010\trunk\zi_demo_2009\03-Code\MS XDS framework 2010\App_tracelog_Rep.svclog" type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="TraceListener">
        <filter type="" />
      </add>
    </sharedListeners>
  </system.diagnostics>
 
  <connectionStrings>
    <add name="XDSRequestAsync" connectionString="Database=XDSRepositoryDB;Server=PC2140;Integrated Security=SSPI; enlist=true;"
          providerName="System.Data.SqlClient"  />
    <add name="XDSRepository" connectionString="Database=XDSRepositoryDB;Server=PC2140;Integrated Security=SSPI; enlist=true;"
          providerName="System.Data.SqlClient"  />
    <add name="CONSTRING" connectionString="Database=XDSRepositoryDB;Server=PC2140;Integrated Security=SSPI; enlist=true;"
          providerName="System.Data.SqlClient"  />
    <add name="ATNA" connectionString="Database=XDSRepositoryDB;Server=PC2140;Integrated Security=SSPI; enlist=true;"
          providerName="System.Data.SqlClient" />
  </connectionStrings>
 
  <!--<connectionStrings>
    <add name="XDSRequestAsync" connectionString="Initial Catalog=XDS_Request;Data Source=WIN-AB1XPZUASTM;Integrated Security=SSPI;enlist=false;" providerName="System.Data.SqlClient" />
    <add name="XDSRepository" connectionString="Initial Catalog=XDSRepositoryDB;Data Source=WIN-AB1XPZUASTM;Integrated Security=SSPI;enlist=false;" providerName="System.Data.SqlClient" />
    <add name="CONSTRING" connectionString="Initial Catalog=XDS_Request;Data Source=WIN-AB1XPZUASTM;Integrated Security=SSPI;enlist=false;" providerName="System.Data.SqlClient" />
    <add name="ATNA" connectionString="Initial Catalog=XDSRepositoryDB;Data Source=WIN-AB1XPZUASTM;Integrated Security=SSPI;enlist=false;" providerName="System.Data.SqlClient" />
  </connectionStrings>-->
  <appSettings>
    <add key="HASH_ALGORITHM" value="SHA1" />
    <add key="SYSLOG_SERVER" value="ihe-kudu.wustl.edu" />
    <add key="SYSLOG_PORT" value="4001" />
    <!-- HTTPS/TLS -->
    <add key="XDSREPOSITORY_SERVICE_ADDRESS" value="https://PC2140:9081/XdsService/XDSRepository" />
    <add key="XDSREGISTRY_SERVICE_ADDRESS" value="https://PC2140:9080/XdsService/XDSRegistry" />
    <add key="XDSREGISTRY_ENDPOINT_NAME" value="XDSRegistry_HTTPS_Endpoint" />
    <!-- HTTPS/TLS -->
    <!-- HTTP -->
    <add key="XDSREPOSITORY_SERVICE_ADDRESS" value="http://PC2140:1026/XdsService/XDSRepository" />
    <add key="XDSREGISTRY_SERVICE_ADDRESS" value="http://PC2140:1025/XdsService/XDSRegistry" />
    <add key="XDSREGISTRY_ENDPOINT_NAME" value="XDSRegistry_HTTP_Endpoint" />
    <!-- HTTP -->
    <!-- changes for PnR - register document set async -->
    <add key="IsAsync" value="false" />
  </appSettings>
  <!-- This is the custom provider section which gets loaded into the QualityData.MyProviderSection Class -->
  <storageprovider defaultProvider="SQLStorageProvider">
    <!-- Change this to swap providers -->
    <providers>
      <clear />
      <!-- Here are one or more providers, each defined by its type "Class Name, DLL Name"
         and each with settings.  Within the class, MyProviderSection, these get loaded into
         and are accessed by "Providers" property -->
      <add name="SQLStorageProvider" type="Microsoft.IHE.XDS.DocumentRepository.StorageProvider.SQLServerStorageProvider,Microsoft.IHE.XDS.DocumentRepository.StorageProvider" />
    </providers>
  </storageprovider>
  <system.serviceModel>
    <diagnostics>
      <messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" maxSizeOfMessageToLog="50000000" />
    </diagnostics>
    <services>
      <service name="Microsoft.IHE.XDS.DocumentRepository.DocumentRepositoryService" behaviorConfiguration="XDSRepository_ServiceBehavior">
        <host>
          <baseAddresses>
            <!-- HTTPS/TLS -->
            <add baseAddress="https://PC2140:9081/XdsService/XDSRepository" />
            <!-- HTTPS/TLS -->
            <!-- HTTP ONLY -->
            <add baseAddress="http://PC2140:1025/XdsService/XDSRepository" />
            <!-- HTTP ONLY -->
          </baseAddresses>
        </host>
        <endpoint name="XDSRepository_HTTPS_Endpoint" address="https://PC2140:9081/XdsService/XDSRepository" contract="Microsoft.IHE.XDS.DocumentRepository.IDocumentRepository" binding="wsHttpBinding" bindingConfiguration="XDSRepository_HTTPS" />
        <!-- HTTP ONLY -->
        <endpoint name="XDSRepository_HTTP_Endpoint" address="http://PC2140:1025/XdsService/XDSRepository" contract="Microsoft.IHE.XDS.DocumentRepository.IDocumentRepository" binding="wsHttpBinding" bindingConfiguration="XDSRepository_HTTP" />
        <!-- HTTP ONLY -->
        <endpoint name="XDSRepository_Metadata_Endpoint" address="http://PC2140/XdsService/XDSRepository" binding="mexHttpBinding" contract="IMetadataExchange" />
      </service>
    </services>
    <bindings>
      <wsHttpBinding>
        <binding name="XDSRepository_HTTPS" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Mtom" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
          <security mode="Transport">
            <transport clientCredentialType="Certificate" proxyCredentialType="None" />
            <message clientCredentialType="None" establishSecurityContext="false" negotiateServiceCredential="false" />
          </security>
        </binding>
        <!-- HTTP ONLY -->
        <binding name="XDSRepository_HTTP" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Mtom" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
          <security mode="None">
            <transport clientCredentialType="None" proxyCredentialType="None" />
            <message clientCredentialType="None" establishSecurityContext="false" negotiateServiceCredential="false" />
          </security>
        </binding>
        <!-- HTTP ONLY -->
        <binding name="XDSRegistry_HTTPS_Endpoint" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
          <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="2147483647" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
          <security mode="Transport">
            <transport clientCredentialType="Certificate" proxyCredentialType="None" realm="" />
            <message clientCredentialType="Windows" negotiateServiceCredential="true" establishSecurityContext="true" />
          </security>
        </binding>
        <binding name="XDSRegistry_HTTP_Endpoint" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
          <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="2147483647" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
          <security mode="None">
            <transport clientCredentialType="Windows" proxyCredentialType="None" realm="" />
            <message clientCredentialType="Windows" negotiateServiceCredential="true" establishSecurityContext="true" />
          </security>
        </binding>
      </wsHttpBinding>
    </bindings>
    <client>
      <endpoint address="https://PC2140:9080/XdsService/XDSRegistry" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTPS_Endpoint" contract="Microsoft.IHE.XDS.DocumentRepository.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTPS_Endpoint" behaviorConfiguration="XDSRegistry_HTTPS_EndPointBehaviour" />
      <!--<endpoint address="http://192.168.1.117:8731/XDSAsyncService/Microsoft.IHE.XDS.AsyncApp.Registry/XDSRegistryAsync/"
                 binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP_Endpoint"
                 contract="Microsoft.IHE.XDS.DocumentRepository.XDSRegistry.XDSRegistry"
                 name="XDSRegistry_HTTP_Endpoint" />-->
      <endpoint address="http://PC2140:1025/XDSService/xdsregistry" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP_Endpoint" contract="Microsoft.IHE.XDS.DocumentRepository.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTP_Endpoint" />
    </client>
    <behaviors>
      <serviceBehaviors>
        <behavior name="XDSRepository_ServiceBehavior">
          <serviceDebug includeExceptionDetailInFaults="true" />
          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
          <!-- HTTP ONLY -->
          <!--<serviceMetadata httpGetEnabled="true" />-->
          <!-- HTTP ONLY -->
          <serviceCredentials>            
            <!--<serviceCertificate findValue="fef4ab753a11a30a6c4342e63e00f237ef0818c1" storeLocation="LocalMachine" storeName="Root" x509FindType="FindByThumbprint" />-->
            <serviceCertificate findValue="00d27a30a53a09baf082191983c695ad317bee64" storeLocation="LocalMachine" storeName="Root" x509FindType="FindByThumbprint" />
          </serviceCredentials>
        </behavior>
      </serviceBehaviors>
      <endpointBehaviors>
        <behavior name="XDSRegistry_HTTPS_EndPointBehaviour">
          <clientCredentials>
           <!-- <clientCertificate findValue="00d27a30a53a09baf082191983c695ad317bee64" storeLocation="LocalMachine" storeName="My" x509FindType="FindByThumbprint" />-->
            <clientCertificate findValue="00d27a30a53a09baf082191983c695ad317bee64" storeLocation="LocalMachine" storeName="My" x509FindType="FindByThumbprint" />
          </clientCredentials>
        </behavior>
      </endpointBehaviors>
    </behaviors>
  </system.serviceModel>
</configuration>

 

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <section name="storageprovider" type="Microsoft.IHE.XDS.DocumentRepository.StorageProvider.SQLProviderSection,Microsoft.IHE.XDS.DocumentRepository.StorageProvider" />
  </configSections>
  <system.web>
    <webServices>
      <protocols>
        <add name="HttpGet" />
        <add name="HttpPost" />
      </protocols>
    </webServices>
  </system.web>
  <system.diagnostics>
    <sources>
      <source name="System.ServiceModel.MessageLogging" switchValue="Verbose,ActivityTracing">
        <listeners>
          <add type="System.Diagnostics.DefaultTraceListener" name="Default">
            <filter type="" />
          </add>
          <add name="TraceListener">
            <filter type="" />
          </add>
        </listeners>
      </source>
    </sources>
    <sharedListeners>
      <add initializeData="D:\Zorg en ICT 2010\trunk\zi_demo_2009\03-Code\MS XDS framework 2010\App_tracelog_Rep.svclog" type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="TraceListener">
        <filter type="" />
      </add>
    </sharedListeners>
  </system.diagnostics>
 
  <connectionStrings>
    <add name="XDSRequestAsync" connectionString="Database=XDSRepositoryDB;Server=PC2140;Integrated Security=SSPI; enlist=true;"
          providerName="System.Data.SqlClient"  />
    <add name="XDSRepository" connectionString="Database=XDSRepositoryDB;Server=PC2140;Integrated Security=SSPI; enlist=true;"
          providerName="System.Data.SqlClient"  />
    <add name="CONSTRING" connectionString="Database=XDSRepositoryDB;Server=PC2140;Integrated Security=SSPI; enlist=true;"
          providerName="System.Data.SqlClient"  />
    <add name="ATNA" connectionString="Database=XDSRepositoryDB;Server=PC2140;Integrated Security=SSPI; enlist=true;"
          providerName="System.Data.SqlClient" />
  </connectionStrings>
 
  <!--<connectionStrings>
    <add name="XDSRequestAsync" connectionString="Initial Catalog=XDS_Request;Data Source=WIN-AB1XPZUASTM;Integrated Security=SSPI;enlist=false;" providerName="System.Data.SqlClient" />
    <add name="XDSRepository" connectionString="Initial Catalog=XDSRepositoryDB;Data Source=WIN-AB1XPZUASTM;Integrated Security=SSPI;enlist=false;" providerName="System.Data.SqlClient" />
    <add name="CONSTRING" connectionString="Initial Catalog=XDS_Request;Data Source=WIN-AB1XPZUASTM;Integrated Security=SSPI;enlist=false;" providerName="System.Data.SqlClient" />
    <add name="ATNA" connectionString="Initial Catalog=XDSRepositoryDB;Data Source=WIN-AB1XPZUASTM;Integrated Security=SSPI;enlist=false;" providerName="System.Data.SqlClient" />
  </connectionStrings>-->
  <appSettings>
    <add key="HASH_ALGORITHM" value="SHA1" />
    <add key="SYSLOG_SERVER" value="ihe-kudu.wustl.edu" />
    <add key="SYSLOG_PORT" value="4001" />
    <!-- HTTPS/TLS -->
    <add key="XDSREPOSITORY_SERVICE_ADDRESS" value="https://PC2140:9081/XdsService/XDSRepository" />
    <add key="XDSREGISTRY_SERVICE_ADDRESS" value="https://PC2140:9080/XdsService/XDSRegistry" />
    <add key="XDSREGISTRY_ENDPOINT_NAME" value="XDSRegistry_HTTPS_Endpoint" />
    <!-- HTTPS/TLS -->
    <!-- HTTP -->
    <add key="XDSREPOSITORY_SERVICE_ADDRESS" value="http://PC2140:1026/XdsService/XDSRepository" />
    <add key="XDSREGISTRY_SERVICE_ADDRESS" value="http://PC2140:1025/XdsService/XDSRegistry" />
    <add key="XDSREGISTRY_ENDPOINT_NAME" value="XDSRegistry_HTTP_Endpoint" />
    <!-- HTTP -->
    <!-- changes for PnR - register document set async -->
    <add key="IsAsync" value="false" />
  </appSettings>
  <!-- This is the custom provider section which gets loaded into the QualityData.MyProviderSection Class -->
  <storageprovider defaultProvider="SQLStorageProvider">
    <!-- Change this to swap providers -->
    <providers>
      <clear />
      <!-- Here are one or more providers, each defined by its type "Class Name, DLL Name"
         and each with settings.  Within the class, MyProviderSection, these get loaded into
         and are accessed by "Providers" property -->
      <add name="SQLStorageProvider" type="Microsoft.IHE.XDS.DocumentRepository.StorageProvider.SQLServerStorageProvider,Microsoft.IHE.XDS.DocumentRepository.StorageProvider" />
    </providers>
  </storageprovider>
  <system.serviceModel>
    <diagnostics>
      <messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" maxSizeOfMessageToLog="50000000" />
    </diagnostics>
    <services>
      <service name="Microsoft.IHE.XDS.DocumentRepository.DocumentRepositoryService" behaviorConfiguration="XDSRepository_ServiceBehavior">
        <host>
          <baseAddresses>
            <!-- HTTPS/TLS -->
            <add baseAddress="https://PC2140:9081/XdsService/XDSRepository" />
            <!-- HTTPS/TLS -->
            <!-- HTTP ONLY -->
            <add baseAddress="http://PC2140:1025/XdsService/XDSRepository" />
            <!-- HTTP ONLY -->
          </baseAddresses>
        </host>
        <endpoint name="XDSRepository_HTTPS_Endpoint" address="https://PC2140:9081/XdsService/XDSRepository" contract="Microsoft.IHE.XDS.DocumentRepository.IDocumentRepository" binding="wsHttpBinding" bindingConfiguration="XDSRepository_HTTPS" />
        <!-- HTTP ONLY -->
        <endpoint name="XDSRepository_HTTP_Endpoint" address="http://PC2140:1025/XdsService/XDSRepository" contract="Microsoft.IHE.XDS.DocumentRepository.IDocumentRepository" binding="wsHttpBinding" bindingConfiguration="XDSRepository_HTTP" />
        <!-- HTTP ONLY -->
        <endpoint name="XDSRepository_Metadata_Endpoint" address="http://PC2140/XdsService/XDSRepository" binding="mexHttpBinding" contract="IMetadataExchange" />
      </service>
    </services>
    <bindings>
      <wsHttpBinding>
        <binding name="XDSRepository_HTTPS" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Mtom" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
          <security mode="Transport">
            <transport clientCredentialType="Certificate" proxyCredentialType="None" />
            <message clientCredentialType="None" establishSecurityContext="false" negotiateServiceCredential="false" />
          </security>
        </binding>
        <!-- HTTP ONLY -->
        <binding name="XDSRepository_HTTP" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Mtom" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
          <security mode="None">
            <transport clientCredentialType="None" proxyCredentialType="None" />
            <message clientCredentialType="None" establishSecurityContext="false" negotiateServiceCredential="false" />
          </security>
        </binding>
        <!-- HTTP ONLY -->
        <binding name="XDSRegistry_HTTPS_Endpoint" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
          <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="2147483647" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
          <security mode="Transport">
            <transport clientCredentialType="Certificate" proxyCredentialType="None" realm="" />
            <message clientCredentialType="Windows" negotiateServiceCredential="true" establishSecurityContext="true" />
          </security>
        </binding>
        <binding name="XDSRegistry_HTTP_Endpoint" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
          <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="2147483647" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
          <security mode="None">
            <transport clientCredentialType="Windows" proxyCredentialType="None" realm="" />
            <message clientCredentialType="Windows" negotiateServiceCredential="true" establishSecurityContext="true" />
          </security>
        </binding>
      </wsHttpBinding>
    </bindings>
    <client>
      <endpoint address="https://PC2140:9080/XdsService/XDSRegistry" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTPS_Endpoint" contract="Microsoft.IHE.XDS.DocumentRepository.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTPS_Endpoint" behaviorConfiguration="XDSRegistry_HTTPS_EndPointBehaviour" />
      <!--<endpoint address="http://192.168.1.117:8731/XDSAsyncService/Microsoft.IHE.XDS.AsyncApp.Registry/XDSRegistryAsync/"
                 binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP_Endpoint"
                 contract="Microsoft.IHE.XDS.DocumentRepository.XDSRegistry.XDSRegistry"
                 name="XDSRegistry_HTTP_Endpoint" />-->
      <endpoint address="http://PC2140:1025/XDSService/xdsregistry" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP_Endpoint" contract="Microsoft.IHE.XDS.DocumentRepository.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTP_Endpoint" />
    </client>
    <behaviors>
      <serviceBehaviors>
        <behavior name="XDSRepository_ServiceBehavior">
          <serviceDebug includeExceptionDetailInFaults="true" />
          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
          <!-- HTTP ONLY -->
          <!--<serviceMetadata httpGetEnabled="true" />-->
          <!-- HTTP ONLY -->
          <serviceCredentials>            
            <!--<serviceCertificate findValue="fef4ab753a11a30a6c4342e63e00f237ef0818c1" storeLocation="LocalMachine" storeName="Root" x509FindType="FindByThumbprint" />-->
            <serviceCertificate findValue="00d27a30a53a09baf082191983c695ad317bee64" storeLocation="LocalMachine" storeName="Root" x509FindType="FindByThumbprint" />
          </serviceCredentials>
        </behavior>
      </serviceBehaviors>
      <endpointBehaviors>
        <behavior name="XDSRegistry_HTTPS_EndPointBehaviour">
          <clientCredentials>
           <!-- <clientCertificate findValue="00d27a30a53a09baf082191983c695ad317bee64" storeLocation="LocalMachine" storeName="My" x509FindType="FindByThumbprint" />-->
            <clientCertificate findValue="00d27a30a53a09baf082191983c695ad317bee64" storeLocation="LocalMachine" storeName="My" x509FindType="FindByThumbprint" />
          </clientCredentials>
        </behavior>
      </endpointBehaviors>
    </behaviors>
  </system.serviceModel>
</configuration>

 

XDSRegistryServiceHost   app.config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  </configSections>
  <system.diagnostics>
    <sources>
      <source name="System.ServiceModel.MessageLogging" switchValue="Verbose,ActivityTracing">
        <listeners>
          <add type="System.Diagnostics.DefaultTraceListener" name="Default">
            <filter type="" />
          </add>
          <add name="TraceListener">
            <filter type="" />
          </add>
        </listeners>
      </source>
    </sources>
    <sharedListeners>
      <add initializeData="D:\Zorg en ICT 2010\trunk\zi_demo_2009\03-Code\MS XDS framework 2010\App_tracelog_Reg.svclog" type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="TraceListener">
        <filter type="" />
      </add>
    </sharedListeners>
  </system.diagnostics>
  <connectionStrings>
    <add name="XDSRequestAsync" connectionString="Database=XDSRegistryDB;Server=PC2140;Integrated Security=SSPI; enlist=true;" providerName="System.Data.SqlClient" />
    <add name="XDSRegistry" connectionString="Database=XDSRegistryDB;Server=PC2140;Integrated Security=SSPI; enlist=true;" providerName="System.Data.SqlClient" />
    <add name="CONSTRING" connectionString="Database=XDSRegistryDB;Server=PC2140;Integrated Security=SSPI; enlist=true;" providerName="System.Data.SqlClient" />
    <add name="ATNA" connectionString="Database=XDSRegistryDB;Server=PC2140;Integrated Security=SSPI; enlist=true;" providerName="System.Data.SqlClient" />
  </connectionStrings>
  <!--<connectionStrings>
        <add name="XDSRegistry" connectionString="Initial Catalog=XDSRegistryDB;Data Source=WIN-AB1XPZUASTM;uid=sa;pwd=$topAdm1n;"
           providerName="System.Data.SqlClient" />
        <add name="ATNA" connectionString="Initial Catalog=XDSRegistryDB;Data Source=WIN-AB1XPZUASTM;uid=sa;pwd=$topAdm1n;"
           providerName="System.Data.SqlClient" />
         <add name="CONSTRING" connectionString="Initial Catalog=XDS_Request;Data Source=WIN-AB1XPZUASTM;uid=sa;pwd=$topAdm1n;enlist=false;"
           providerName="System.Data.SqlClient" />
    </connectionStrings> -->
  <appSettings>
    <add key="SYSLOG_SERVER" value="ihe-kudu.wustl.edu" />
    <add key="SYSLOG_PORT" value="4001" />
    <add key="XDSREGISTRY_SERVICE_ADDRESS" value="http://PC2140:1025/XdsService/XDSRegistry" />
    <add key="PATIENT_ROOT_EXTENSION_SEPARATOR" value="{0}^^^&amp;{1}&amp;ISO" />
    <add key="ClientSettingsProvider.ServiceUri" value="" />
  </appSettings>
  <system.serviceModel>
    <diagnostics>
      <messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" maxSizeOfMessageToLog="50000000" />
    </diagnostics>
    <services>
      <service name="Microsoft.IHE.XDS.DocumentRegistry.DocumentRegistryService" behaviorConfiguration="XDSRegistry_ServiceBehavior">
        <host>
          <baseAddresses>
            <!-- HTTPS/TLS -->
            <add baseAddress="https://PC2140:9080/XdsService/XDSRegistry" />
            <!-- HTTPS/TLS -->
            <!-- HTTP ONLY -->
            <add baseAddress="http://PC2140:1025/XdsService/XDSRegistry" />
            <!-- HTTP ONLY -->
          </baseAddresses>
        </host>
        <endpoint name="XDSRegistry_HTTPS_Endpoint" contract="Microsoft.IHE.XDS.DocumentRegistry.IDocumentRegistry" address="https://PC2140:9080/XdsService/XDSRegistry" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTPS" />
        <!-- HTTP ONLY -->
        <endpoint name="XDSRegistry_HTTP_Endpoint" contract="Microsoft.IHE.XDS.DocumentRegistry.IDocumentRegistry" address="http://PC2140:1025/XdsService/XDSRegistry" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP" />
        <!-- HTTP ONLY -->
        <endpoint name="XDSRegistry_Metadata_Endpoint" address="http://PC2140/XdsService/XDSRegistry" binding="mexHttpBinding" contract="IMetadataExchange" />
      </service>
    </services>
    <bindings>
      <wsHttpBinding>
        <binding name="XDSRegistry_HTTPS" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
          <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="2147483647" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
          <security mode="Transport">
            <transport clientCredentialType="Certificate" proxyCredentialType="None" />
            <message clientCredentialType="None" establishSecurityContext="false" negotiateServiceCredential="false" />
          </security>
        </binding>
        <!-- HTTP ONLY -->
        <binding name="XDSRegistry_HTTP" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
          <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="2147483647" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
          <security mode="None">
            <transport clientCredentialType="None" proxyCredentialType="None" />
            <message clientCredentialType="None" establishSecurityContext="false" negotiateServiceCredential="false" />
          </security>
        </binding>
        <!-- HTTP ONLY -->
      </wsHttpBinding>
    </bindings>
    <behaviors>
      <serviceBehaviors>
        <behavior name="XDSRegistry_ServiceBehavior">
          <serviceDebug includeExceptionDetailInFaults="true" />
          <!--ilink-->
          <!--<serviceMetadata httpsGetEnabled="true" />-->
          <!-- HTTP ONLY -->
          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
          <!-- HTTP ONLY -->
          <serviceCredentials>
            <serviceCertificate findValue="00d27a30a53a09baf082191983c695ad317bee64" storeLocation="LocalMachine" storeName="Root" x509FindType="FindByThumbprint" />
          </serviceCredentials>
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>
  <system.web>
    <membership defaultProvider="ClientAuthenticationMembershipProvider">
      <providers>
        <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
      </providers>
    </membership>
    <roleManager defaultProvider="ClientRoleProvider" enabled="true">
      <providers>
        <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
      </providers>
    </roleManager>
  </system.web>
</configuration>

 

XDSTestHarness  app.config

<?xml version="1.0" encoding="utf-8" ?>
<configuration>

    <appSettings>
        <add key="ebRIMTransformFile" value="D:\Zorg en ICT Demo Project\trunk\zi_demo_2009\03-Code\MS XDS framework 2010\XDS_b Sync impl\Testing\XDSTestHarness\TransformFiles\ebRIM_21_to30_Conversion1.xslt"/>
        <add key="REPOSITORY_ENDPOINT_NAME" value="XDSRepository_HTTP_Endpoint"/>
        <add key="REGISTRY_ENDPOINT_NAME" value="XDSRegistry_HTTP_Endpoint"/>
    </appSettings>
    <system.web>
        <webServices>
            <protocols>
                <add name ="HttpGet"/>
                <add name="HttpPost"/>
            </protocols>
        </webServices>
    </system.web>
    <system.serviceModel>
        <diagnostics>
            <messageLogging logEntireMessage="true" logMalformedMessages="true"
                logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" />
        </diagnostics>

        <bindings>
            <wsHttpBinding>
                <binding name="WSHttpBinding_XDSRegistry" closeTimeout="00:01:00"
                 openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                 bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
                 maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Mtom"
                 textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
                    <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647"
                     maxBytesPerRead="4096" maxNameTableCharCount="2147483647" />
                    <reliableSession ordered="true" inactivityTimeout="00:10:00"
                     enabled="false" />
                    <security mode="None">
                        <transport clientCredentialType="Windows" proxyCredentialType="None"
                         realm="" />
                        <message clientCredentialType="Windows" negotiateServiceCredential="true"
                         establishSecurityContext="true" />
                    </security>
                </binding>                
                <binding name="XDSRegistry_HTTP_Endpoint" closeTimeout="00:01:00"
                 openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                 bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
                 maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Mtom"
                 textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
                    <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647"
                     maxBytesPerRead="4096" maxNameTableCharCount="2147483647" />
                    <reliableSession ordered="true" inactivityTimeout="00:10:00"
                     enabled="false" />
                    <security mode="None">
                        <transport clientCredentialType="Windows" proxyCredentialType="None"
                         realm="" />
                        <message clientCredentialType="Windows" negotiateServiceCredential="true"
                         establishSecurityContext="true" />
                    </security>
                </binding>                
                <binding name="XDSRepository_HTTP_Endpoint" closeTimeout="00:01:00"
                 openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                 bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
                 maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Mtom"
                 textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
                    <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647"
                     maxBytesPerRead="4096" maxNameTableCharCount="2147483647" />
                    <reliableSession ordered="true" inactivityTimeout="00:10:00"
                     enabled="false" />
                    <security mode="None">
                        <transport clientCredentialType="Windows" proxyCredentialType="None"
                         realm="" />
                        <message clientCredentialType="Windows" negotiateServiceCredential="true"
                         establishSecurityContext="true" />
                    </security>
                </binding>
            </wsHttpBinding>
        </bindings>


        <client>            
            <endpoint address="http://PC2140:1025/XdsService/XDSRegistry"
             binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP_Endpoint"
             contract="Microsoft.XDS.Test.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTP_Endpoint" />            
            <endpoint address="http://PC2140:1026/XdsService/XDSRepository"
             binding="wsHttpBinding" bindingConfiguration="XDSRepository_HTTP_Endpoint"
             contract="Microsoft.XDS.Test.XDSRepository.XDSRepository" name="XDSRepository_HTTP_Endpoint" />
        </client>

        <behaviors>
            <endpointBehaviors>
                <behavior name="clientBehaviour">
                    <clientCredentials>
                        <clientCertificate findValue="fef4ab753a11a30a6c4342e63e00f237ef0818c1"
       storeLocation="LocalMachine"
       storeName="My"
       x509FindType="FindByThumbprint" />
                    </clientCredentials>
                </behavior>
            </endpointBehaviors>
        </behaviors>
    </system.serviceModel>        
</configuration>

 

Developer
Feb 1, 2010 at 3:18 PM
Are you getting any errros when you try to browse to the service endpoint or is it a default "page cannot be displayed" error. Also try to see, if the ports you installed to are open. And if they are open, try to make sure if you bound the certificates to those ports using the netsh tool on server 2008/vista and the httpcfg tool on Server 2003/XP and earlier systems. Try uncommenting the lines in thw windows service host project's program.cs to start the service from a console. That'll tell you what problems you are running into straight away. 

e.g.

//try
            //{
            //    System.ServiceModel.ServiceHost svcHost = new System.ServiceModel.ServiceHost(typeof(DocumentRepositoryService));
            //    svcHost.Open();
            //}
            //catch (System.Exception ex)
            //{
            //    string t = ex.Message;
            //}
            System.Console.WriteLine("service up..");
            System.Console.ReadLine();

 

           try
           { 
            System.ServiceModel.ServiceHost svcHost = new System.ServiceModel.ServiceHost(typeof(DocumentRepositoryService));
            svcHost.Open();
            }
            catch (System.Exception ex)
            {
                string t = ex.Message;
            }
            System.Console.WriteLine("service up..");
            System.Console.ReadLine();

 

 

 

Feb 15, 2010 at 8:43 AM

Thank you for the reply, I since have got it working.