Reputation: 21
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.
The exception to this is that when I try to create a new instance of RateService
I get an error
"Type 'Rate Service' is not defined."
I am using the exact same declaration that is in the sample code that FexEx provides Dim service As RateService = New RateService()
and have the same import statements.
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.
Thanks in advance.
Here is the beginning of the RateService Constructor asked for by urbanlemur
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.
'
''' <remarks/>
<System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")> _
<System.Diagnostics.DebuggerStepThroughAttribute> _
<System.ComponentModel.DesignerCategoryAttribute("code")> _
<System.Web.Services.WebServiceBindingAttribute(Name := "RateServiceSoapBinding", [Namespace] := "http://fedex.com/ws/rate/v13")> _
Public Partial Class RateService
Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
Private getRatesOperationCompleted As System.Threading.SendOrPostCallback
''' <remarks/>
Public Sub New()
Upvotes: 2
Views: 584
Reputation: 102
Just to verify did you create the proxy class? (Sounds like you did but never hurts to ask)
Create web service proxy in Visual Studio from a WSDL file
Do you have the connection defined in your web config?
<applicationSettings>
<RateWebServiceClient.Properties.Settings>
<setting name="RateWebServiceClient_RateServiceWebReference_RateService" serializeAs="String">
<value>##fedex webservice address ##</value>
</setting>
</RateWebServiceClient.Properties.Settings>
</applicationSettings>
Upvotes: 1