Greetings All,

This is my first attempt at programing to communicate with a web server and 
althought I have been a Delphi programer for 11 years mainly in the database 
field, I'm a newbie at this kind of programming and I now remember how 
overwhelmed I was when first starting to learn Delphi.

I'm currently using Delphi 5.1 and want to communicate with a web server 
hosted by USPS.

Using the webtools proviced by USPS at 
http://www.usps.com/webtools/address.htm I would like to use their address 
correction and lookup tools from within my Delphi application.

After reading their technical guides they do mention that software 
developers can also use these tools from within their own software.

I have signed up to use there tools and have tested calling their web server 
by simply plugging in the following HTTP url (which includes XML) and it 
works returning an XML value in internet explorer.  (Yeah)

Here is what I need to do:

I need to connect to a web server, send an xml message, the server receives 
and respond to my
message responding with XML.

I can connect to a webserver using my internet browser and send it a string 
of information like this:

http://SERVERNAME/ShippingAPITest.dll?API=CityStateLookup&XML=<CityStateLookupRequest%20USERID="xxxxxxxx"><ZipCode%20ID=%20"0"><Zip5>90210</Zip5></ZipCode></CityStateLookupRequest>

NOTE: SERVERNAME and USERID above are of course replaced with the actual 
server I'm logging onto and the User ID assigned to me

and it returns a response like this in XML format that I see in my internet 
browser

  <?xml version="1.0" ?>
- <CityStateLookupResponse>
- <ZipCode ID="0">
  <Zip5>90210</Zip5>
  <City>BEVERLY HILLS</City>
  <State>CA</State>
  </ZipCode>
  </CityStateLookupResponse>

I understand I need to use the HTTPCli component to connect to the 
webserver, but am having trouble in how to use and hope that someone on this 
list would take pitty on me and help to guide me in how to accomplish this.

Any guidance on how to get started would really be appreciated.

Thanks,
Mike 


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to