Link to home
Start Free TrialLog in
Avatar of webdork
webdork

asked on

Implement .NET

I'm trying to retrieve a shipping label from Fedex in a web application. FE says it can be done and i've got all the tools, just dont know how to use them. I understand ASP pretty good but there is no sample in that language.  I've got samples in  C# and VB.NET.

I'm not asking for someone to do my work, just point me in the right direction. What would be the best way to proceed?
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Have you signed up for a FedEx developer account yet?
Avatar of webdork
webdork

ASKER

yep
Avatar of webdork

ASKER

ive got the dev key and sample code. not sure how to implement the 12 or so files that make up the vb.net sample.
Then you need to click on  "Request Attention" above and get the VB.NET zone added to your question so you can get those experts looking at your question.
Avatar of webdork

ASKER

Done. Thank You
I have no idea about how to specifically provide details about Fedex, but I am willing to help you help yourself...if you are interested...
Avatar of webdork

ASKER

yes very interested. I have sample code provided by Fed Ex, just not sure how to implement.
Can you show me the sample code?
Avatar of webdork

ASKER

EE security does not allow me to attach the sample C# or .NET files. What do you suggest?
Zip up the files, use http://www.ee-stuff.com to upload the zip file, and then give me the URL for the file ID reference.
Avatar of webdork

ASKER

It looks like I can dump the code in to the Code form field.  There are about 15 files in each zip archive C3 and .NET.  I could also post the zipped files on my server and you could download
Avatar of webdork

ASKER

Do you want to look at C# .NET or both?
Which version do you want to work with (C# or VB.NET)?
Avatar of webdork

ASKER

whichever one is closest to classic ASP
This is what I see:

1) A web service reference to https://gatewaybeta.fedex.com:443/web-services/ship.

2) SOAP objects defined from the WebService for the request (CreatePendingShipmentRequest)
2) SOAP objects defined from the WebService for the reply (CancelPendingShipmentReply, CreatePendingShipmentReply, ProcessShipmentReply, ProcessTagReply).

3) Client class -- CreatePendingShipmentWebServiceClient

4) Methods for CreatePendingShipmentWebServiceClient

    a) SetShipmentDetails(CreatePendingShipmentRequest)
    b) SetSender(CreatePendingShipmentRequest)
    c) SetRecipient(CreatePendingShipmentRequest)
    d) SetPayment(CreatePendingShipmentRequest)
    e) SetLabelDetails(CreatePendingShipmentRequest)
    f) SetSpecialServices(CreatePendingShipmentRequest, isCodShipment)
    g) SetPendingShipmentDetails(CreatePendingShipmentRequest)
    h) SetEmailNotificationDetails(CreatePendingShipmentRequest)
    i) SetCODDetails(CreatePendingShipmentRequest)
    j) SetPackageLineItems(CreatePendingShipmentRequest)

--------------------------
Important methods:
--------------------------
    k) CreatePendingShipmentRequest
        1) Create a pending shipment request
        2) Set the authentication credentials for the user request
        3) Set the client detail information for the request

    l) Main -- this is the starting point for the sample
       1) Create a shipment request
       2) Create an instance of the web service
       3) Get the reply for the request by calling the "createPendingShipment" web method
If you are used to classic ASP, then I would go with the VB.NET version, since it will be easier to read.
Avatar of webdork

ASKER

OK VB.NET.
Do I need an application beyond Dreamweaver to work with those files?
MY main objective is to get a shipping label returned from FE.
It depends on your final requirement.  If you would like to create an ASP.NET web site, then Visual Web Developer 2010 is a free download, and you can use the VB.NET sample code, with a few tweaks.  If you are targeting a different platform, then that sample code is probably useless.
Avatar of webdork

ASKER

Hmm... I've got a lot of time into the site already as ASP. I would like to transition to .NET but not all at once. Can they coexist as the transition progresses?
Avatar of webdork

ASKER

what is my objective with the 15 .Net files in the zip archive? Is it to create a single aspx page? or a page with external reference to some of the support files?
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of webdork

ASKER

Hi Thanks,

I'm still not sure how to proceed and I don't expect you to do my work for me.  How do you recommend I continue my education?
Some light reading to hopefully help you continue with this effort:

Combine Classic ASP and ASP.NET Content Seamlessly with Invisible Blended IFrames
http://www.eggheadcafe.com/articles/20060605.asp

ASP.NET Tutorial
http://www.w3schools.com/aspnet/default.asp