Note that there are some explanatory texts on larger screens.

plurals
  1. POI have an interface implemented in an existing WCF service that I can't add a reference for
    primarykey
    data
    text
    <p>I have <code>ASDService.svc</code>:</p> <pre><code> namespace StatusSimulator { [ServiceContract] public class ASDService { [OperationContract] public void DoWork() } [ServiceContract] public interface IScheduleTables { [OperatonContract] string getTable(string l, int r, int c) [OperatonContract] string getTable(string test) [OperatonContract] string createTable(List&lt;string&gt; lst, int r, int bal) } public class ScheduleTables:IScheduleTables { //Interface Implementation } } </code></pre> <p><code>web.config</code>:</p> <pre><code> &lt;system.serviceModel&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="NewBehavior0"&gt; &lt;serviceMetadata httpGetEnabled="true" /&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding name="NewBinding0" /&gt; &lt;/basicHttpBinding&gt; &lt;/bindings&gt; &lt;services&gt; &lt;service behaviorConfiguration="NewBehavior0" name="StatusSimulator.ASDService"&gt; &lt;endpoint address="http://localhost:2405/ASDService.svc" binding="basicHttpBinding" bindingConfiguration="NewBinding0" name="ASDEndpoint" contract="StatusSimulator.ASDService" /&gt; &lt;endpoint address="http://localhost:2405/ASDService.svc" binding ="basicHttpBinding" bindingConfiguration="NewBinding0" name="ScheduleTableEndPoint" contract="StatusSimulator.IScheduleTables" /&gt; &lt;/service&gt; &lt;/services&gt; &lt;/system.serviceModel&gt; </code></pre> <p>Absolutely nothing I've tried will expose the interface to the service. The only thing I can see is <code>ASDService.DoWork</code>. How does one implement other classes or interfaces inside a pre-existing service?</p> <p>I've tried two services in the config, multiple endpoints. I've tried nesting the interface inside ASDService. I've read more tutorials and posts on here than I care to mention. As it sits I am getting the error </p> <blockquote> <p>The contract name 'StatusSimulator.IScheduleTables' could not be found in the list of contracts implemented by the service 'ASDService'. </p> </blockquote> <p>I'm baffled, out of ideas and am going to need professional help if this continues.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload