473,394 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

VB.NET - Using FedEx Web Services

I am writing an application that will use the FedEx Web Services to validate addresses and determine what services are available for an address.

I have downloaded the sample code and WSDL files from FedEx.

I have created references to both WSDL files:
C:\Sep-WSDLs\AddressValidationService_v1.wsdl
C:\Sep-WSDLs\RateAvailableServicesService_v2.wsdl

I have created Imports statements for both references:
Expand|Select|Wrap|Line Numbers
  1. Imports System.Web.Services.Protocols
  2. Imports Validate = FedEx_Tester.WebReference.AddressValidationService
  3. Imports Rate = FedEx_Tester.WebReference1.RateAvailableServicesService
  4. 'Imports AddressValidationWebServiceClient.AddressValidationWebReference
  5. 'Imports RateAvailableWebServiceClient.RateAvailableServicesWebReference
  6.  
  7. Public Class Form1
  8.     Dim strKey As String = "MNYPn7v1XXSxlyrs"
  9.     Dim strPassword As String = "JhEK8KXSrKcyuB26VIQIxg9kt"
  10.     Dim strAccount As String = "510087640"
  11.     Dim strMeter As String = "1197029"
  12.  
  13.     Private Sub ValidateAddress()
  14.         txtResult.Text = ""
  15.         ' Build a AddressValidationRequest object
  16.         Dim request As AddressValidationRequest = New AddressValidationRequest()
  17.  
Dim request As AddressValidationRequest , as found in the address validation example from FedEx, complains that "AddressValidationRequest is not defined", yet AddressValidationRequest is found in the AddressValidationService_v1.wsdl file.

What am I missing?

Thanks.
Oct 9 '07 #1
2 5551
Plater
7,872 Expert 4TB
Are you sure you are importing ALL of the required namespaces?
Oct 9 '07 #2
Are you sure you are importing ALL of the required namespaces?
I found I was putting too much in my Imports statement.

Rather than the code in my original message I should have used:
Expand|Select|Wrap|Line Numbers
  1. Imports FedEx_Tester.AddressValidationWebReference
  2. Imports FedEx_Tester.RateAvailableServicesWebReference
  3.  
Thanks.
Oct 9 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Gabriel Cooper | last post by:
I've made UPS and FedEx shipping rate request modules in python using XML. Is there an interest in putting this on the web?
3
by: Ashish Kanoongo | last post by:
Hello I would like to calculate freight online for UPS and Fedex. However I have already calculate freight for ABF, Roadway and MyYellow, because they have provided sufficient documentation of...
1
by: someone | last post by:
Does anyone have any experience integrating with FedEx via C# and ASP.NET? I am really frustrated with the lack of help from FedEx. Their example ASP.NET code consists of an empty form and a C#...
1
by: Logan | last post by:
I am trying to implement talk directly to the fedex servers so i can use there online services. I need to first establish an SSL connection then send some information to the fedex servers and wait...
1
by: DeanL | last post by:
Hi all, This is probably not the group for this but I'm not sure quite where else to go. Does anyone know where to find the barcode standards for FedEx shipments of all types of shipping they...
3
by: injanib via AccessMonster.com | last post by:
Does anyone know what kind of codes Fedex uses for its barcodes and how it is translated into the tracking number. I have a database to I use to log incoming packages. I am able to scan any other...
31
by: daniyalnawaz | last post by:
I'm having a problem during consuming the FedEx webservice... Error Detail: Warning: SoapClient::SoapClient() : I/O warning : failed to load external entity "wsdl/RateService.wsdl" in...
13
by: Jennysaur | last post by:
Hi Everyone, I'm new to PHP, and completely new to this website. I'm having a problem getting the PHP FedEx Web services software to work, and it seems overly complicated. I just need a simple...
3
by: massrex | last post by:
Sorry if I write here...... Do You know if and eventually where can I find a Visual Basic 6.0 sample about how to interact with Fedex web-services via SOAP? Thanks you very much in advance.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.