473,466 Members | 1,631 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

VB.NET - Using FedEx Web Services

3 New Member
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 5554
Plater
7,872 Recognized Expert Expert
Are you sure you are importing ALL of the required namespaces?
Oct 9 '07 #2
ddieckmann
3 New Member
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.
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.