Re: How complex is this, really?
- From: "Barrie Wilson" <bwilson@xxxxxxxxxxx>
- Date: Fri, 14 Dec 2007 13:11:03 -0600
"sam" <scarleton@xxxxxxxxx> wrote in message
news:6a39d281-18a9-4fa9-b68a-81fb13006608@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
There is one day the product is delivered by all the scouts to all the
customers. There is someone at a central location that is able to
take calls when customers call and complain they did not get the
correct items. In the past they had to figure out which order number
the person was, find the paper order to determine of there was an
error in entering the order or if the customer marked the wrong thing.
ah, this one is easy ... outsource the call center to India, put people on
hold for 45 minutes and then drop the call ... it works great for Dell;
they save money and I live with the problem
I am really very open to any approach that is fast and easy. Can you
give me a bit more detail on HttpWebRequest? I looked it up and it
looks like a generic way to post data to a web server.
it's a way to make a request over HTTP, with or without data being sent;
this is an example of what it takes to send data from a WinForm to a web
server; I'm leaving out what comes back from the server; you can have your
web page send back whatever makes sense (or nothing at all); the page you
request just has to handle the data in the Request collection and dump it in
the SQL store ... simple ...
string url = "http://www.MyServer.com/DataPost.asp";
HttpWebRequest req;
req = (HttpWebRequest)HttpWebRequest.Create(url);
// no search for proxy; takes forever
req.Proxy = null;
// create an arbitrary HTTP request header
req.AllowAutoRedirect = true;
req.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR
1.1.4322)";
req.Accept = "*/*";
req.Method = "POST";
req.ContentType = "application/x-www-form-urlencoded"; // important
// you have to build up your data string from the WinForm
string postData = "var1=POSTMEISTER&var2=message";
byte[] postDataBytes = Encoding.UTF8.GetBytes(postData.ToString());
req.ContentLength = postDataBytes.Length;
Stream postDataStream = req.GetRequestStream();
postDataStream.Write(postDataBytes, 0, postDataBytes.Length);
postDataStream.Close();
Would not a
Web Service be easier because it will do all the packaging and
unpackaging of the data for me?
I think it's hard to get simpler than what I posted above ...
It is my understanding that
WebServices is simply Microsoft's version of SOAP which is simply an
interface to make function calls and to interact with classes over
HTTP. Am I mistaken?
not mistaken but over-simplified ... but I am by no means knocking web
services and if learning to write a web service to do this project is
valuable payback for taking on the project then by all means do it would be
my view
.
- References:
- How complex is this, really?
- From: sam
- Re: How complex is this, really?
- From: Barrie Wilson
- Re: How complex is this, really?
- From: sam
- How complex is this, really?
- Prev by Date: Binding 3 dropdowns with 1 gridview
- Next by Date: persisting ViewState
- Previous by thread: Re: How complex is this, really?
- Next by thread: Re: How complex is this, really?
- Index(es):
Relevant Pages
|
Loading