title: how do I use my web reference in MVC?
body: <p>greeting folks, I need to reference an external service in my MVC app.</p>
  
  <p>I'm using this service to validate an authentication token that one of our clients has requested we use.</p>
  
  <p>I'm porting an older project to MVC.
  I added a web reference.</p>
  
  <p>The config was generated like so:</p>
  
  <pre><code>&lt;system.serviceModel&gt;
  &lt;bindings&gt;
      &lt;basicHttpBinding&gt;
          &lt;binding name="ExternalServicesSoap" closeTimeout="00:01:00"
              openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
              allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
              maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
              messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
              useDefaultWebProxy="true"&gt;
              &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                  maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt;
              &lt;security mode="None"&gt;
                  &lt;transport clientCredentialType="None" proxyCredentialType="None"
                      realm="" /&gt;
                  &lt;message clientCredentialType="UserName" algorithmSuite="Default" /&gt;
              &lt;/security&gt;
          &lt;/binding&gt;
      &lt;/basicHttpBinding&gt;
  &lt;/bindings&gt;
  &lt;client&gt;
      &lt;endpoint address="http://myapps.test.com/ExternalServices/ExternalServices.asmx"
          binding="basicHttpBinding" bindingConfiguration="ExternalServicesSoap"
          contract="AssertionService.ExternalServicesSoap" name="ExternalServicesSoap" /&gt;
  &lt;/client&gt;
  </code></pre>
  
  <p></p>
  
  <p>In the older ASP.NET world, I could do the following on the specific service I am referencing, using the Assertion object defined in the external service reference.</p>
  
  <pre><code>        var service = new ExternalServices();
          Assertion assertion = service.Validate(Id);
          if(assertion.Valid){}
  </code></pre>
  
  <p>This doesn't seem to be the exact case in the MVC project. 
  I seem to be working with WCF.
  I'm not sure if I'm approaching this properly in the MVC world.</p>
  
  <p>All I have to work with is an <em>ExternalServiesSoap</em> interface or an <em>ExternalServicesSoapChannel</em> interface.
  None of which return an <em>Assertion</em> object like in the ASP.Net world.
  They both have the <em>Validate</em> method but return a <em>ValidateAssertionResponse</em>. 
  The response object doesn't have any useful properties; just a response body.
  The <em>Assertion</em> class is still accessible but it doesn't seem to be returned by any of the interface methods.</p>
  
  <p>Can anyone help me with how to properly use one of these interfaces?</p>
  
  <p>thanks</p>