Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > WCF and endpoints setup something is not right???

Reply
Thread Tools

WCF and endpoints setup something is not right???

 
 
srussell705@gmail.com
Guest
Posts: n/a
 
      07-20-2008
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.Produc tionShippingService">
<host>
<baseAddresses>
<add baseAddress="http://localhost:7890/ProductionServices/
ShippingService"/>
</baseAddresses>
</host>
<endpoint address="" binding="customBinding"
bindingConfiguration="StandardServiceBinding"
contract="Services.Enterprise.ProductionService.Pr oductionShippingServiceContract" /
>

</service>
</services>
<client>
<endpoint
name="MimeoEnterpriseServices.ProductionServiceCli entEndpoint"
address="http://localhost:7890/ProductionServices/
ShippingService"
binding="customBinding"
bindingConfiguration="StandardServiceBinding"

contract="Mimeo.Services.Enterprise.ProductionServ ice.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.Http sViaProxyTransportElement,
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.ProductionServ ice.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.ProductionServ ice.ProductionShippingServiceContract" /
>

</service>
</services>

<!--<client>
<endpoint
name="MimeoEnterpriseServices.ProductionServiceCli entEndpoint"
address="http://localhost:7890/ProductionServices/
ShippingService"
binding="customBinding"
bindingConfiguration="StandardServiceBinding"

contract="Mimeo.Services.Enterprise.ProductionServ ice.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.Http sViaProxyTransportElement,
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:



 
Reply With Quote
 
 
 
 
srussell705@gmail.com
Guest
Posts: n/a
 
      07-20-2008
On Jul 20, 3:47*pm, srussell...@gmail.com wrote:

> Contracts are where I am getting the error:


sorry i hit the send while looking to clean my xml.

So my error is either this :
An existing connection was forcibly closed by the remote host
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.Net.Sockets.SocketException: An existing
connection was forcibly closed by the remote host

Source Error:


Line 65: public bool PostLogicorXML(String PacklistBarcode, String
LPN, Decimal Weight)
Line 66: {
Line 67: return base.Channel.PostLogicorXML(PacklistBarcode, LPN,
Weight);
Line 68: }
Line 69:



or this, depends if I just do a re-try the error changes?
The remote server returned an error: (405) Method Not Allowed.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The remote server returned
an error: (405) Method Not Allowed.

Source Error:


Line 65: public bool PostLogicorXML(String PacklistBarcode, String
LPN, Decimal Weight)
Line 66: {
Line 67: return base.Channel.PostLogicorXML(PacklistBarcode, LPN,
Weight);
Line 68: }
Line 69:



Same code, it is just confusing to me.

Anyone have an idea or see the miss point that i fail to catch? If
the Mimeo. is missing in the first xml, that is what i was extracting
before sending out.

TIA

__Stehen
 
Reply With Quote
 
 
 
 
srussell705@gmail.com
Guest
Posts: n/a
 
      07-21-2008
Found that path from test harness had folder where IIS did not need
that folder.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between Ajax Enabled WCF service and regular WCF? Cindy Lee ASP .Net 1 03-19-2010 05:59 PM
AJAX enabled WCF Service Vs Standard WCF Service Simon ASP .Net 0 10-13-2009 09:13 AM
wcf - multiple endpoints? Jerry Nettleton ASP .Net Web Services 1 12-17-2008 12:32 AM
Terminating VPN endpoints on logical interfaces - PIX. AM Cisco 0 05-27-2005 05:36 PM
2 routers, 5 BRIs, 35 endpoints. Jeff Pratt Cisco 3 10-28-2003 06:28 PM



Advertisments