Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
190 Points
234 Posts
Apr 26, 2012 02:39 PM|LINK
I have a service , which has two base address.
But , when I host in IIS.
Am getting only methods which are in first base address.
this is my config file..
---------------------------
<?xml version="1.0" encoding="utf-8" ?> <configuration> <connectionStrings> <add name="DataObjects.Properties.Settings.NSpotIntegrationConnectionString" connectionString="Data Source=XXXXXXX;Initial Catalog=NSpotIntegration;User ID=sa;Password=sa@123" providerName="System.Data.SqlClient" /> </connectionStrings> <system.serviceModel> <services> <!--*******************************Purchase Service ***************************--> <service behaviorConfiguration="NSpotSecuredBehaviour" name="WcfSOALibrary.Services.Marketing.NSpotService"> <host> <baseAddresses> <add baseAddress="https://localhost:80/NSpotService" /> </baseAddresses> </host> <endpoint address="" binding="wsHttpBinding" contract="WcfSOALibrary.Services.Marketing.INSpotService" bindingConfiguration="SecureBinding"> <identity> <dns value="localhost"/> </identity> </endpoint> <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /> </service> <service behaviorConfiguration="VssplSecuredBehaviour" name="WcfSOALibrary.Services.Marketing.MiddleTierService"> <host> <baseAddresses> <add baseAddress="https://localhost:9006/VasudhaikaService" /> </baseAddresses> </host> <endpoint address="" binding="wsHttpBinding" contract="WcfSOALibrary.Services.Marketing.IMiddleTierService" bindingConfiguration="SecureBinding"> <identity> <dns value="localhost"/> </identity> </endpoint> <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /> </service> </services> <behaviors> <serviceBehaviors> <behavior name="NSpotSecuredBehaviour"> <serviceMetadata httpsGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="true" /> <serviceThrottling maxConcurrentCalls="16" maxConcurrentInstances="2147483647" maxConcurrentSessions="10"/> <dataContractSerializer maxItemsInObjectGraph="2147483647" /> <bufferedReceive maxPendingMessagesPerChannel="2147483647" /> <serviceCredentials> <userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="WcfSOALibrary.Authorize.VasudhaikaAuthorize,WcfSOALibrary"/> </serviceCredentials> </behavior> <behavior name="VssplSecuredBehaviour"> <serviceMetadata httpsGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="true" /> <serviceThrottling maxConcurrentCalls="16" maxConcurrentInstances="2147483647" maxConcurrentSessions="10"/> <dataContractSerializer maxItemsInObjectGraph="2147483647" /> <bufferedReceive maxPendingMessagesPerChannel="2147483647" /> <serviceCredentials> <userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="WcfSOALibrary.Authorize.NSpotAuthentication,WcfSOALibrary"/> </serviceCredentials> </behavior> </serviceBehaviors> </behaviors> <bindings> <wsHttpBinding> <binding name="SecureBinding" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" closeTimeout="01:59:00" openTimeout="01:59:00" receiveTimeout="01:59:00" sendTimeout="01:59:00"> <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /> <security mode="TransportWithMessageCredential"> <message clientCredentialType="UserName"/> </security> </binding> </wsHttpBinding> </bindings> <serviceHostingEnvironment multipleSiteBindingsEnabled="true"/> </system.serviceModel> <system.transactions> <defaultSettings timeout="01:59:00" /> </system.transactions> </configuration>
gopikrsna
Member
190 Points
234 Posts
Is it possible to expose two base address in IIS
Apr 26, 2012 02:39 PM|LINK
I have a service , which has two base address.
But , when I host in IIS.
Am getting only methods which are in first base address.
this is my config file..
---------------------------
<?xml version="1.0" encoding="utf-8" ?> <configuration> <connectionStrings> <add name="DataObjects.Properties.Settings.NSpotIntegrationConnectionString" connectionString="Data Source=XXXXXXX;Initial Catalog=NSpotIntegration;User ID=sa;Password=sa@123" providerName="System.Data.SqlClient" /> </connectionStrings> <system.serviceModel> <services> <!--*******************************Purchase Service ***************************--> <service behaviorConfiguration="NSpotSecuredBehaviour" name="WcfSOALibrary.Services.Marketing.NSpotService"> <host> <baseAddresses> <add baseAddress="https://localhost:80/NSpotService" /> </baseAddresses> </host> <endpoint address="" binding="wsHttpBinding" contract="WcfSOALibrary.Services.Marketing.INSpotService" bindingConfiguration="SecureBinding"> <identity> <dns value="localhost"/> </identity> </endpoint> <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /> </service> <service behaviorConfiguration="VssplSecuredBehaviour" name="WcfSOALibrary.Services.Marketing.MiddleTierService"> <host> <baseAddresses> <add baseAddress="https://localhost:9006/VasudhaikaService" /> </baseAddresses> </host> <endpoint address="" binding="wsHttpBinding" contract="WcfSOALibrary.Services.Marketing.IMiddleTierService" bindingConfiguration="SecureBinding"> <identity> <dns value="localhost"/> </identity> </endpoint> <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /> </service> </services> <behaviors> <serviceBehaviors> <behavior name="NSpotSecuredBehaviour"> <serviceMetadata httpsGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="true" /> <serviceThrottling maxConcurrentCalls="16" maxConcurrentInstances="2147483647" maxConcurrentSessions="10"/> <dataContractSerializer maxItemsInObjectGraph="2147483647" /> <bufferedReceive maxPendingMessagesPerChannel="2147483647" /> <serviceCredentials> <userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="WcfSOALibrary.Authorize.VasudhaikaAuthorize,WcfSOALibrary"/> </serviceCredentials> </behavior> <behavior name="VssplSecuredBehaviour"> <serviceMetadata httpsGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="true" /> <serviceThrottling maxConcurrentCalls="16" maxConcurrentInstances="2147483647" maxConcurrentSessions="10"/> <dataContractSerializer maxItemsInObjectGraph="2147483647" /> <bufferedReceive maxPendingMessagesPerChannel="2147483647" /> <serviceCredentials> <userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="WcfSOALibrary.Authorize.NSpotAuthentication,WcfSOALibrary"/> </serviceCredentials> </behavior> </serviceBehaviors> </behaviors> <bindings> <wsHttpBinding> <binding name="SecureBinding" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" closeTimeout="01:59:00" openTimeout="01:59:00" receiveTimeout="01:59:00" sendTimeout="01:59:00"> <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /> <security mode="TransportWithMessageCredential"> <message clientCredentialType="UserName"/> </security> </binding> </wsHttpBinding> </bindings> <serviceHostingEnvironment multipleSiteBindingsEnabled="true"/> </system.serviceModel> <system.transactions> <defaultSettings timeout="01:59:00" /> </system.transactions> </configuration>