473,394 Members | 1,759 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.

Network Programming Help - Fun with UPS

I need to do something in an asp.net application to get shipping costs
from UPS.

a)does anyone have any C# code for this? That would be immensely
helpful as then I could examine it and apply it directly to my problem

2)if not, can someone help me out with the network programming? there
is no webservice. there is an endpoint that my app would have to talk
to and pass it the information in XML, and I would get some XML back,
which is all fine and good, but I don't know how to say "here's your
XML" and then "oh good, I got some XML back".

iii)Screw UPS for building some network thing that talks XML over HTTP,
but not actually setting up a web service.

any and all help greatly appreciated

Nov 15 '05 #1
4 2107
Scott,

Do you have any specs on how to access this framework? That would go a
long way to determining how to access it.

Also, you will probably want to bone up on the HttpWebRequest and
HttpWebResponse classes to send a request and receive the response. Check
out the XmlDocument class for a method of formulating your XML as well.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Scott C. Reynolds" <sr*********@hotmail.com> wrote in message
news:Ol**********************@bgtnsc05-news.ops.worldnet.att.net...
I need to do something in an asp.net application to get shipping costs
from UPS.

a)does anyone have any C# code for this? That would be immensely
helpful as then I could examine it and apply it directly to my problem

2)if not, can someone help me out with the network programming? there
is no webservice. there is an endpoint that my app would have to talk
to and pass it the information in XML, and I would get some XML back,
which is all fine and good, but I don't know how to say "here's your
XML" and then "oh good, I got some XML back".

iii)Screw UPS for building some network thing that talks XML over HTTP,
but not actually setting up a web service.

any and all help greatly appreciated

Nov 15 '05 #2
yes...hundreds of pages of PDF

First, I know how to do the XML...that's the easy part.

Basically I have to make a POST (should have mentioned that in the first
place) to their thing. I can achieve that with HttpWebResponse and
HttpWebRequest? I will begin looking into it.

Nicholas Paldino [.NET/C# MVP] wrote:
Scott,

Do you have any specs on how to access this framework? That would go a
long way to determining how to access it.

Also, you will probably want to bone up on the HttpWebRequest and
HttpWebResponse classes to send a request and receive the response. Check
out the XmlDocument class for a method of formulating your XML as well.

Hope this helps.


Nov 15 '05 #3
"Scott C. Reynolds" <sr*********@hotmail.com> wrote in message
news:Ol**********************@bgtnsc05-news.ops.worldnet.att.net...
I need to do something in an asp.net application to get shipping costs
from UPS.

a)does anyone have any C# code for this? That would be immensely
helpful as then I could examine it and apply it directly to my problem

2)if not, can someone help me out with the network programming? there
is no webservice. there is an endpoint that my app would have to talk
to and pass it the information in XML, and I would get some XML back,
which is all fine and good, but I don't know how to say "here's your
XML" and then "oh good, I got some XML back".

iii)Screw UPS for building some network thing that talks XML over HTTP,
but not actually setting up a web service.

any and all help greatly appreciated


There's a GotDotNet project - DotNETShipping - for an assembly which does
this. It currently supports rate requests for UPS, FedEx, Airborne Express
and USPS. You need to register with each of the individual providers before
you'll be able to use the code, but if you've gotten the UPS documentation
you must have already registered.

Check it out here (watch for wrapping):
http://www.gotdotnet.com/Community/W...3-9445b978d1bf

It's not complete, but it should definitely get you started even if you
decide not to use it.

Good luck,
Ryan LaNeve
Nov 15 '05 #4
"Scott C. Reynolds" wrote:
yes...hundreds of pages of PDF

First, I know how to do the XML...that's the easy part.

Basically I have to make a POST (should have mentioned that in the
first place) to their thing. I can achieve that with
HttpWebResponse and HttpWebRequest? I will begin looking into it.


For simple applications, System.Net.WebClient will work as well.

Cheers,
--
Joerg Jooss
jo*********@gmx.net
Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Alex Ang | last post by:
I have written the following VBScript program. It is stored into a file "map_drive.vbs". It successfully mapped to a network drive \\server1\data. Dim WshNetwork Set WshNetwork =...
1
by: mch2k2 | last post by:
Hello All I have just started working on Pyhton. I need urgent help regarding Python Network Programming. I want the elctronic version of the Book: Foundations of Python Network programming by...
3
by: Jay | last post by:
Hi, I implemeneted an FTP client and server long time back using Java. I found sockets porgramming in java quite useful and easy to handle. I now wanted to implement a similar program using C++....
6
by: John Walton | last post by:
Hello, everyone. I just began school, and they already assigned us science fair. Since I'm in 8th grade, I get to do demonstrations for our projects. I'm probably going to demonstrate Python's...
2
by: Jesse Engle | last post by:
i'm learning how to do some basic low-level network programming. the site i'm reading talks about "network byte order" and "host byte order". the thing is, it doesn't give an explanation as to what...
4
by: Wayne M J | last post by:
I have "Professional .Net Network Programming" and "Network Programming for MS Windows 2nd Ed", but I find both of these to be lacking in what I am looking for. Has there been any books printed...
5
by: Terry | last post by:
Could someone please suggest me a good book to learn network programming. I have been programming in C#/VB.NET/VB 6.0 and have also used a bit of C++ (not MFC/ATL/COM) I am a total novice when...
6
by: Eric | last post by:
Does anyone know of any GOOD network programming book(s) that are C# based, as well as any online tutorials and forums on network programming? Thanks
2
by: ppuniversal | last post by:
Hello, Can someone tell a good Tutorial on Network Programming in C++, except Beej's Guide and Vijay Mukhi's tutorials. I want to make a Client Server application in C++ which will involve...
9
by: Mex | last post by:
Hi, I'm looking for a good book for beginners about Network Programming. Besides Stevens' book, I would like something specific for C++ language. Any suggestions? Thanks in advantage, Massimo
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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
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...

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.