Consume WCF with wsHttpBiding and windows authentication for message

Home Page Forums BizTalk 2004 – BizTalk 2010 Consume WCF with wsHttpBiding and windows authentication for message

Viewing 0 reply threads
  • Author
    Posts
    • #22794

      Hi

       

      I am trying to consume a WCF service ( that has Security mode : Message, wsHttpBinding, windows authentication for Transport and Message)

       

      I consumed the service using the Consume WCF service wizard. Created the physical solit-response port using the binding xml generated by biztalk.

       

      When try to test, it is giving me following error

       

      Details:”System.ServiceModel.Security.SecurityNegotiationException: The caller was not authenticated by the service. —> System.ServiceModel.FaultException: The request for security token could not be satisfied because authentication failed.

       

      The service is hosted in IIS a machine and client is a different machine.

       

      But thru a .net client am able to connect with the server from the same client machine. Following is the app.config

       

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

      <configuration>

          <system.serviceModel>

              <bindings>

                  <wsHttpBinding>

                      <binding name=WSHttpBinding_IInvoicing 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=Message>

                              <transport clientCredentialType=Windows proxyCredentialType=None

                                  realm=“” />

                              <message clientCredentialType=Windows negotiateServiceCredential=true

                                  algorithmSuite=Default establishSecurityContext=true />

                          </security>

                      </binding>

                  </wsHttpBinding>

              </bindings>

              <client>

                  <endpoint address=http://xxxxxxxxxxxxxxxxxxx.svc

                      binding=wsHttpBinding bindingConfiguration=WSHttpBinding_IInvoicing

                      contract=TestFrontEnd.IInvoicing name=WSHttpBinding_IInvoicing>

                      <identity>

                          <dns value=localhost />

                      </identity>

                  </endpoint>

              </client>

          </system.serviceModel>

      </configuration>

       

      Please let me know the issue

       

      Thanks

      VInoth

Viewing 0 reply threads
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.