locked
Manuelle Adressierung ist für diese Factory aktiviert - webHttpBinding RRS feed

  • Frage

  • Hallo,

    bei meinem WCF-Service habe ich zwei Endpunkte (webHttpBinding, wsHttpBinding) für den selben DataContract. Der wsHttpBinding Endpunkt funktioniert wie gewünscht, nur wenn ich versuche mit meinem Client über den webHttpBinding Endpunkt kontakt aufzunehmen erhalte ich die Meldung "Manuelle Adressierung ist für diese Factory aktiviert, daher müssen alle gesendeten Nachrichten voradressiert sein.".

    Ich stell mir nun die Frage ob ich hier einen Fehler in der Konfiguration habe oder ob etwas anderes schief geht denn bei einem Test Service funktioniert das webHttpBinding tadellos :/

    Client Konfiguration:

    <system.serviceModel>
        <bindings>
          <wsHttpBinding>
            <binding name="FacilityReporting_WsHttp" 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" />
              </security>
            </binding>
          </wsHttpBinding>
        </bindings>
        <client>
          <endpoint address="http://soa.domain.de/facility/reporting" binding="webHttpBinding"
            contract="FacilityReporting.IFacilityReporting" name="FacilityReportingWeb" />
          <endpoint address="http://jp-pc149/facility/" binding="wsHttpBinding"
            bindingConfiguration="FacilityReporting_WsHttp" contract="FacilityReporting.IFacilityReporting"
            name="FacilityReporting_WsHttp">
            <identity>
              <userPrincipalName value="user@domain.de" />
            </identity>
          </endpoint>
        </client>
        <behaviors>
          <endpointBehaviors>
            <behavior name="FacilityReportingBehavior">
              <webHttp />
            </behavior>
          </endpointBehaviors>
        </behaviors>
      </system.serviceModel>
    


    Client Code:

    ChannelFactory<IFacilityReporting> factory;
    factory = new ChannelFactory<IFacilityReporting>("FacilityReportingWeb");   
    //factory = new ChannelFactory<IFacilityReporting>("FacilityReporting_WsHttp");                        
    IFacilityReporting client = factory.CreateChannel();
    
    client.Subscribe(); <-- hier wird der Fehler geworfen
    


    Donnerstag, 13. Oktober 2011 08:12

Antworten

  • Hallo,

    ich glaube Du musst Deinem webHttpEndpunkt eine BindingConfiguration hinzufügen.

    bindingConfiguration="FacilityReporting_WebHttp" ... und diese natürlich noch anlegen

    Gruß Timo

    Donnerstag, 13. Oktober 2011 11:13

Alle Antworten

  • Hallo,

    ich glaube Du musst Deinem webHttpEndpunkt eine BindingConfiguration hinzufügen.

    bindingConfiguration="FacilityReporting_WebHttp" ... und diese natürlich noch anlegen

    Gruß Timo

    Donnerstag, 13. Oktober 2011 11:13
  • Veilen Dank!
    Freitag, 14. Oktober 2011 05:51