none
wsdl file problem with routing service RRS feed

  • Question

  • My routing service code is as below and I created client application by creating proxy.cs from parent service(http://wsf.cdyne.com/WeatherWs/Weather.asmx) and web.config from my routing service. This is working perfect.

    But Client want true wsdl from routing service. Do you know anyway I can create new endpoint and route wsdl with that too.

    Thanks,

    Pago.

    <?xml version="1.0"?>
    <configuration>
      <system.web>
        <compilation debug="false" targetFramework="4.0">
          <assemblies>
            <add assembly="System.ServiceModel.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          </assemblies>
        </compilation>
      </system.web>
      <system.serviceModel>
        <bindings>
          <basicHttpBinding>
            <binding name="WeatherSoap" closeTimeout="00:01:00" openTimeout="00:01:00"
              receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
              bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
              maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
              messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
              useDefaultWebProxy="true">
              <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                maxBytesPerRead="4096" maxNameTableCharCount="16384" />
              <security mode="None">
                <transport clientCredentialType="None" proxyCredentialType="None"
                  realm="" />
                <message clientCredentialType="UserName" algorithmSuite="Default" />
              </security>
            </binding>
          </basicHttpBinding>
        </bindings>
        <services>
          <service behaviorConfiguration="routingData" name="System.ServiceModel.Routing.RoutingService">
            <endpoint address="" binding="basicHttpBinding" bindingConfiguration="WeatherSoap"
              name="reqReplyEndpoint" contract="System.ServiceModel.Routing.IRequestReplyRouter" />
            <endpoint address="mex" binding="mexHttpBinding" contract="System.ServiceModel.Routing.IRequestReplyRouter" />
          </service>
        </services>
        <behaviors>
          <serviceBehaviors>
            <behavior name="routingData">
              <serviceMetadata httpGetEnabled="true"/>
              <serviceDebug includeExceptionDetailInFaults="true" />
              <routing filterTableName="routingTable1" soapProcessingEnabled="false" routeOnHeadersOnly="false" />
            </behavior>
          </serviceBehaviors>
        </behaviors>
        <client>
          <endpoint name="WeatherSoap"
                    address="http://wsf.cdyne.com/WeatherWs/Weather.asmx"
                    binding="basicHttpBinding"
                    contract="*"
                    bindingConfiguration="WeatherSoap"/>
        </client>
        <!--ROUTING SECTION -->
        <routing>
          <filters>
            <filter name="matchFilt" filterType="MatchAll"  />
          </filters>
          <filterTables>
            <filterTable name="routingTable1">
              <add filterName="matchFilt" endpointName="WeatherSoap" />
            </filterTable>
          </filterTables>
        </routing>
      </system.serviceModel>
      <system.webServer>
        <modules runAllManagedModulesForAllRequests="true"/>
      </system.webServer>
    </configuration>
    • Edited by pago313 Tuesday, January 14, 2014 9:55 PM
    Tuesday, January 14, 2014 9:26 PM

Answers