S
srussell705
ASP.NET page to WCF Service app.
I want to make sure I get this right, because I am getting a 405 error
Method is blocked.
Web page has web.config points to service.
<system.serviceModel>
<services>
<service behaviorConfiguration="StandardServiceBehavior"
name="Services.Enterprise.ProductionService.ProductionShippingService">
<host>
<baseAddresses>
<add baseAddress="http://localhost:7890/ProductionServices/
ShippingService"/>
</baseAddresses>
</host>
<endpoint address="" binding="customBinding"
bindingConfiguration="StandardServiceBinding"
contract="Services.Enterprise.ProductionService.ProductionShippingServiceContract" /</service>
</services>
<client>
<endpoint
name="MimeoEnterpriseServices.ProductionServiceClientEndpoint"
address="http://localhost:7890/ProductionServices/
ShippingService"
binding="customBinding"
bindingConfiguration="StandardServiceBinding"
contract="Mimeo.Services.Enterprise.ProductionService.ProductionShippingServiceContract" /</client>
<bindings>
<customBinding>
<binding name="StandardServiceBinding" sendTimeout="1:00:00"
receiveTimeout="1:00:00">
<textMessageEncoding />
<httpTransport />
</binding>
</customBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="StandardServiceBehavior">
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceMetadata httpGetEnabled="true" httpGetUrl="/Metadata"/>
</behavior>
</serviceBehaviors>
</behaviors>
<extensions>
<bindingElementExtensions>
<add name="httpsViaProxyTransport"
type="Mimeo.Common.ServiceModel.Configuration.HttpsViaProxyTransportElement,
Mimeo.Common.ServiceModel" />
</bindingElementExtensions>
</extensions>
<diagnostics performanceCounters="Off">
<messageLogging logEntireMessage="true" logMalformedMessages="true"
logMessagesAtServiceLevel="false" logMessagesAtTransportLevel="true" /</diagnostics>
</system.serviceModel>
---------------------------------------------------------------------------------------------
WCF Servcie has Web.config ponts to Contracts project
<system.serviceModel>
<services>
<service behaviorConfiguration="StandardServiceBehavior"
name="Mimeo.Services.Enterprise.ProductionService.ProductionShippingService">
<endpoint address=""
binding="customBinding"
bindingConfiguration="StandardServiceBinding"
contract="Mimeo.Services.Enterprise.ProductionService.ProductionShippingServiceContract" /</service>
</services>
<bindings>
<customBinding>
<binding name="StandardServiceBinding" sendTimeout="1:00:00"
receiveTimeout="1:00:00">
<textMessageEncoding />
<httpTransport />
</binding>
</customBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="StandardServiceBehavior">
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceMetadata httpGetEnabled="true" httpGetUrl="/
Metadata"/>
</behavior>
</serviceBehaviors>
</behaviors>
<diagnostics performanceCounters="Off">
<messageLogging logEntireMessage="true"
logMalformedMessages="true" logMessagesAtServiceLevel="false"
logMessagesAtTransportLevel="true" />
</diagnostics>
</system.serviceModel>
---------------------------------------------------------------------------------------------------
Contracts project has app.config
<system.serviceModel>
<services>
<service behaviorConfiguration="StandardServiceBehavior"
name="Mimeo.Services.Enterprise.ProductionService.ProductionShippingService">
<host>
<baseAddresses>
<add baseAddress="http://localhost:7890/ProductionServices/
ShippingService"/>
</baseAddresses>
</host>
<!-- was customBinding-->
<endpoint address="" binding="customBinding"
bindingConfiguration="StandardServiceBinding"
contract="Mimeo.Services.Enterprise.ProductionService.ProductionShippingServiceContract" /</service>
</services>
<!--<client>
<endpoint
name="MimeoEnterpriseServices.ProductionServiceClientEndpoint"
address="http://localhost:7890/ProductionServices/
ShippingService"
binding="customBinding"
bindingConfiguration="StandardServiceBinding"
contract="Mimeo.Services.Enterprise.ProductionService.ProductionShippingServiceContract" /</client> -->
<bindings>
<customBinding>
<binding name="StandardServiceBinding" sendTimeout="1:00:00"
receiveTimeout="1:00:00">
<textMessageEncoding />
<httpTransport />
</binding>
</customBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="StandardServiceBehavior">
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceMetadata httpGetEnabled="true" httpGetUrl="/Metadata"/>
</behavior>
</serviceBehaviors>
</behaviors>
<extensions>
<bindingElementExtensions>
<add name="httpsViaProxyTransport"
type="Mimeo.Common.ServiceModel.Configuration.HttpsViaProxyTransportElement,
Mimeo.Common.ServiceModel" />
</bindingElementExtensions>
</extensions>
<diagnostics performanceCounters="Off">
<messageLogging logEntireMessage="true" logMalformedMessages="true"
logMessagesAtServiceLevel="false" logMessagesAtTransportLevel="true" /</diagnostics>
</system.serviceModel>
Contracts are where I am getting the error:
I want to make sure I get this right, because I am getting a 405 error
Method is blocked.
Web page has web.config points to service.
<system.serviceModel>
<services>
<service behaviorConfiguration="StandardServiceBehavior"
name="Services.Enterprise.ProductionService.ProductionShippingService">
<host>
<baseAddresses>
<add baseAddress="http://localhost:7890/ProductionServices/
ShippingService"/>
</baseAddresses>
</host>
<endpoint address="" binding="customBinding"
bindingConfiguration="StandardServiceBinding"
contract="Services.Enterprise.ProductionService.ProductionShippingServiceContract" /</service>
</services>
<client>
<endpoint
name="MimeoEnterpriseServices.ProductionServiceClientEndpoint"
address="http://localhost:7890/ProductionServices/
ShippingService"
binding="customBinding"
bindingConfiguration="StandardServiceBinding"
contract="Mimeo.Services.Enterprise.ProductionService.ProductionShippingServiceContract" /</client>
<bindings>
<customBinding>
<binding name="StandardServiceBinding" sendTimeout="1:00:00"
receiveTimeout="1:00:00">
<textMessageEncoding />
<httpTransport />
</binding>
</customBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="StandardServiceBehavior">
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceMetadata httpGetEnabled="true" httpGetUrl="/Metadata"/>
</behavior>
</serviceBehaviors>
</behaviors>
<extensions>
<bindingElementExtensions>
<add name="httpsViaProxyTransport"
type="Mimeo.Common.ServiceModel.Configuration.HttpsViaProxyTransportElement,
Mimeo.Common.ServiceModel" />
</bindingElementExtensions>
</extensions>
<diagnostics performanceCounters="Off">
<messageLogging logEntireMessage="true" logMalformedMessages="true"
logMessagesAtServiceLevel="false" logMessagesAtTransportLevel="true" /</diagnostics>
</system.serviceModel>
---------------------------------------------------------------------------------------------
WCF Servcie has Web.config ponts to Contracts project
<system.serviceModel>
<services>
<service behaviorConfiguration="StandardServiceBehavior"
name="Mimeo.Services.Enterprise.ProductionService.ProductionShippingService">
<endpoint address=""
binding="customBinding"
bindingConfiguration="StandardServiceBinding"
contract="Mimeo.Services.Enterprise.ProductionService.ProductionShippingServiceContract" /</service>
</services>
<bindings>
<customBinding>
<binding name="StandardServiceBinding" sendTimeout="1:00:00"
receiveTimeout="1:00:00">
<textMessageEncoding />
<httpTransport />
</binding>
</customBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="StandardServiceBehavior">
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceMetadata httpGetEnabled="true" httpGetUrl="/
Metadata"/>
</behavior>
</serviceBehaviors>
</behaviors>
<diagnostics performanceCounters="Off">
<messageLogging logEntireMessage="true"
logMalformedMessages="true" logMessagesAtServiceLevel="false"
logMessagesAtTransportLevel="true" />
</diagnostics>
</system.serviceModel>
---------------------------------------------------------------------------------------------------
Contracts project has app.config
<system.serviceModel>
<services>
<service behaviorConfiguration="StandardServiceBehavior"
name="Mimeo.Services.Enterprise.ProductionService.ProductionShippingService">
<host>
<baseAddresses>
<add baseAddress="http://localhost:7890/ProductionServices/
ShippingService"/>
</baseAddresses>
</host>
<!-- was customBinding-->
<endpoint address="" binding="customBinding"
bindingConfiguration="StandardServiceBinding"
contract="Mimeo.Services.Enterprise.ProductionService.ProductionShippingServiceContract" /</service>
</services>
<!--<client>
<endpoint
name="MimeoEnterpriseServices.ProductionServiceClientEndpoint"
address="http://localhost:7890/ProductionServices/
ShippingService"
binding="customBinding"
bindingConfiguration="StandardServiceBinding"
contract="Mimeo.Services.Enterprise.ProductionService.ProductionShippingServiceContract" /</client> -->
<bindings>
<customBinding>
<binding name="StandardServiceBinding" sendTimeout="1:00:00"
receiveTimeout="1:00:00">
<textMessageEncoding />
<httpTransport />
</binding>
</customBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="StandardServiceBehavior">
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceMetadata httpGetEnabled="true" httpGetUrl="/Metadata"/>
</behavior>
</serviceBehaviors>
</behaviors>
<extensions>
<bindingElementExtensions>
<add name="httpsViaProxyTransport"
type="Mimeo.Common.ServiceModel.Configuration.HttpsViaProxyTransportElement,
Mimeo.Common.ServiceModel" />
</bindingElementExtensions>
</extensions>
<diagnostics performanceCounters="Off">
<messageLogging logEntireMessage="true" logMalformedMessages="true"
logMessagesAtServiceLevel="false" logMessagesAtTransportLevel="true" /</diagnostics>
</system.serviceModel>
Contracts are where I am getting the error: