473,796 Members | 2,464 Online
Bytes | Software Development & Data Engineering Community
+ 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\AddressVa lidationService _v1.wsdl
C:\Sep-WSDLs\RateAvail ableServicesSer vice_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 AddressValidati onRequest , as found in the address validation example from FedEx, complains that "AddressValidat ionRequest is not defined", yet AddressValidati onRequest is found in the AddressValidati onService_v1.ws dl file.

What am I missing?

Thanks.
Oct 9 '07 #1
2 5576
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
3963
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
3498
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 Input/Output parameters. I try to find out Documentation on Fedex and UPS, but did not find any documentation or any sample code for this. I hope some of the guys already did this excercise, can anyone tell regarding this? FYI, I have created UPS...
1
5917
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# file that uses their objects. Thanks, Mike Schore
1
5455
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 for and process the response. I have seen some code that will allow me to recieve info over ssl and some that will allow me to send info over ssl but not both. Thanks in advance for any help, ~Logan
1
2609
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 perform. I'm looking to integrate this logic into a database and extract the tracking number and priority codes from the barcodes with a scanner. I've got the scanner working great but still need to find out what barcodes are used for what...
3
5482
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 barcodes and see the tracking number that is on the package, but when I scan the fedex barcode I get a very long number that does not resemble the actual tracking number. I know that there are double density barcodes that has to be broken down to...
31
15369
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 D:\Test\FDX\rate.php on line 12 Fatal error: Uncaught SoapFault exception: SOAP-ERROR: Parsing WSDL: Couldn't load from 'wsdl/RateService.wsdl' in D:\Test\FDX\rate.php:12 Stack trace: #0 D:\Test\FDX\rate.php(12): SoapClient->SoapClient('wsdl/RateServic...')...
13
15437
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 form that will create a fedex shipping label, and hopefully UPS too. Any ideas of how I can accomplish this without losing my mind?
3
2109
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
9528
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10455
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10173
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9052
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6788
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5441
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4116
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 we have to send another system
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.