soapUI With WCF Message Security

WCF (.NET 4.0) 서비스를 soapUI를 사용하여 테스트 할 수 있도록 구성하려고합니다. 메시지 보안과 함께 wsHttpBinding을 사용하고 있습니다. 내 목표는 공용 테스트 엔드 포인트에 서비스를 노출하고 soapUI 테스트를 사용하는 loadUI로로드 테스트를 시도하는 것입니다. 이 작업을 수행하려면 엔드 포인트가 안전해야하며 프로덕션 엔드 포인트가 메시지 보안을 사용할 것이므로 프로덕션 부하 테스트 결과에 가깝게 도달하기 위해 테스트에서도 사용해야한다고 생각합니다.

할 수없는 것 같습니다. 서비스를 성공적으로 호출하도록 soapUI를 구성합니다. 클라이언트 및 서버 인증서로 입력 및 출력을 서명하고 암호화하는 여러 조합을 시도했습니다. 누구든지 WCF 및 soapUI의 성공적인 메시지 보안 구성을 달성 할 수 있었습니까?

다음은 내 구성에서 발췌 한 것입니다.

Binding :

  <wsHttpBinding>

            <binding name="MessageSecurity">
                <security mode="Message">
                    <message clientCredentialType="Certificate" negotiateServiceCredential="false"/>
                </security>
            </binding>

        </wsHttpBinding>

Behavior

    <behaviors>
        <serviceBehaviors>
            <behavior name="customBehavior">
                <serviceMetadata httpGetEnabled="True"/>
                <serviceDebug includeExceptionDetailInFaults="True"/>

                <serviceCredentials>
                    <clientCertificate>
                        <authentication certificateValidationMode="PeerTrust"/>
                    </clientCertificate>
                    <serviceCertificate findValue="MyWebServicesCertificate" x509FindType="FindBySubjectName" storeLocation="LocalMachine" storeName="My"/>
                </serviceCredentials>
            </behavior>
        </serviceBehaviors>

        <endpointBehaviors>
            <behavior name="webHttp">
                <webHttp/>
            </behavior>
        </endpointBehaviors>

    </behaviors>
</system.serviceModel>

Service :

            <service behaviorConfiguration="customBehavior" name="MyService">

            <!-- Service Endpoint -->
            <endpoint name="Production" address="" binding="wsHttpBinding" bindingConfiguration="MessageSecurity" contract="IMyService">

                <identity>
                    <dns value="web_services_svr"/>
                </identity>
            </endpoint>




            <host>
                <baseAddresses>
                    <add baseAddress="http://web_services_svr/MyService.svc" />
                </baseAddresses>
            </host>

        </service>
12
задан Nate 6 July 2011 в 19:44
поделиться