c# - 1 end point multiple servicecontracts - wcf? -


I created a service that allows the client to search for user information. This is an interface that has emerged as ISearchUsers.

I used this article as a basis but it is of no use: not sure that it is the way to go

Now I want to create and disclose ICTUSUSSER An interface and I have assumed that I had to make a new endpoint, the original HT binding, and used the above article.

This is part of my config:

  & lt; Services & gt; & Lt; Service transaction support = "Service.Service1Behavior" name = "Service.SearchService" & gt; & Lt; Clear /> & Lt; Endpoint binding = "basicHttpBinding" binding configuration = "WsHttpMtomBinding" contract = "Service.ISearchService" listenUriMode = "clear" & gt; & Lt; Identity & gt; & Lt; Dns value = "localhost" /> & Lt; / Identification & gt; & Lt; / Endpoint & gt; & Lt; Endpoint address = "mex" binding = "maxhtpindex" contract = "imatadataexchange" listenUriMode = "clear" & gt; & Lt; / Endpoint & gt; & Lt; Host & gt; & Lt; BaseAddresses & gt; & Lt; AddAddress = "http: // localhost: 8731 / service / service1 /" /> & Lt; / BaseAddresses & gt; & Lt; / Host & gt; & Lt; / Services & gt; & Lt; / Services & gt; You can extend your existing service class which implements ISearchUser and can also implement it as ICERUser. In that case, you can add another endpoint to your service config:  

  & lt; Services & gt; & Lt; Service name = "service. Search service" behavior configuration = "service. Service 1 warfare" & gt; & Lt; Host & gt; & Lt; BaseAddresses & gt; & Lt; AddAddress = "http: // localhost: 8731 / services /" /> & Lt; / BaseAddresses & gt; & Lt; / Host & gt; & Lt; Endpoint address = "SearchUser" binding = "basicHttpBinding" binding configuration = "WsHttpMtomBinding" contract = "Service.ISearchService" & gt; & Lt; Identity & gt; & Lt; Dns value = "localhost" /> & Lt; / Identification & gt; & Lt; / Endpoint & gt; & Lt; Endpoint address = "CreateUser" binding = "basicHttpBinding" binding configuration = "WsHttpMtomBinding" contract = "Service.IreateUserService" & gt; & Lt; Identity & gt; & Lt; Dns value = "localhost" /> & Lt; / Identification & gt; & Lt; / Endpoint & gt; & Lt; Endpoint address = "Max" binding = "MaxHttpending" contract = "IMAXADEXXchange" /> & Lt; / Services & gt; & Lt; / Services & gt;  

One thing that most likely does not work in your case is that you select "binding HTTP binding" as your binding, but the binding configuration is indicated by WSHttpBidning ..... the match and so should probably be:

   

Mark


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -