Verificar CEP

5 respostas
abitdodgy

Sorry, I realize this is a Brazilian forum, but I don’t speak Portuguese :oops:

I was wondering if anyone knows of a web service that can verify CEP information through Ajax…

For example, I would like a person to input a CEP and have the option of clicking “verify.” This will activate a web query through Ajax and return the area, city, and state and populate respective form elements. I’m using a ColdFusion platform for my application.

Many thanks,

5 Respostas

Foxlol

Try this:

http://www.bronzebusiness.com.br/webservices/wscep.asmx

You can find most information looking for “webservices correios” but most (or everyone) of them will be in portuguese.

abitdodgy

Thank you. That one works pretty well… It’s .Net though, so getting it to work on a ColdFusion platform was a lot of trouble… after a day, it’s done. I’m curious, is this the best webservice for this sort of thing, or are there better ones? (One thing I do not like about it is it splits the street type from the street name. For example: “Rua” “Joe Bloggs” are seperate xml elements… instead of “rua joe bloggs”–otherwise it’s perfect. As for how recent/old its database is, I’m not sure!)

Thanks again for your help…

ricardosoares

HTTP request by GET method

good for ajax. return in JSON, javascript, xml and querystring

http://www.republicavirtual.com.br/cep/exemplos.php

if useful for you, make a donation!

abitdodgy

Thanks Ricardo, I will check it out…

A side question: I am interested in creating a service that requires monthly billing (mensal?) and wanted to use a payment gateway. Someone suggested Braspag, but they charge R$4,000 as a setup fee, which in itself is way too much, especially if you are a small business. And you also have to negotiate independently with VisaNet and Mastercard. Can anyone recommend an alternative payment gateway?

ricardosoares

see http://pagseguro.uol.com.br/

Criado 17 de dezembro de 2009
Ultima resposta 21 de dez. de 2009
Respostas 5
Participantes 3