This project has moved. For the latest updates, please go here.
1
Vote

location attribute doesn't seem to be working

description

We have the f5 environment situation and were already using the single wsdl solution, I need to use the location attribute so that I can display the wsdl location with https:// Setting the location in development or in integration does not change the url. I've read the instructions for this and can't see what I'm doing wrong, here are my config settings:
 <behaviorExtensions>
        <add name="wsdlExtensions" type="WCFExtrasPlus.Wsdl.WsdlExtensionsConfig, WCFExtrasPlus, Version=2.3.1.8201, Culture=neutral, PublicKeyToken=f8633fc5451b43fc" />
      </behaviorExtensions>
<basicHttpBinding>
        <binding name="BasicUnsecured" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" maxBufferSize="2147483647">
          <security mode="None"></security>
          <readerQuotas maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxDepth="32" maxNameTableCharCount="2147483647" maxStringContentLength="2147483647" />
        </binding>
      </basicHttpBinding>
<behavior name="BasicBehavior">
          <serviceMetadata httpGetEnabled="True" />
        </behavior>
<endpointBehaviors>
        <behavior name="endpointBehaviorPing">
          <wsdlExtensions location="http://127.0.0.1:50138/ping.svc" singleFile="True" />
        </behavior>
        
      </endpointBehaviors>
 <service name="MSB.CommercialExpress.API.Valuation.Services.PingService" behaviorConfiguration="BasicBehavior">
    <endpoint address=""
              binding="basicHttpBinding"
              bindingConfiguration="BasicUnsecured"
              behaviorConfiguration="endpointBehaviorPing"
              contract="MSB.CommercialExpress.API.Valuation.ServiceContracts.IPing"
        />
  </service>
No matter what I change the location attribute to I get the original url. I'll take a look at the source but if you have an answer that would be great!



You have created a service.

To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax:



svcutil.exe http://localhost:50138/Ping.svc?wsdl
You can also access the service description as a single file:


http://localhost:50138/Ping.svc?singleWsdl

comments

jrbogens wrote Jan 9, 2014 at 6:45 PM

never mind, I was expecting the url for the wsdl to change as well, it doesn't but the urls change within the wsdl as designed.