Cannot connect to Document Registry/Repository service

Dec 8, 2008 at 2:35 PM
Hi all,

I installed the latest release with the help of the manual "XDSb Build and Deployment Guide.doc", the services are running in ServiceControl Manager ("Started") but I cannot connect to these services. I am also unable to browse the services. I started the Test harness tool and got the exception listed below. I saw in this discussion board that other people had the same problem but unfortunately without a description how to solve this problem.

------------------------------------------------------------------------Test harness exception----------------------------------------------------------------------------------------
System.ServiceModel.EndpointNotFoundException: Could not connect to http://localhost:19010/XdsService/XDSRepository. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:19010.  ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:19010

   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)

   at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)

   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)

   --- End of inner exception stack trace ---

   at System.Net.HttpWebRequest.GetRequestStream()

   at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream()

   --- End of inner exception stack trace ---



Server stack trace:

   at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream()

   at System.ServiceModel.Channels.HttpOutput.Send(TimeSpan timeout)

   at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.SendRequest(Message message, TimeSpan timeout)

   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)

   at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)

   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)

   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)



Exception rethrown at [0]:

   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

   at Microsoft.XDS.Test.XDSRepository.XDSRepository.RetrieveDocumentSet(Message request)

   at Microsoft.XDS.Test.XDSRepository.XDSRepositoryClient.RetrieveDocumentSet(Message request) in E:\CodePlex\Version1\Testing\XDSTestHarness\Service References\XDSRepository.cs:line 68

   at Microsoft.XDS.Test.frmIheTstHarness.btnRetrieve_Click(Object sender, EventArgs e) in E:\CodePlex\Version1\Testing\XDSTestHarness\frmIheTstHarness.cs:line 360
---------------------------
OK   
---------------------------

I will also paste the config files of repository and registry:
========================================================================================================================
Repository - 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>

    <connectionStrings>
        <add name="XDSRepository" connectionString="Database=XDSRepositoryDB;Server=ris-demo-server;Integrated Security=SSPI"
          providerName="System.Data.SqlClient" />
        <add name="ATNA" connectionString="Database=XDSRepositoryDB;Server=ris-demo-server;Integrated Security=SSPI"
          providerName="System.Data.SqlClient" />
    </connectionStrings>


    <appSettings>
        <add key="HASH_ALGORITHM" value="SHA1" />
        <add key="SYSLOG_SERVER" value="129.6.24.109" />
        <add key="SYSLOG_PORT" value="8087" />

        <!-- HTTPS/TLS -->
        <add key="XDSREPOSITORY_SERVICE_ADDRESS" value="https://localhost:19012/XdsService/XDSRepository" />
        <add key="XDSREGISTRY_SERVICE_ADDRESS" value="https://localhost:19013/XdsService/XDSRegistry"/>
        <add key ="XDSREGISTRY_ENDPOINT_NAME" value="XDSRegistry_HTTPS_Endpoint"/>
        <!-- HTTPS/TLS-->

        <!-- HTTP -->
        <add key="XDSREPOSITORY_SERVICE_ADDRESS" value="http://localhost:19010/XdsService/XDSRepository" />
        <add key="XDSREGISTRY_SERVICE_ADDRESS" value="http://localhost:19011/XdsService/XDSRegistry"/>
        <add key ="XDSREGISTRY_ENDPOINT_NAME" value="XDSRegistry_HTTP_Endpoint"/>
        <!-- HTTP -->

    </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>

        <services>
            <service name="Microsoft.IHE.XDS.DocumentRepository.DocumentRepositoryService" behaviorConfiguration="XDSRepository_ServiceBehavior">

                <host>
                    <baseAddresses>

                        <!-- HTTPS/TLS -->
              <add baseAddress="https://localhost:19012/XdsService/XDSRepository" />
            <!--HTTPS/TLS -->

                        <!-- HTTP ONLY -->
                        <add baseAddress="http://localhost:19010/XdsService/XDSRepository" />
                        <!-- HTTP ONLY -->

                    </baseAddresses>
                </host>

                <endpoint name="XDSRepository_HTTPS_Endpoint"
                            address="https://localhost:19012/XdsService/XDSRepository"
                            contract="Microsoft.IHE.XDS.DocumentRepository.IDocumentRepository"
                            binding="wsHttpBinding"
                            bindingConfiguration="XDSRepository_HTTPS" />

                <!-- HTTP ONLY -->

                <endpoint name="XDSRepository_HTTP_Endpoint"
                            address="http://localhost:19010/XdsService/XDSRepository"
                            contract="Microsoft.IHE.XDS.DocumentRepository.IDocumentRepository"
                            binding="wsHttpBinding"
                            bindingConfiguration="XDSRepository_HTTP" />

                <!-- HTTP ONLY -->

                <endpoint name="XDSRepository_Metadata_Endpoint"
                            address="http://localhost/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="524288" maxReceivedMessageSize="65536" messageEncoding="Mtom" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
                    <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                    <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="524288" maxReceivedMessageSize="65536" messageEncoding="Mtom" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
                    <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                    <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="Mtom" textEncoding="utf-8" useDefaultWebProxy="true"
                    allowCookies="false">
                    <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                        maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                    <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="Mtom" textEncoding="utf-8" useDefaultWebProxy="true"
                    allowCookies="false">
                    <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                        maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                    <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://localhost:19013/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://localhost:19011/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="false" />
          
                    <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
          
                    <!-- HTTP ONLY -->
                    <!-- <serviceMetadata httpGetEnabled="true" />-->
                    <!-- HTTP ONLY -->

                    <serviceCredentials>
                        <serviceCertificate findValue="824aced4b7600d8547eceec02c3c86ea6d23cb2f"
                          storeLocation="LocalMachine"
                          storeName="Root"
                          x509FindType="FindByThumbprint" />
                    </serviceCredentials>
                </behavior>
            </serviceBehaviors>

            <endpointBehaviors>
                <behavior name="XDSRegistry_HTTPS_EndPointBehaviour">
                    <clientCredentials>

                        <clientCertificate findValue="824aced4b7600d8547eceec02c3c86ea6d23cb2f"
                            storeLocation="LocalMachine"
                            storeName="My"
                            x509FindType="FindByThumbprint" />

                    </clientCredentials>
                </behavior>
            </endpointBehaviors>


        </behaviors>


    </system.serviceModel>
</configuration>

=====================================================================================================================
and Registry - 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>

    <connectionStrings>
        <add name="XDSRegistry" connectionString="Database=XDSRegistryDB;Server=ris-demo-server;Integrated Security=SSPI"
           providerName="System.Data.SqlClient" />
        <add name="ATNA" connectionString="Database=XDSRegistryDB;Server=ris-demo-server;Integrated Security=SSPI"
           providerName="System.Data.SqlClient" />
    </connectionStrings>

    <appSettings>
        <add key="SYSLOG_SERVER" value="129.6.24.109" />
        <add key="SYSLOG_PORT" value="8087" />
        <add key="XDSREGISTRY_SERVICE_ADDRESS" value="http://localhost:19011/XdsService/XDSRegistry" />
        <add key="PATIENT_ROOT_EXTENSION_SEPARATOR" value="{0}^^^&amp;{1}&amp;ISO"/>
    </appSettings>



    <system.serviceModel>

        <services>
            <service name="Microsoft.IHE.XDS.DocumentRegistry.DocumentRegistryService" behaviorConfiguration="XDSRegistry_ServiceBehavior">

                <host>
                    <baseAddresses>

                        <!-- HTTPS/TLS -->
                        <add baseAddress="https://localhost:19013/XdsService/XDSRegistry"/>
                         <!--HTTPS/TLS -->

                        <!-- HTTP ONLY -->
                        <add baseAddress="http://localhost:19011/XdsService/XDSRegistry"/>
                        <!-- HTTP ONLY -->

                    </baseAddresses>
                </host>
 
                <endpoint name="XDSRegistry_HTTPS_Endpoint" contract="Microsoft.IHE.XDS.DocumentRegistry.IDocumentRegistry"
                            address="https://localhost:19013/XdsService/XDSRegistry"
                            binding="wsHttpBinding"
                            bindingConfiguration="XDSRegistry_HTTPS" />

                <!-- HTTP ONLY -->
                <endpoint name="XDSRegistry_HTTP_Endpoint" contract="Microsoft.IHE.XDS.DocumentRegistry.IDocumentRegistry"
                            address="http://localhost:19011/XdsService/XDSRegistry"
                            binding="wsHttpBinding"
                            bindingConfiguration="XDSRegistry_HTTP" />
                <!-- HTTP ONLY -->

                <endpoint name="XDSRegistry_Metadata_Endpoint"
                            address="http://localhost/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="524288" maxReceivedMessageSize="65536"
                           messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
                           allowCookies="false">

                    <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                       maxBytesPerRead="4096" maxNameTableCharCount="16384" />

                    <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="524288" maxReceivedMessageSize="65536"
                       messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
                       allowCookies="false">

                    <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                       maxBytesPerRead="4096" maxNameTableCharCount="16384" />

                    <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="false" />

                    <!--<serviceMetadata httpsGetEnabled="true" />-->

                    <!-- HTTP ONLY -->
                    <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
                    <!-- HTTP ONLY -->

                    <serviceCredentials>
                        <serviceCertificate findValue="824aced4b7600d8547eceec02c3c86ea6d23cb2f"
                          storeLocation="LocalMachine"
                          storeName="Root"
                          x509FindType="FindByThumbprint" />
                    </serviceCredentials>

                </behavior>

            </serviceBehaviors>

        </behaviors>


    </system.serviceModel>

</configuration>



Does anybody have an idea where the problem could be??

Thanks in advance,
Viktor


Dec 17, 2008 at 8:52 AM
Hi,

I found the reason why it was not possible to perform the "smoke test" after some debugging sessions. The whole secure configuration was the reason for this behaviour. I just comment in all App.config files the https configuration.
After this action, a smoke test could be done.

Viktor
Jul 2, 2009 at 11:58 AM

Hello Viktor,

I ma facing same problem like lisvi . I have commented secure configuration code but still not working. I have made changes in all three app.config files.

is there any other place where do i need to made changes ? here with i inserting my app.config code.  Would you pls look into it and help me that where i m wrong ?

repository - app.config file.

<?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>

	<connectionStrings>
		<add name="XDSRepository" connectionString="Database=XDSRepositoryDB;Server=gis\gismed;Integrated Security=SSPI;enlist=true "
		  providerName="System.Data.SqlClient"  />
		<add name="ATNA" connectionString="Database=XDSRepositoryDB;Server=ihemsft1;Integrated Security=SSPI"
		  providerName="System.Data.SqlClient" />
	</connectionStrings>


	<appSettings>
		<add key="HASH_ALGORITHM" value="SHA1" />
		<add key="SYSLOG_SERVER" value="129.6.24.109" />
		<add key="SYSLOG_PORT" value="8087" />

		<!-- HTTPS/TLS -->
		<!--<add key="XDSREPOSITORY_SERVICE_ADDRESS" value="https://msft-ihe1:8081/XdsService/XDSRepository" />
		<add key="XDSREGISTRY_SERVICE_ADDRESS" value="https://msft-ihe1:8081/XdsService/XDSRegistry"/>
		<add key ="XDSREGISTRY_ENDPOINT_NAME" value="XDSRegistry_HTTPS_Endpoint"/>-->
		<!-- HTTPS/TLS -->

		<!-- HTTP -->
		<add key="XDSREPOSITORY_SERVICE_ADDRESS" value="http://sw-14:8080/XdsService/XDSRepository" />
		<add key="XDSREGISTRY_SERVICE_ADDRESS" value="http://sw-14:8080/XdsService/XDSRegistry"/>
		<add key ="XDSREGISTRY_ENDPOINT_NAME" value="XDSRegistry_HTTP_Endpoint"/>
		<!-- HTTP -->

	</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>

		<services>
			<service name="Microsoft.IHE.XDS.DocumentRepository.DocumentRepositoryService" behaviorConfiguration="XDSRepository_ServiceBehavior">

				<host>
					<baseAddresses>

						<!-- HTTPS/TLS -->
						<!--<add baseAddress="https://msft-ihe1:8081/XdsService/XDSRepository" />-->
						<!-- HTTPS/TLS -->

						<!-- HTTP ONLY -->
						<add baseAddress="http://sw-14:8080/XdsService/XDSRepository" />
						<!-- HTTP ONLY -->

					</baseAddresses>
				</host>

				<!--<endpoint name="XDSRepository_HTTPS_Endpoint"
							address="https://msft-ihe1:8081/XdsService/XDSRepository"
							contract="Microsoft.IHE.XDS.DocumentRepository.IDocumentRepository" 
							binding="wsHttpBinding" 
							bindingConfiguration="XDSRepository_HTTPS" />-->

				<!-- HTTP ONLY -->

				<endpoint name="XDSRepository_HTTP_Endpoint"
							address="http://msft-ihe1:8080/XdsService/XDSRepository"
							contract="Microsoft.IHE.XDS.DocumentRepository.IDocumentRepository" 
							binding="wsHttpBinding" 
							bindingConfiguration="XDSRepository_HTTP" />

				<!-- HTTP ONLY -->

				<endpoint name="XDSRepository_Metadata_Endpoint" 
							address="http://msft-ihe1/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="524288" maxReceivedMessageSize="65536" messageEncoding="Mtom" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
					<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
					<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="524288" maxReceivedMessageSize="65536" messageEncoding="Mtom" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
					<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
					<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="Mtom" textEncoding="utf-8" useDefaultWebProxy="true"
                    allowCookies="false">
					<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                        maxBytesPerRead="4096" maxNameTableCharCount="16384" />
					<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="8192" maxArrayLength="16384"
					 maxBytesPerRead="4096" maxNameTableCharCount="16384" />
					<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://msft-ihe1:8081/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://sw-14:8080/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="false" />

					<!--<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />-->

					<!-- HTTP ONLY -->
					<serviceMetadata httpGetEnabled="true" />
					<!-- HTTP ONLY -->

					<!--<serviceCredentials>
						<serviceCertificate findValue="824aced4b7600d8547eceec02c3c86ea6d23cb2f"
						  storeLocation="LocalMachine"
						  storeName="Root"
						  x509FindType="FindByThumbprint" />
					</serviceCredentials>-->
				</behavior>
			</serviceBehaviors>

			<endpointBehaviors>
				<!--<behavior name="XDSRegistry_HTTPS_EndPointBehaviour">
					<clientCredentials>

						<clientCertificate findValue="824aced4b7600d8547eceec02c3c86ea6d23cb2f"
							storeLocation="LocalMachine"
							storeName="My"
							x509FindType="FindByThumbprint" />

					</clientCredentials>
				</behavior>-->
			</endpointBehaviors>


		</behaviors>


	</system.serviceModel>
</configuration>
<!--l version="1.0" encoding="utf-8-->
Registry app.config file.

<font size="2" color="#0000ff">

<?
</font>xml version="1.0" encoding="utf-8"
 ?><font size="2" color="#0000ff">
<
</font>
configuration
><font size="2" color="#0000ff">
<
</font>
configSections
><font size="2" color="#0000ff">
<
</font>
section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
 /><font size="2" color="#0000ff">
</
</font>
configSections
><font size="2" color="#0000ff">
<
</font>
connectionStrings
><font size="2" color="#0000ff">
<
</font>
add name="XDSRegistry" connectionString="Database=XDSRegistryDB;Server=gis\gismed;Integrated Security=SSPI;enlist=true
"
<font size="2" color="#0000ff"></font>providerName="System.Data.SqlClient"
 /><font size="2" color="#0000ff">
<
</font>
add name="ATNA" connectionString="Database=XDSRegistryDB;Server=ihemsft1;Integrated Security=SSPI
"
<font size="2" color="#0000ff"></font>providerName="System.Data.SqlClient"
 /><font size="2" color="#0000ff">
</
</font>
connectionStrings
><font size="2" color="#0000ff">
<
</font>
appSettings
><font size="2" color="#0000ff">
<
</font>
add key="SYSLOG_SERVER" value="129.6.24.109"
 /><font size="2" color="#0000ff">
<
</font>
add key="SYSLOG_PORT" value="8087"
 /><font size="2" color="#0000ff">
<
</font>
add key="XDSREGISTRY_SERVICE_ADDRESS" value="http://sw-14:8080/XdsService/XDSRegistry"
 /><font size="2" color="#0000ff">
<
</font>
add key="PATIENT_ROOT_EXTENSION_SEPARATOR" value="{0}^^^&amp;{1}&amp;ISO"
/><font size="2" color="#0000ff">
</
</font>
appSettings
>
 
 
<font size="2" color="#0000ff">
<
</font>
system.serviceModel
><font size="2" color="#0000ff">
<
</font>
services
><font size="2" color="#0000ff">
<
</font>
service name="Microsoft.IHE.XDS.DocumentRegistry.DocumentRegistryService" behaviorConfiguration="XDSRegistry_ServiceBehavior"
><font size="2" color="#0000ff">
<
</font>
host
><font size="2" color="#0000ff">
<
</font>
baseAddresses
><font size="2" color="#0000ff">
<!--
</font>
HTTPS/TLS
--><font size="2" color="#0000ff">
<!--
</font>
<add baseAddress="https://msft-ihe1:443/XdsService/XDSRegistry"/>
--><font size="2" color="#0000ff">
<!--
</font>
HTTPS/TLS
--><font size="2" color="#0000ff">
<!--
</font>
HTTP ONLY
--><font size="2" color="#0000ff">
<
</font>
add baseAddress="http://sw-14:8080/XdsService/XDSRegistry"
/><font size="2" color="#0000ff">
<!--
</font>
HTTP ONLY
--><font size="2" color="#0000ff">
</
</font>
baseAddresses
><font size="2" color="#0000ff">
</
</font>
host
><font size="2" color="#0000ff">
<!--
</font>
<endpoint name="XDSRegistry_HTTPS_Endpoint" contract="Microsoft.IHE.XDS.DocumentRegistry.IDocumentRegistry"
address="https://msft-ihe1:443/XdsService/XDSRegistry"
binding="wsHttpBinding"
<font size="2" color="#008000">
bindingConfiguration="XDSRegistry_HTTPS" />
</font>
--><font size="2" color="#0000ff">
<!--
</font>
HTTP ONLY
--><font size="2" color="#0000ff">
<
</font>
endpoint name="XDSRegistry_HTTP_Endpoint" contract="Microsoft.IHE.XDS.DocumentRegistry.IDocumentRegistry
"
<font size="2" color="#0000ff"></font>address="http://msft-ihe1:8080/XdsService/XDSRegistry
"
<font size="2" color="#0000ff"></font>binding="wsHttpBinding
"
<font size="2" color="#0000ff"></font>bindingConfiguration="XDSRegistry_HTTP"
 /><font size="2" color="#0000ff">
<!--
</font>
HTTP ONLY
--><font size="2" color="#0000ff">
<
</font>
endpoint name="XDSRegistry_Metadata_Endpoint
"
<font size="2" color="#0000ff"></font>address="http://msft-ihe1/XdsService/XDSRegistry
"
<font size="2" color="#0000ff"></font>binding="mexHttpBinding
"
<font size="2" color="#0000ff"></font>contract="IMetadataExchange"
 /><font size="2" color="#0000ff">
</
</font>
service
><font size="2" color="#0000ff">
</
</font>
services
>
 
<font size="2" color="#0000ff">
<
</font>
bindings
><font size="2" color="#0000ff">
<
</font>
wsHttpBinding
><font size="2" color="#0000ff">
<!--
</font>
<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="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<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>
<font size="2" color="#008000">
</binding>
</font>
--><font size="2" color="#0000ff">
<!--
</font>
HTTP ONLY
--><font size="2" color="#0000ff">
<
</font>
binding name="XDSRegistry_HTTP" closeTimeout="00:10:00
"
<font size="2" color="#0000ff"></font>openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00
"
<font size="2" color="#0000ff"></font>bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard
"
<font size="2" color="#0000ff"></font>maxBufferPoolSize="524288" maxReceivedMessageSize="65536
"
<font size="2" color="#0000ff"></font>messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true
"
<font size="2" color="#0000ff"></font>allowCookies="false"
>
 
 
<font size="2" color="#0000ff">
<
</font>
readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384
"
<font size="2" color="#0000ff"></font>maxBytesPerRead="4096" maxNameTableCharCount="16384"
 /><font size="2" color="#0000ff">
<
</font>
reliableSession ordered="true" inactivityTimeout="00:10:00
"
<font size="2" color="#0000ff"></font>enabled="false"
 /><font size="2" color="#0000ff">
<
</font>
security mode="None"
><font size="2" color="#0000ff">
<
</font>
transport clientCredentialType="None" proxyCredentialType="None"
 /><font size="2" color="#0000ff">
<
</font>
message clientCredentialType="None" establishSecurityContext="false" negotiateServiceCredential="false"
/><font size="2" color="#0000ff">
</
</font>
security
><font size="2" color="#0000ff">
</
</font>
binding
><font size="2" color="#0000ff">
<!--
</font>
HTTP ONLY
--><font size="2" color="#0000ff">
</
</font>
wsHttpBinding
><font size="2" color="#0000ff">
</
</font>
bindings
>
 
<font size="2" color="#0000ff">
<
</font>
behaviors
><font size="2" color="#0000ff">
<
</font>
serviceBehaviors
><font size="2" color="#0000ff">
<
</font>
behavior name="XDSRegistry_ServiceBehavior"
 ><font size="2" color="#0000ff">
<
</font>
serviceDebug includeExceptionDetailInFaults="false"
 /><font size="2" color="#0000ff">
<!--
</font>
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
-->
 
<font size="2" color="#0000ff">
<!--
</font>
HTTP ONLY
--><font size="2" color="#0000ff">
<
</font>
serviceMetadata httpGetEnabled="true"
 /><font size="2" color="#0000ff">
<!--
</font>
HTTP ONLY
--><font size="2" color="#0000ff">
<!--
</font>
<serviceCredentials>
<serviceCertificate findValue="824aced4b7600d8547eceec02c3c86ea6d23cb2f"
storeLocation="LocalMachine"
storeName="Root"
x509FindType="FindByThumbprint" />
<font size="2" color="#008000">
</serviceCredentials>
</font>
--><font size="2" color="#0000ff">
</
</font>
behavior
><font size="2" color="#0000ff">
</
</font>
serviceBehaviors
><font size="2" color="#0000ff">
</
</font>
behaviors
>
 
<font size="2" color="#0000ff">
</
</font>
system.serviceModel
><font size="2" color="#0000ff">
</
</font>
configuration
>

testharness app.config

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

	<appSettings>
		<add key="ebRIMTransformFile" value="C:\IHE_Current_Working\XDSTestHarness_Src_RetrieveAdded\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.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="524288" maxReceivedMessageSize="65536" messageEncoding="text"
				 textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
					<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
					 maxBytesPerRead="4096" maxNameTableCharCount="16384" />
					<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_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="Mtom"
				 textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
					<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
					 maxBytesPerRead="4096" maxNameTableCharCount="16384" />
					<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="8192" maxArrayLength="16384"

					 maxBytesPerRead="4096" maxNameTableCharCount="16384" />

					<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_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="Mtom"
				 textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
					<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
					 maxBytesPerRead="4096" maxNameTableCharCount="16384" />
					<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="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="524288" maxReceivedMessageSize="65536" messageEncoding="Mtom"
				 textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
					<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
					 maxBytesPerRead="4096" maxNameTableCharCount="16384" />
					<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://msft-ihe1.ihe.net:8888/XdsService/XDSRegistry"
			 binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTPS_Endpoint"
			 contract="Microsoft.XDS.Test.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTPS_Endpoint" behaviorConfiguration="clientBehaviour" />-->
			<endpoint address="http://SW-14:8080/XdsService/XDSRegistry"
			 binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP_Endpoint"
			 contract="Microsoft.XDS.Test.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTP_Endpoint" />
			<!--<endpoint address="https://msft-ihe1.ihe.net:8888/XdsService/XDSRepository"
			 binding="wsHttpBinding" bindingConfiguration="XDSRepository_HTTPS_Endpoint"
			 contract="Microsoft.XDS.Test.XDSRepository.XDSRepository" name="XDSRepository_HTTPS_Endpoint" behaviorConfiguration="clientBehaviour" />-->
			<endpoint address="http://SW-14:8080/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="824aced4b7600d8547eceec02c3c86ea6d23cb2f"
       storeLocation="LocalMachine"
       storeName="My"
       x509FindType="FindByThumbprint" />

					</clientCredentials>-->
				</behavior>
			</endpointBehaviors>
		</behaviors>

	</system.serviceModel>	
	
</configuration>

I am stuck-up since 2 days. Pls help me out.

Thanks,

Dimple

 

  <!-- HTTPS/TLS --> <!--<add key="XDSREPOSITORY_SERVICE_ADDRESS" value="https://msft-ihe1:8081/XdsService/XDSRepository" /> <add key="XDSREGISTRY_SERVICE_ADDRESS" value="https://msft-ihe1:8081/XdsService/XDSRegistry" /> <add key ="XDSREGISTRY_ENDPOINT_NAME" value="XDSRegistry_HTTPS_Endpoint" />--> <!-- HTTPS/TLS --> <!-- HTTP --> <!-- HTTP --> <!-- This is the custom provider section which gets loaded into the QualityData.MyProviderSection Class --> <!-- Change this to swap providers --> <!-- 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 --> <!-- HTTPS/TLS --> <!--<add baseAddress="https://msft-ihe1:8081/XdsService/XDSRepository" />--> <!-- HTTPS/TLS --> <!-- HTTP ONLY --> <!-- HTTP ONLY --> <!--<endpoint name="XDSRepository_HTTPS_Endpoint" address="https://msft-ihe1:8081/XdsService/XDSRepository" contract="Microsoft.IHE.XDS.DocumentRepository.IDocumentRepository" binding="wsHttpBinding" bindingConfiguration="XDSRepository_HTTPS" />--> <!-- HTTP ONLY --> <!-- HTTP ONLY --> <!--<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="524288" maxReceivedMessageSize="65536" messageEncoding="Mtom" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <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 --> <!-- 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="Mtom" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <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>--> <!--<endpoint address="https://msft-ihe1:8081/XdsService/XDSRegistry" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTPS_Endpoint" contract="Microsoft.IHE.XDS.DocumentRepository.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTPS_Endpoint" behaviorConfiguration="XDSRegistry_HTTPS_EndPointBehaviour" />--> <!--<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />--> <!-- HTTP ONLY --> <!-- HTTP ONLY --> <!--<serviceCredentials> <serviceCertificate findValue="824aced4b7600d8547eceec02c3c86ea6d23cb2f" storeLocation="LocalMachine" storeName="Root" x509FindType="FindByThumbprint" /> </serviceCredentials>--> <!--<behavior name="XDSRegistry_HTTPS_EndPointBehaviour"> <clientCredentials> <clientCertificate findValue="824aced4b7600d8547eceec02c3c86ea6d23cb2f" storeLocation="LocalMachine" storeName="My" x509FindType="FindByThumbprint" /> </clientCredentials> </behavior>-->

 

Jan 2, 2012 at 3:33 AM

Hello Lisvi/Victor

Would like to know how did you succeed to install nad configure XDS.b into your PC. I.ve stucked for days try to to recheck all app.config files and redo steps include in XDS.b Build and Deployement Guide. When I execute the following command to start services "XdsbServicesInstall.bat .\<username> <password>", I always get the following error:

---------------------------------------------------------------------------------------------------------------------------------------------

 The transacted install has completed.
The installation failed, and the rollback has been performe
The service name is invalid.

More help is available by typing NET HELPMSG 2185.

The service name is invalid.

More help is available by typing NET HELPMSG 2185.


F:\XDS.b\source-VS05>NET HELPMSG 2185

The service name is invalid.


EXPLANATION

You tried to start a service that is not configured on this

ACTION

Check the spelling of the service name or check the configu
r the service using the Services option from Server Manager

---------------------------------------------------------------------------------------------------------------------------------------------



Waiting for ur reply, I will really appreciate !!

Thanks in Advance.

Shaury.

Feb 2, 2012 at 9:08 AM

Check your versions, OS etc with the descriptions. Take the most recent download ( just arrived) and try again. Set all the correct values into the configs and make sure all connections can be made. Test if the services are responding ( and be sure to set the certificates right or to set the configs the way you don't need certificates ) . Keep on trying :). If i've got more time maybe I can give you a pointer. But now I'm very busy looking into the new release and which updates we can use for our own solution for the services.

Feb 26, 2012 at 4:10 PM
plexcode13 wrote:

Check your versions, OS etc with the descriptions. Take the most recent download ( just arrived) and try again. Set all the correct values into the configs and make sure all connections can be made. Test if the services are responding ( and be sure to set the certificates right or to set the configs the way you don't need certificates ) . Keep on trying :). If i've got more time maybe I can give you a pointer. But now I'm very busy looking into the new release and which updates we can use for our own solution for the services.


Thanks "plexcode13" for replying....    I downloaded the new release.. and was able to install the services (both services  started correctly after running XdsbServicesInstall.bat .\<accountname> <password>) but unfortunately wasn't able run "Smoke test". I thought it might be TLS setting configurations went wrong so I configured all bindngs to use HTTP only (no HTTPS) and commented <servicecredentials> block, but still "smoke Test" failed. (BTW I went back to the old release and get stuck to the same point, could run SMOKE TESTbut services run fine) . .... Down here is source code of Repository app.config file, may it will hell to make follow up

<?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:\Log\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="Initial Catalog=XDS_REQUEST;Data Source=SNHPC\SQLEXPRESS;Integrated Security=True;Enlist=false;" providerName="System.Data.SqlClient" />
    <add name="XDSRepository" connectionString="Initial Catalog=XDSRepositoryDB;Data Source=SNHPC\SQLEXPRESS;Integrated Security=True;Enlist=false;" providerName="System.Data.SqlClient" />
    <add name="CONSTRING" connectionString="Initial Catalog=XDSRegistryDB;Data Source=SNHPC\SQLEXPRESS;Integrated Security=True;Enlist=false;" providerName="System.Data.SqlClient" />
    <!--<add name="ConnectionString" connectionString="Initial Catalog=XDS_REQUEST_C1;Data Source=SNHPC\SQLEXPRESS;Enlist=false;" providerName="System.Data.SqlClient" />-->
    <add name="ATNA" connectionString="Initial Catalog=XDSRepositoryDB;Data Source=SNHPC\SQLEXPRESS;Integrated Security=True;Enlist=false;" providerName="System.Data.SqlClient" />
  </connectionStrings>
  <appSettings>
    <add key="HASH_ALGORITHM" value="SHA1" />
    <add key="SYSLOG_SERVER" value="sun1" />
    <add key="SYSLOG_PORT" value="4010" />
          
    <!-- HTTPS/TLS -->
    <!--<add key="XDSREPOSITORY_SERVICE_ADDRESS" value="https://msft-ihe1:8081/XdsService/XDSRepository" />
		<add key="XDSREGISTRY_SERVICE_ADDRESS" value="https://msft-ihe1:8081/XdsService/XDSRegistry"/>
		<add key ="XDSREGISTRY_ENDPOINT_NAME" value="XDSRegistry_HTTPS_Endpoint"/>-->
    
    <!-- HTTPS/TLS -->
    <!-- HTTP -->
    <!--<add key="XDSREPOSITORY_SERVICE_ADDRESS" value="https://snhpc:9081/XdsService/XDSRepository" />-->
    <!--<add key="XDSREGISTRY_SERVICE_ADDRESS" value="https://icw2:8443/ehealth/webservices/xdsb-registerdocuments" />-->
    <add key="XDSREPOSITORY_SERVICE_ADDRESS" value="http://snhpc:1025/XdsService/XDSRepository" />
    <add key="XDSREGISTRY_SERVICE_ADDRESS" value="http://snhpc:1025/xdsservice/xdsregistry" /> 
    
    <!--Open it after TLS <add key="XDSREPOSITORY_SERVICE_ADDRESS" value="https://snhpc:9081/XdsService/XDSRepository" />-->
    <!--Open it after TLS<add key="XDSREGISTRY_SERVICE_ADDRESS" value="https://snhpc:9080/xdsservice/xdsregistry" />-->
    <!--Open it after TLS<add key="XDSREGISTRY_ENDPOINT_NAME" value="XDSRegistry_HTTPS_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 behaviorConfiguration="XDSRepository_ServiceBehavior"
        name="Microsoft.IHE.XDS.DocumentRepository.DocumentRepositoryService">
        <!-- TLS NOT yet configured
        <endpoint address="https://snhpc:9081/XdsService/XDSRepository"
          binding="wsHttpBinding" bindingConfiguration="XDSRepository_HTTPS"
          name="XDSRepository_HTTPS_Endpoint" contract="Microsoft.IHE.XDS.DocumentRepository.IDocumentRepository" />
          -->
        <endpoint address="http://snhpc:1025/XdsService/XDSRepository"
          binding="wsHttpBinding" bindingConfiguration="XDSRepository_HTTP"
          name="XDSRepository_HTTP_Endpoint" contract="Microsoft.IHE.XDS.DocumentRepository.IDocumentRepository" />
        <endpoint address="http://snhpc:1025/XdsService/XDSRepository"
          binding="mexHttpBinding" name="XDSRepository_Metadata_Endpoint"
          contract="IMetadataExchange" />
        <host>
          <baseAddresses>
            <!-- TLS not yet configured
            <add baseAddress="https://snhpc:9081/XdsService/XDSRepository" />
            -->
            <add baseAddress="http://snhpc:1025/XdsService/XDSRepository" />
          </baseAddresses>
        </host>
      </service>
    </services>
    <bindings>
      <wsHttpBinding>
        <!-- TLS not yet configured
        <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 -->
        <!-- TLS not yet configured
        <binding name="XDSRegistry_HTTPS_Endpoint" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10: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:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10: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://icw2:8443/ehealth/webservices/xdsb-registerdocuments" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTPS_Endpoint" contract="Microsoft.IHE.XDS.DocumentRepository.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTPS_Endpoint" behaviorConfiguration="XDSRegistry_HTTPS_EndPointBehaviour" />-->
      <!--Open it after TLS<endpoint address="https://snhpc: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://snhpc: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://emc-ihe1:9092/mosaix-iti42"
				 binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP_Endpoint"
				 contract="Microsoft.IHE.XDS.DocumentRepository.XDSRegistry.XDSRegistry"
				 name="XDSRegistry_HTTP_Endpoint" />-->
      <!--<endpoint address="http://misys3:8010/axis2/services/xdsregistryb" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP_Endpoint" contract="Microsoft.IHE.XDS.DocumentRepository.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTP_Endpoint" />-->
      <endpoint address="http://snhpc: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="false" />
          <!-- HTTP ONLY -->
          <!--<serviceMetadata httpGetEnabled="true" />-->
          <!-- HTTP ONLY -->
          
          <!--Open it after TLS configuration
          <serviceCredentials>
               <serviceCertificate findValue="99e0fb6df06d82f2a802a9e5a1ca34c8e443f4fa" storeLocation="LocalMachine" storeName="Root" x509FindType="FindByThumbprint"/>
          </serviceCredentials>
          -->
        </behavior>
      </serviceBehaviors>
      <!--Open after TLS configuration
      <endpointBehaviors>
        <behavior name="XDSRegistry_HTTPS_EndPointBehaviour">
          <clientCredentials>
              <clientCertificate findValue ="f05be3965ae2ef0c7b296a8410b120fef39442a1" storeLocation="LocalMachine" storeName="My" x509FindType="FindByThumbprint"/>
          </clientCredentials>
        </behavior>
      </endpointBehaviors>
      -->
    </behaviors>
  </system.serviceModel>
 
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"></supportedRuntime>
  </startup>

</configuration>
-----------------------------------------------------------------------------------------------------------
I'm using win XP SP3, Visual Studio 2010 Ultimate, SQL Server 2008 Express Edition. 
If there is any details u need to know , let me know.
Thanks.

 


Feb 26, 2012 at 11:49 PM

I'm having the same problem with the repository service. I was able to smoke test the registry service but not the repository. Can those two services run on the same port or should they be on different ones.

In the app.config for the registry service I put its address on :8080 and it came up. I tried 8080 and 8081 for the repository but it never shows up in the browser.

Both services are installed and running. Any suggestions?

Feb 27, 2012 at 6:14 AM
marchias wrote:

I'm having the same problem with the repository service. I was able to smoke test the registry service but not the repository. Can those two services run on the same port or should they be on different ones.

In the app.config for the registry service I put its address on :8080 and it came up. I tried 8080 and 8081 for the repository but it never shows up in the browser.

Both services are installed and running. Any suggestions?


Hello Marchias,

Have you tried to skip smoke test and test executing transactions under XDS.b Test Harness.exe? I think if you can smoke test the registry service it must be possible to execute "Register Document Set -b" and "Stored Query", Did you try any?

Pls post the App.config file for registry service wanna check where I've mistaken, coz I can smoke test any of the two.

Thanks.

Feb 27, 2012 at 2:07 PM
Edited Feb 28, 2012 at 2:44 AM

I started over with the repository service and got it to smoke test so now both have smoke tested successfully. I then fired up the test harness and ran through the first test case and I get an error message back that says the repository service can not find the registry service. I double checked my repository service app.config and it is set up correctly pointing to the correct address that I smoked tested the registry service successfully. Is there anywhere else that the repository has a configured address to call the registry service that I need to edit? I've posted the error below. I would really appreciate if you could go through my configs and let me know what I'm doing wrong. I would like to get this running for a non profit exchange.

 

  <tns:RegistryResponse status="urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure" xmlns:tns="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0" xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0"><tns:RegistryErrorList highestSeverity=""><tns:RegistryError codeContext="Repository was unable to access the Registry." errorCode="XDSRegistryNotAvailable" severity="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error" /></tns:RegistryErrorList></tns:RegistryResponse>

 

Repository app.config    Registry Sevice 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="C:\Log\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="Initial Catalog=XDS_REQUEST;Data Source=GHT_1\SQLEXPRESS;uid=admin;pwd=Enter321;" providerName="System.Data.SqlClient" />
    <add name="XDSRepository" connectionString="Initial Catalog=XDSRepositoryDB;Data Source=GHT_1\SQLEXPRESS;uid=admin;pwd=Enter321;" providerName="System.Data.SqlClient" />
    <add name="CONSTRING" connectionString="Initial Catalog=XDSRegistryDB;Data Source=GHT_1\SQLEXPRESS;uid=admin;pwd=Enter321;" providerName="System.Data.SqlClient" />
    <!--<add name="ConnectionString" connectionString="Initial Catalog=XDS_REQUEST_C1;Data Source=ilink\sql2008;uid=sa;pwd=Enter321;Enlist=false;" providerName="System.Data.SqlClient" />-->
    <add name="ATNA" connectionString="Initial Catalog=XDSRepositoryDB;Data Source=GHT_1\SQLEXPRESS;uid=admin;pwd=Enter321;" providerName="System.Data.SqlClient" />
  </connectionStrings>
  <appSettings>
    <add key="HASH_ALGORITHM" value="SHA1" />
    <add key="SYSLOG_SERVER" value="sun1" />
    <add key="SYSLOG_PORT" value="4010" />
          
    <!-- HTTPS/TLS -->
    <!--<add key="XDSREPOSITORY_SERVICE_ADDRESS" value="https://msft-ihe1:8081/XdsService/XDSRepository" />
		<add key="XDSREGISTRY_SERVICE_ADDRESS" value="https://msft-ihe1:8081/XdsService/XDSRegistry"/>
		<add key ="XDSREGISTRY_ENDPOINT_NAME" value="XDSRegistry_HTTPS_Endpoint"/>-->
    
    <!-- HTTPS/TLS -->
    <!-- HTTP -->
    <!--<add key="XDSREPOSITORY_SERVICE_ADDRESS" value="https://localhost:9081/XdsService/XDSRepository" />-->
    <!--<add key="XDSREGISTRY_SERVICE_ADDRESS" value="https://icw2:8443/ehealth/webservices/xdsb-registerdocuments" />-->
    <add key="XDSREPOSITORY_SERVICE_ADDRESS" value="http://localhost:1025/XdsService/XDSRepository" />
    <add key="XDSREGISTRY_SERVICE_ADDRESS" value="http://localhost:1025/xdsservice/xdsregistry" /> 
    <!--<add key="XDSREPOSITORY_SERVICE_ADDRESS" value="https://localhost:9081/XdsService/XDSRepository" />
    <add key="XDSREGISTRY_SERVICE_ADDRESS" value="https://localhost:9080/xdsservice/xdsregistry" />-->
    <!--<add key="XDSREGISTRY_ENDPOINT_NAME" value="XDSRegistry_HTTPS_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 behaviorConfiguration="XDSRepository_ServiceBehavior"  name="Microsoft.IHE.XDS.DocumentRepository.DocumentRepositoryService">
        <!--<endpoint address="https://localhost:9081/XdsService/XDSRepository"
          binding="wsHttpBinding" bindingConfiguration="XDSRepository_HTTPS"
          name="XDSRepository_HTTPS_Endpoint" contract="Microsoft.IHE.XDS.DocumentRepository.IDocumentRepository" />-->
        <endpoint address="http://localhost:1025/XdsService/XDSRepository"
          binding="wsHttpBinding" bindingConfiguration="XDSRepository_HTTP"
          name="XDSRepository_HTTP_Endpoint" contract="Microsoft.IHE.XDS.DocumentRepository.IDocumentRepository" />
        <!--<endpoint address="http://localhost/XdsService/XDSRepository"
          binding="mexHttpBinding" name="XDSRepository_Metadata_Endpoint"
          contract="IMetadataExchange" />-->
        <host>
          <baseAddresses>
            <!--<add baseAddress="https://localhost:9081/XdsService/XDSRepository" />-->
            <add baseAddress="http://localhost:1025/XdsService/XDSRepository" />
          </baseAddresses>
        </host>
      </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="Text" 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:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10: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:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10: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://icw2:8443/ehealth/webservices/xdsb-registerdocuments" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTPS_Endpoint" contract="Microsoft.IHE.XDS.DocumentRepository.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTPS_Endpoint" behaviorConfiguration="XDSRegistry_HTTPS_EndPointBehaviour" />-->
      <!--<endpoint address="https://localhost: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://localhost: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://emc-ihe1:9092/mosaix-iti42"
				 binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP_Endpoint"
				 contract="Microsoft.IHE.XDS.DocumentRepository.XDSRegistry.XDSRegistry"
				 name="XDSRegistry_HTTP_Endpoint" />-->
      <!--<endpoint address="http://misys3:8010/axis2/services/xdsregistryb" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP_Endpoint" contract="Microsoft.IHE.XDS.DocumentRepository.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTP_Endpoint" />-->
      <endpoint address="http://localhost: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="99e0fb6df06d82f2a802a9e5a1ca34c8e443f4fa" storeLocation="LocalMachine" storeName="Root" x509FindType="FindByThumbprint"/>
          </serviceCredentials>-->
        </behavior>
      </serviceBehaviors>
      <endpointBehaviors>
        <!--<behavior name="XDSRegistry_HTTPS_EndPointBehaviour">
          <clientCredentials>
              <clientCertificate findValue ="f05be3965ae2ef0c7b296a8410b120fef39442a1" storeLocation="LocalMachine" storeName="My" x509FindType="FindByThumbprint"/>
          </clientCredentials>
        </behavior>-->
      </endpointBehaviors>
    </behaviors>
  </system.serviceModel>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"></supportedRuntime>
  </startup>
</configuration>

 

<?xml version="1.0"?>
<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="C:\Log\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="XDSRegistry" connectionString="Initial Catalog=XDSRegistryDB;Data Source=ilink\sql2005;uid=admin;pwd=Enter321;"
           providerName="System.Data.SqlClient" />-->

    <add name="XDSRegistry" connectionString="Initial Catalog=XDSRegistryDB;Data Source=GHT_1\SQLEXPRESS;uid=admin;pwd=Enter321;" providerName="System.Data.SqlClient"/>
    <add name="ATNA" connectionString="Initial Catalog=XDSRegistryDB;Data Source=GHT_1\SQLEXPRESS;uid=admin;pwd=Enter321;" providerName="System.Data.SqlClient"/>
    <add name="CONSTRING" connectionString="Initial Catalog=XDS_Request;Data Source=GHT_1\SQLEXPRESS;uid=admin;pwd=Enter321;" providerName="System.Data.SqlClient"/>
    <!--<add name="ConnectionString" connectionString="Initial Catalog=XDS_Request;Data Source=ilink\sql2008;uid=sa;pwd=Enter321;" providerName="System.Data.SqlClient"/>-->
  </connectionStrings>
<appSettings>
<add key="SYSLOG_SERVER" value="misys1"/>
  <add key="SYSLOG_PORT" value="2863"/>
   <add key="XDSREGISTRY_SERVICE_ADDRESS" value="http://localhost:1025/xdsservice/xdsregistry"/>
<add key="PATIENT_ROOT_EXTENSION_SEPARATOR" value="{0}^^^&amp;{1}&amp;ISO"/>
</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://localhost:9080/xdsservice/xdsregistry"/>-->
<!-- HTTPS/TLS -->
<!-- HTTP ONLY -->
<add baseAddress="http://localhost:1025/xdsservice/xdsregistry"/>
<!-- HTTP ONLY -->
</baseAddresses>
</host>
      
<!--<endpoint name="XDSRegistry_HTTPS_Endpoint" contract="Microsoft.IHE.XDS.DocumentRegistry.IDocumentRegistry" address="https://localhost:9080/xdsservice/xdsregistry" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTPS"/>-->
<!-- HTTP ONLY -->
<endpoint name="XDSRegistry_HTTP_Endpoint" contract="Microsoft.IHE.XDS.DocumentRegistry.IDocumentRegistry" address="http://localhost:1025/xdsservice/xdsregistry" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP"/>
<!-- HTTP ONLY -->
<!--<endpoint name="XDSRegistry_Metadata_Endpoint" address="http://localhost:1025/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 httpGetEnabled="true" />
<!-- HTTP ONLY -->
<!--<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>-->
<!-- HTTP ONLY -->
<!--<serviceCredentials>
               -->
<!--<serviceCertificate findValue ="2da3869ff0c8b8744c598edc5ddff88fc99ebd5a" storeLocation="LocalMachine" storeName="Root" x509FindType="FindByThumbprint"/>--><!--
            <serviceCertificate findValue ="f05be3965ae2ef0c7b296a8410b120fef39442a1" storeLocation="LocalMachine" storeName="Root" x509FindType="FindByThumbprint"/>
         </serviceCredentials>-->

</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>

 

 

 

Mar 4, 2012 at 4:59 AM

Hi all,

I encountered errors in testing transactions that have to cummunicate with repository; "Provide and Register Document Set -b", "Register Document Set -b" and "Retrieve Document Set -b". Other Transactions (Stored Query, Patient Registry records related ) have been tested succesfully.  Got the same error as "Mathias" above when executing "Provide and Register Dococument Set -b", detailed error message as shown below:

------------------------Executing Transaction 1: Provide and Register Document Set -b Error Message-----------------------------

 <tns:RegistryResponse status="urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure" xmlns:tns="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0" xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0"><tns:RegistryErrorList highestSeverity=""><tns:RegistryError codeContext="Repository was unable to access the Registry." errorCode="XDSRegistryNotAvailable" severity="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error" /></tns:RegistryErrorList></tns:RegistryResponse>

------------------------Executing Transaction 1: Register Document Set -b  Error Message-----------------------------

<tns:RegistryResponse status="urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure" xmlns:tns="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0" xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0"><tns:RegistryErrorList highestSeverity=""><tns:RegistryError codeContext="Patient ID referenced in metadata is not known to the Registry actor via the Patient Identity Feed or is unknown because of patient identifier merge. The codeContext shall include the value of patient ID in question." errorCode="XDSUnknownPatientId" severity="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error" /></tns:RegistryErrorList></tns:RegistryResponse>

------------------------Executing Transaction 3: Retrieve Document Set -b Error Message-----------------------------

<RetrieveDocumentSetResponse xmlns="urn:ihe:iti:xds-b:2007"><tns:RegistryResponse status="urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure" xmlns:tns="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0" xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0"><tns:RegistryErrorList highestSeverity="Highest SeverityURI"><tns:RegistryError codeContext="XDSUnknownRepositoryUniqueID" errorCode="XDSDocumentEntry Doc03 exists in metadata with no corresponding attached document" severity="Error" location="Doc03" /></tns:RegistryErrorList></tns:RegistryResponse></RetrieveDocumentSetResponse>

Checked all config. files to ensure they are okay, but still this errors are there. I've been trying to resolve this for more than a week now. I'm really disappointed by the response in this discussion, Can those who coded this project "XDS.b Reference Implementation" show some concerns by even telling us where can we find some assistance in dealing with this, we'll really appreciate that!!

Shaury.



Mar 5, 2012 at 2:59 AM

Shaury,

I went into full debug approach attaching to my services and running a profiler on my sql server and found my issues.

The first issue "Repository was unable to access the Registry" was because the IHEXDS.CommonUtility  was attempting to get the registry endpoing by the Key

"XDSREGISTRY_ENDPOINT_NAME"  which is in the App.config. That was commented (see my last post with configs) out so it was returning a null. I uncommented

<!--<add key="XDSREGISTRY_ENDPOINT_NAME" value="XDSRegistry_HTTPS_Endpoint" />--> but I'm not running https so you have to change the value to the non https endpoint

 <add key="XDSREGISTRY_ENDPOINT_NAME" value="XDSRegistry_HTTP_Endpoint" />-->

I then started running all the test harness scenarios and by watching sql profiler saw that the 1st test case using the patient id: 

urn:uuid::ae94516f-570c-41ba-ae95-26ae76e50d45 doesn't even exist in the database so I just went to the registry database and overwrote one on the patient id's with that and it ran fine.

 The only test case that fails now is the very last tab for Patient Duplicates and it is saying patient doesn't exist as well so I probably need to open the xml file up and extract the patient id from it.


 

 

 

 

 

Mar 5, 2012 at 6:37 PM

Hello Marchias, thanks a lot for ypur reply.

Tried to make few changes in XDSRegistryDB and Repository service config file (following your solution), but couldn;t succeseed still cant successfully execute "Provide and Register", "Register" and "Retieve" Document Set -b Transactions. I think did make some mistakes somewhere.

In XDSRegistryDB the tables dbo,StorageQuery, dbo,StorageQueryParameter and dbo.CodeType include attributes of the same format as PatientID given in Build and Deployment Guide  (urn:uuid::ae94516f-570c-41ba-ae95-26ae76e50d45) named """storageQueryUniqueID" and "classSchemeUUID"i.

Pls briefly explain the changes you made in XDSRegistryDB, which tables have you overwritten its tuples?

(if there is any necessary attachement you can send it to my email: jacko_mx@hotmail.com)

Really appreciate your effort,, thanks.

(Shaury)

 

Mar 5, 2012 at 9:13 PM

Shaury,

I didn't see the error you were getting but what I had to do was clean out the repository because I was getting a "DocumentID is not unique" error.

Run the following table clean ups

Delete DocumentEntryLog

Delete DocumentRepositoryLog

Delete DocumentRepositoryMetadata

Delete DocumentContent

And then go to your patient table in the registry and copy a patientUID from that table (the entire thing with the carets) and use that as your patient ID in the test case from the harness



Mar 6, 2012 at 8:37 AM
marchias wrote:

Shaury,

I didn't see the error you were getting but what I had to do was clean out the repository because I was getting a "DocumentID is not unique" error.

Run the following table clean ups

Delete DocumentRepositoryLog

 

Delete DocumentContent

 And then go to your patient table in the registry and copy a patientUID from that table (the entire thing with the carets) and use that as your patient ID in the test case from the harness

 

Delete DocumentRepositoryMetadata

Delete DocumentEntryLog

Hello Marchias.....   thanks hundred times you made my week!!!!

I deleted all tuples of the XDSRepositoryDB tables you had mentioned, and used existing patientUID from the db.patient table, then execution for first two transactions went smoothly. 

Now only two transactions still can't be executed successfully, "Transaction 3: Retrieve Document Set -b"  and "Transaction 7: Patient Duplicate Resolved" ...popup the followwing errors

Transaction 3: Retrieve Document Set -b

<RetrieveDocumentSetResponse xmlns="urn:ihe:iti:xds-b:2007"><tns:RegistryResponse status="urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure" xmlns:tns="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0" xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0"><tns:RegistryErrorList highestSeverity="Highest SeverityURI"><tns:RegistryError codeContext="XDSUnknownRepositoryUniqueID" errorCode="XDSDocumentEntry Doc03 exists in metadata with no corresponding attached document" severity="Error" location="Doc03" /></tns:RegistryErrorList></tns:RegistryResponse></RetrieveDocumentSetResponse>

ransaction 7: Patient Duplicate Resolved

<tns:RegistryResponse status="urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure" xmlns:tns="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0" xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0"><tns:RegistryErrorList highestSeverity=""><tns:RegistryError codeContext="Patient ID referenced in metadata is not known to the Registry actor via the Patient Identity Feed or is unknown because of patient identifier merge. The codeContext shall include the value of patient ID in question." errorCode="XDSUnknownPatientId" severity="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error" /></tns:RegistryErrorList></tns:RegistryResponse>

I still try to debug them. Did u ever received these ?

 

 

Mar 6, 2012 at 1:57 PM

I haven't but I suspect it's probably data issues again. There is a sql script in the DBScripts folder of the source code that will clear the entire repository and registry that would probably fix your issues.

It's called XDS_Delete_Script.sql    Open that in your db instance and execute it. That will zero out all your transaction data and should get you past those two errors.

Mar 7, 2012 at 8:41 AM

Hello Marchias,

I did use the "XDS_DeleteScript.sql"  to delete all tuples of tables you mentioned in your previous reply, then solved the two first transactions problems.

Regarding "Error of Retrieve Document Set -b" tried to chech the entire database, there is only one attribute by the name "Repository UniqueID" which is not in XDSRepositoyDB but "DocumentEntry" table in  [XDSRegistryDB]. I need to check this transaction in details to know the corresponding attributes involved in th DBs. I suspecting might be the same issue as patientID, refering to a field value which doesn't exist. 

The same thing for the last transaction "Patient Duplicate Resolved", try to entirely check the xml file involved and the data involved .

Once again thanks for your time and help!!!

Mar 20, 2012 at 1:38 PM
manontheway wrote:

Hello Lisvi/Victor

Would like to know how did you succeed to install nad configure XDS.b into your PC. I.ve stucked for days try to to recheck all app.config files and redo steps include in XDS.b Build and Deployement Guide. When I execute the following command to start services "XdsbServicesInstall.bat .\<username> <password>", I always get the following error:

---------------------------------------------------------------------------------------------------------------------------------------------

 The transacted install has completed.
The installation failed, and the rollback has been performe
The service name is invalid.

More help is available by typing NET HELPMSG 2185.

The service name is invalid.

More help is available by typing NET HELPMSG 2185.


F:\XDS.b\source-VS05>NET HELPMSG 2185

The service name is invalid.


EXPLANATION

You tried to start a service that is not configured on this

ACTION

Check the spelling of the service name or check the configu
r the service using the Services option from Server Manager

---------------------------------------------------------------------------------------------------------------------------------------------



Waiting for ur reply, I will really appreciate !!

Thanks in Advance.

Shaury.

hi

you should open you visual studio 2010  Command Prompt  "run as administrator "

Mar 31, 2012 at 2:17 PM

Hello Dengmin_1.. thanks for reply.

Fortunately that problem was resolved a while ago, you may follow the previous post to see how.

 Thanks.

Apr 2, 2012 at 11:01 AM
hello,manontheway
my Os WIN7 ,SQL 2008,VS 2010

i really really need your help!!
I will be quite grateful if you coule  help me.

i  met many problems :i can not do the "smoke test" in these both services.

i just do not  do TLS,so all bindngs to use HTTP only (no HTTPS) and commented <servicecredentials> block, but still "smoke Test" failed

*********down here is XdsRepository  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:\Log\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="Initial Catalog=XDS_REQUEST;Data Source=.;Integrated Security=SSPI;Enlist=false;" providerName="System.Data.SqlClient" />
    <add name="XDSRepository" connectionString="Initial Catalog=XDSRepositoryDB;Data Source=.;Integrated Security=SSPI;Enlist=false;" providerName="System.Data.SqlClient" />
    <add name="CONSTRING" connectionString="Initial Catalog=XDSRegistryDB;Data Source=.e;Integrated Security=SSPI;Enlist=false;" providerName="System.Data.SqlClient" />
    <!--<add name="ConnectionString" connectionString="Initial Catalog=XDS_REQUEST_C1;Data Source=ilink\sql2008;uid=sa;pwd=Enter321;Enlist=false;" providerName="System.Data.SqlClient" />-->
    <add name="ATNA" connectionString="Initial Catalog=XDSRepositoryDB;Data Source=.;Integrated Security=SSPI;Enlist=false;" providerName="System.Data.SqlClient" />
  </connectionStrings>
  <appSettings>
    <add key="HASH_ALGORITHM" value="SHA1" />
    <add key="SYSLOG_SERVER" value="sun1" />
    <add key="SYSLOG_PORT" value="4010" />
          
    <!-- HTTPS/TLS -->
    <!--<add key="XDSREPOSITORY_SERVICE_ADDRESS" value="https://msft-ihe1:8081/XdsService/XDSRepository" />
		<add key="XDSREGISTRY_SERVICE_ADDRESS" value="https://msft-ihe1:8081/XdsService/XDSRegistry"/>
		<add key ="XDSREGISTRY_ENDPOINT_NAME" value="XDSRegistry_HTTPS_Endpoint"/>-->
    
    <!-- HTTPS/TLS -->
    <!-- HTTP -->
    <!--<add key="XDSREPOSITORY_SERVICE_ADDRESS" value="https://localhost:9081/XdsService/XDSRepository" />-->
    <!--<add key="XDSREGISTRY_SERVICE_ADDRESS" value="https://icw2:8443/ehealth/webservices/xdsb-registerdocuments" />-->
    <add key="XDSREPOSITORY_SERVICE_ADDRESS" value="http://localhost:1025/XdsService/XDSRepository" />
    <add key="XDSREGISTRY_SERVICE_ADDRESS" value="http://localhost:1025/xdsservice/xdsregistry" />
    <!--Open it after TLS <add key="XDSREPOSITORY_SERVICE_ADDRESS" value="https://localhost:9081/XdsService/XDSRepository" />-->
    <!--Open it after TLS <add key="XDSREGISTRY_SERVICE_ADDRESS" value="https://localhost:9080/xdsservice/xdsregistry" />-->
    <!--Open it after TLS <add key="XDSREGISTRY_ENDPOINT_NAME" value="XDSRegistry_HTTPS_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 behaviorConfiguration="XDSRepository_ServiceBehavior"
        name="Microsoft.IHE.XDS.DocumentRepository.DocumentRepositoryService">
        <!--Open it after TLS <endpoint address="https://localhost:9081/XdsService/XDSRepository"
          binding="wsHttpBinding" bindingConfiguration="XDSRepository_HTTPS"
          name="XDSRepository_HTTPS_Endpoint" contract="Microsoft.IHE.XDS.DocumentRepository.IDocumentRepository" />-->
        <endpoint address="http://localhost:1025/XdsService/XDSRepository"
          binding="wsHttpBinding" bindingConfiguration="XDSRepository_HTTP"
          name="XDSRepository_HTTP_Endpoint" contract="Microsoft.IHE.XDS.DocumentRepository.IDocumentRepository" />
        <endpoint address="http://localhost/XdsService/XDSRepository"
          binding="mexHttpBinding" name="XDSRepository_Metadata_Endpoint"
          contract="IMetadataExchange" />
        <host>
          <baseAddresses>
            <!--Open it after TLS <add baseAddress="https://localhost:9081/XdsService/XDSRepository" />-->
            <add baseAddress="http://localhost:1025/XdsService/XDSRepository" />
          </baseAddresses>
        </host>
      </service>
    </services>
    <bindings>
      <wsHttpBinding>
        <!--Open it after TLS  <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 -->
        <!--Open it after TLS   <binding name="XDSRegistry_HTTPS_Endpoint" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10: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:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10: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://icw2:8443/ehealth/webservices/xdsb-registerdocuments" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTPS_Endpoint" contract="Microsoft.IHE.XDS.DocumentRepository.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTPS_Endpoint" behaviorConfiguration="XDSRegistry_HTTPS_EndPointBehaviour" />-->
      <!--Open it after TLS  <endpoint address="https://localhost: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://localhost: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://emc-ihe1:9092/mosaix-iti42"
				 binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP_Endpoint"
				 contract="Microsoft.IHE.XDS.DocumentRepository.XDSRegistry.XDSRegistry"
				 name="XDSRegistry_HTTP_Endpoint" />-->
      <!--<endpoint address="http://misys3:8010/axis2/services/xdsregistryb" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP_Endpoint" contract="Microsoft.IHE.XDS.DocumentRepository.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTP_Endpoint" />-->
      <endpoint address="http://localhost: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 -->
          <!--Open it after TLS  <serviceCredentials>
               <serviceCertificate findValue="99e0fb6df06d82f2a802a9e5a1ca34c8e443f4fa" storeLocation="LocalMachine" storeName="Root" x509FindType="FindByThumbprint"/>
          </serviceCredentials>-->
        </behavior>
      </serviceBehaviors>
      <!--Open it after TLS <endpointBehaviors>
        <behavior name="XDSRegistry_HTTPS_EndPointBehaviour">
          <clientCredentials>
              <clientCertificate findValue ="f05be3965ae2ef0c7b296a8410b120fef39442a1" storeLocation="LocalMachine" storeName="My" x509FindType="FindByThumbprint"/>
          </clientCredentials>
        </behavior>
      </endpointBehaviors>-->
    </behaviors>
  </system.serviceModel>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"></supportedRuntime>
  </startup>
</configuration>
****####2:
XDSRegistry app.config
<?xml version="1.0"?>
<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:\Log\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="XDSRegistry" connectionString="Initial Catalog=XDSRegistryDB;Data Source=ilink\sql2005;uid=admin;pwd=Enter321;"
           providerName="System.Data.SqlClient" />-->
		<add name="XDSRegistry" connectionString="Initial Catalog=XDSRegistryDB;Data Source=.;Integrated Security=SSPI;Enlist=false;" providerName="System.Data.SqlClient"/>
		<add name="ATNA" connectionString="Initial Catalog=XDSRegistryDB;Data Source=.;Integrated Security=SSPI;Enlist=false;" providerName="System.Data.SqlClient"/>
		<add name="CONSTRING" connectionString="Initial Catalog=XDS_REQUEST;Data Source=.;Integrated Security=SSPI;Enlist=false;" providerName="System.Data.SqlClient"/>
    <!--<add name="ConnectionString" connectionString="Initial Catalog=XDS_Request;Data Source=ilink\sql2008;uid=sa;pwd=Enter321;" providerName="System.Data.SqlClient"/>-->
	</connectionStrings>
	<appSettings>
		<add key="SYSLOG_SERVER" value="misys1"/>
  	<add key="SYSLOG_PORT" value="2863"/>
   	<add key="XDSREGISTRY_SERVICE_ADDRESS" value="http://localhost:1025/xdsservice/xdsregistry"/>
		<add key="PATIENT_ROOT_EXTENSION_SEPARATOR" value="{0}^^^&amp;{1}&amp;ISO"/>
	</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 -->
            <!--Open it after TLS	<add baseAddress="https://localhost:9080/xdsservice/xdsregistry"/>-->
						<!-- HTTPS/TLS -->
						<!-- HTTP ONLY -->
						<add baseAddress="http://localhost:1025/xdsservice/xdsregistry"/>
						<!-- HTTP ONLY -->
					</baseAddresses>
				</host>

        <!--Open it after TLS<endpoint name="XDSRegistry_HTTPS_Endpoint" contract="Microsoft.IHE.XDS.DocumentRegistry.IDocumentRegistry" address="https://localhost:9080/xdsservice/xdsregistry" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTPS"/>-->
				<!-- HTTP ONLY -->
				<endpoint name="XDSRegistry_HTTP_Endpoint" contract="Microsoft.IHE.XDS.DocumentRegistry.IDocumentRegistry" address="http://localhost:1025/xdsservice/xdsregistry" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP"/>
				<!-- HTTP ONLY -->
        <!--Open it after TLS<endpoint name="XDSRegistry_Metadata_Endpoint" address="http://localhost/xdsservice/xdsregistry" binding="mexHttpBinding" contract="IMetadataExchange"/>-->
			</service>
		</services>
		<bindings>
			<wsHttpBinding>
        <!--Open it after TLS<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 httpGetEnabled="true" />-->
					<!-- HTTP ONLY -->
					<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
					<!-- HTTP ONLY -->
				<!--Open it after TLS	<serviceCredentials>-->
               <!--<serviceCertificate findValue ="2da3869ff0c8b8744c598edc5ddff88fc99ebd5a" storeLocation="LocalMachine" storeName="Root" x509FindType="FindByThumbprint"/>-->
          <!--Open it after TLS <serviceCertificate findValue ="f05be3965ae2ef0c7b296a8410b120fef39442a1" storeLocation="LocalMachine" storeName="Root" x509FindType="FindByThumbprint"/>-->
          <!--Open it after TLS	  	</serviceCredentials>-->
        </behavior>
			</serviceBehaviors>
		</behaviors>
	</system.serviceModel>
	<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>

***3 testharness app.config
<?xml version="1.0"?>
<configuration>

	<appSettings>
    
    <add key="ebRIMTransformFile" value="D:\xds\Connectathon2012\Connectathon2012\source\Testing\XDSTestHarness\TransformFiles\ebRIM_21_to30_Conversion1.xslt"/>
    <!--<add key="ebRIMTransformFile" value="D:\xds\Connectathon2012\Connectathon2012\source\Testing\XDSTestHarness\TransformFiles\ebRIM_21_to30_Conversion1"/>-->
         <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="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>
        <!--Open it after TLS	<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="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" 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="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>
        <!--Open it after TLS	<binding name="XDSRepository_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="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="Transport">
						<transport clientCredentialType="Certificate" 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="https://localhost:9080/XdsService/XDSRegistry" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTPS_Endpoint" contract="Microsoft.XDS.Test.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTPS_Endpoint" behaviorConfiguration="clientBehaviour"/>-->
      
			<!--<endpoint address="http://localhost:1025/xdsservice/xdsregistry"
			 binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP_Endpoint"
			 contract="Microsoft.XDS.Test.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTP_Endpoint" />-->

      <endpoint address="http://localhost:1025/xdsservice/xdsregistry" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP_Endpoint" contract="Microsoft.XDS.Test.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTP_Endpoint"/>
            
			<!--<endpoint address="https://localhost:9081/XdsService/XDSRepository" binding="wsHttpBinding" bindingConfiguration="XDSRepository_HTTPS_Endpoint" contract="Microsoft.XDS.Test.XDSRepository.XDSRepository" name="XDSRepository_HTTPS_Endpoint" behaviorConfiguration="clientBehaviour"/>-->
      
			<!--<endpoint address="http://localhost:1025/XdsService/XDSRepository"
			 binding="wsHttpBinding" bindingConfiguration="XDSRepository_HTTP_Endpoint"
			 contract="Microsoft.XDS.Test.XDSRepository.XDSRepository" name="XDSRepository_HTTP_Endpoint" />-->

      <endpoint address="http://localhost:1025/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="8c8bc95ec118ec6fbf4d0ec46f13f22e4da619cd" storeLocation="LocalMachine" storeName="My" x509FindType="FindByThumbprint"/>


          </clientCredentials>
				</behavior>
			</endpointBehaviors>
		</behaviors>

	</system.serviceModel>	
	
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>

HERE MY EMAIL:dengminsmile0515@yeah.net.
Apr 2, 2012 at 2:36 PM

Hello Dengmin_1

Can you run both services successfully? What errors pop up when you smoke up the services?

Have you enabled exception for port number 1025 your using for XDS Services through the firewall?

I've quickly overviewed your app config files:

1)Repository App config

 (a) Comment the following endpoint (registry services address is incorrect, things go wrong when you correct it, just comment)

<endpoint name="XDSRegistry_Metadata_Endpoint" address="http://snhpc/xdsservice/xdsregistry" binding="mexHttpBinding" contract="IMetadataExchange"/>

2) Registry app config

 under <behaviors> node, set httpsGetEnabled="false"

3)TestHarness app config 

Is the value of key= "ebRIMTransformFile" correct?

 

Apr 2, 2012 at 3:58 PM
Edited Apr 2, 2012 at 4:17 PM

hello manontheway,thanks for your reply.

these two services installed successfully,

when i do the smoke test,it can not browse ,just say:can not display the webpage.the details about the problem i do not know.

i modified these(1)(2):

   (1)repository app.config

            a)Comment the following endpoint:

<endpoint name="XDSRegistry_Metadata_Endpoint" address="http://localhost/xdsservice/xdsregistry" binding="mexHttpBinding" contract="IMetadataExchange"/>

  

b)under <behaviors> node, set httpsGetEnabled="false"

(2) Registry app config

            a)Comment the following endpoint:

<endpoint name="XDSRegistry_Metadata_Endpoint" address="http://localhost/xdsservice/xdsregistry" binding="mexHttpBinding" contract="IMetadataExchange"/>

 

b)under <behaviors> node, set httpsGetEnabled="false"

3)TestHarness app config ----[this part ,i do not known,this part just keep the same with source code]

Is the value of key= "ebRIMTransformFile" correct?

(4)[question]:if l change another free port,such as 8080,i should change all the old port "1025" in "the whole Solution"??that is saying ,i must change so many files except these 3 app.configs ?

(5)question]:i never change the setting on the firewall

regards

DengMIn

 

 //////////////////////////now still install these services,but can not browse.

                               here ,i can not send you the whole solution,maybe ,i can send it in your email ,that is much more convenient.

Apr 2, 2012 at 4:16 PM

 

(4)[question]:if l change another free port,such as 8080,i should change all the old port "1025" in "the whole Solution"??that is saying ,i must change so many files except these 3 app.configs ?

  [Answer] Yeah you will have to change settings in all three app config files

(5)question]:i never change the setting on the firewall

[Answer] Is better to allow exception of this port in the firewall 

Apr 3, 2012 at 9:56 AM
Edited Apr 3, 2012 at 10:08 AM

Hi there...

 

i have done all install steps from XDS.b Reference Implementation Build and Deployment Guide

but when i want to do the last one:

Execute the following command:
XdsbServicesInstall.bat .\MyWindowsUserName MyWindowsPassword

i got the following

Microsoft (R) .NET Framework-Installationsprogramm, Version 4.0.30319.1
Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.

Beim Initialisieren der Installation ist eine Ausnahme aufgetreten:
System.IO.FileLoadException: Die Datei oder Assembly "file:///V:\source\source\W
indowsServices\XDSRepositoryServiceHost\XDSRepositoryServiceHost\bin\Debug\XDSDo
cumentRepositoryServiceHost.exe" oder eine Abhängigkeit davon wurde nicht gefund
en. Der Vorgang wird nicht unterstützt. (Ausnahme von HRESULT: 0x80131515)
Microsoft (R) .NET Framework-Installationsprogramm, Version 4.0.30319.1
Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.

Beim Initialisieren der Installation ist eine Ausnahme aufgetreten:
System.IO.FileLoadException: Die Datei oder Assembly "file:///V:\source\source\W
indowsServices\XDSRegistryServiceHost\bin\Debug\XDSRegistryServiceHost.exe" oder
 eine Abhängigkeit davon wurde nicht gefunden. Der Vorgang wird nicht unterstütz
t. (Ausnahme von HRESULT: 0x80131515)
Der Name für den Dienst ist ungültig.

Sie erhalten weitere Hilfe, wenn Sie NET HELPMSG 2185 eingeben.

Der Name für den Dienst ist ungültig.

Sie erhalten weitere Hilfe, wenn Sie NET HELPMSG 2185 eingeben.

 

can you help me??? what does that mean?? (i have admin-rights for my Windows account)

(sorry for posting it here)

Apr 3, 2012 at 10:53 AM

ok i solve that problem..... thx anyway

Apr 3, 2012 at 12:18 PM
Edited Apr 3, 2012 at 1:03 PM
manontheway wrote:

 

(4)[question]:if l change another free port,such as 8080,i should change all the old port "1025" in "the whole Solution"??that is saying ,i must change so many files except these 3 app.configs ?

  [Answer] Yeah you will have to change settings in all three app config files

(5)question]:i never change the setting on the firewall

[Answer] Is better to allow exception of this port in the firewall 

 

  (4)[your answer] Yeah you will have to change settings in all three app config files-------

  [my question]:once I tried this program:changing all 10255 in the" solution" into 8080,        

 【result 】:THANKS ,NOW I CAN BROWSE BOTH SERVICE.

thanks

DengMin

          

 

Apr 9, 2012 at 5:49 AM
hi manontheway

 the testharness problems ,i create a new discussion today,

now it is "endpoint problem"