Web service to validate US states, city and zipcode

I want to validate city against selected state and zipcode against selected city.Is there any free web service that I can use to validate it.Kindly help...thanks in advance.--Tahir
[222 byte] By [tahirakrama] at [2007-11-27 9:29:19]
# 1
Yah, But is for country's like US.This URL's are in .Net. If you are able 2 invoke those services following is the URL. http://www.webservicex.net/usaddressverification.asmx?WSDL
NiruMagica at 2007-7-12 22:37:18 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

Yes NiruMagic,

I got exactly you talk about, but I dont know how to use this wsdl file in my java code. I tested the webservice and it gave the desire result in xml format.

How can I get that xml tree in my java code?

Kindly guide int this regard.

Thanks

--

Tahir

tahirakrama at 2007-7-12 22:37:19 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
Let me know which type of invocation your using?. Means Static(Stub based) oy Dynamic invocation Interface.If you are using AXIS use Static invocation. if u got XML response use Parser for getting information. I think response is XML Object.
NiruMagica at 2007-7-12 22:37:19 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4

Actually I don't know the right method to invoke a web service. As I posted here they also give SOAP request / response envelop.

SOAP request / response envelop

POST /uszip.asmx HTTP/1.1

Host: www.webservicex.net

Content-Type: text/xml; charset=utf-8

Content-Length: length

SOAPAction: "http://www.webserviceX.NET/GetInfoByZIP"

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

<soap:Body>

<GetInfoByZIP xmlns="http://www.webserviceX.NET">

<USZip>string</USZip>

</GetInfoByZIP>

</soap:Body>

</soap:Envelope>

HTTP/1.1 200 OK

Content-Type: text/xml; charset=utf-8

Content-Length: length

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

<soap:Body>

<GetInfoByZIPResponse xmlns="http://www.webserviceX.NET">

<GetInfoByZIPResult>xml</GetInfoByZIPResult>

</GetInfoByZIPResponse>

</soap:Body>

</soap:Envelope>

I just need to make a client to call this WS to get xml doc tree. I don't know static and dynamic invocation, which is the easiest method to go...

Do I need to study AXIS or any other API to call it, kindly recommend. I just need a client. Do I need to go with these SOAP envelops or I need WSDL to call WS methods?

Your guidance is valuable for me.

Very Thanks

--

Tahir

tahirakrama at 2007-7-12 22:37:19 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 5
In AXIS we have set of commands. Using that commands extract stubs and Use static invocation technique. Which is much simpler. You can find help on this invocation in many site. Final response of this invocation is simple XML Object.
NiruMagica at 2007-7-12 22:37:19 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...