title: RateService not defined with FedEx WSDL in VB.NET
body: <p>I am using using VB.NET in Visual Studio 2007. I am trying to integrate the FexEd rating service into one of my company's websites using the FedEx WSDL. My connection/integration with the WSDL seems to be working properly as far as I can tell (first time working with WSDLs) since it isn't complaining about undefined methods and such. </p>
  
  <p>The exception to this is that when I try to create a new instance of <code>RateService</code> I get an error </p>
  
  <blockquote>
    <p>"Type 'Rate Service' is not defined." </p>
  </blockquote>
  
  <p>I am using the exact same declaration that is in the sample code that FexEx provides <code>Dim service As RateService = New RateService()</code> and have the same import statements.</p>
  
  <p>Can anybody think of a reason why I am having problems with just this one class? Or is there anybody who has used the Fedex service that can give me pointers? Feel free to ask me questions if you need more info since I most likely left out something important.</p>
  
  <p>Thanks in advance.</p>
  
  <p>Here is the beginning of the RateService Constructor asked for by urbanlemur</p>
  
  <pre><code>Imports System.ComponentModel
  Imports System.Diagnostics
  Imports System.Web.Services
  Imports System.Web.Services.Protocols
  Imports System.Xml.Serialization
  
  ' 
  ' This source code was auto-generated by wsdl, Version=2.0.50727.1432.
  ' 
  
  
  ''' &lt;remarks/&gt;
  &lt;System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")&gt; _
  &lt;System.Diagnostics.DebuggerStepThroughAttribute&gt; _
  &lt;System.ComponentModel.DesignerCategoryAttribute("code")&gt; _
  &lt;System.Web.Services.WebServiceBindingAttribute(Name := "RateServiceSoapBinding", [Namespace] := "http://fedex.com/ws/rate/v13")&gt; _
  Public Partial Class RateService
      Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
  
      Private getRatesOperationCompleted As System.Threading.SendOrPostCallback
  
      ''' &lt;remarks/&gt;
      Public Sub New()
  </code></pre>