WebService»Sample Request

Sample Request

Sample Requests

HTTP REQUESTS

Through a simple HTTP, you can easily access pipe-delimited results.

Request:
https://www.nrgsoft.com/products/nrg_addrval_webservice2.lasso?

licensecode=CODE&address2=119+PURCELL+AVE+&address3=BARDSTOWN,+KY+40004-1787

Response:
Exact match|31|||119 PURCELL AVE|BARDSTOWN KY 40004-1787|BARDSTOWN|KY|40004|1787|R|TRUE||S|Y|R012|199|179|NELSON|02a

Alternatively, the results can be returned as XML by adding the “result=XML” attribute.

Request:
https://www.nrgsoft.com/products/nrg_addrval_webservice2.lasso?

result=xml&licensecode=CODE&address2=119+PURCELL+AVE+&address3=BARDSTOWN,+KY+40004-1787

Response:
<Response><Message>Exact match</Message><ReturnCode>31</ReturnCode><ZIP5>40004</ZIP5><Plus4>1787</Plus4><CRT>R012</CRT><AddrLine3></AddrLine3><AddrLine2></AddrLine2><AddrLine1>119 PURCELL AVE</AddrLine1><AddrLineLast>BARDSTOWN KY 40004-1787</AddrLineLast><City>BARDSTOWN</City><State>KY</State><DPDigits>199</DPDigits><CountyNo>179</CountyNo><LOTSeq>0112</LOTSeq><LOTAscend>D</LOTAscend><CongressDist>02</CongressDist><DelSeq></DelSeq><AddrExists>TRUE</AddrExists><AMSDate>20051215</AMSDate><RecType>S</RecType><LACSStatus> </LACSStatus><DPVFootNote></DPVFootNote><PRUrban></PRUrban><CountyName>NELSON</CountyName><RDI>R</RDI><UPSRural>Y</UPSRural><ComputerName>DAZLOADBAL2</ComputerName><TimeStamp>01022006 11:56:22:993</TimeStamp></Response>

POST METHOD

If you prefer to send data via POST method, then the address and license must be sent as XML data:

Request:
https://www.nrgsoft.com/products/nrg_addrval_webservice2.lasso

POST Data:
<address><result>xml</result><licensecode>CODE</licensecode><address2>119+PURCELL+AVE</address2><address3>BARDSTOWN,+KY+40004-1787</address3></address>

Response:
<Response><Message>Exact match</Message><ReturnCode>31</ReturnCode><ZIP5>40004</ZIP5><Plus4>1787</Plus4><CRT>R012</CRT><AddrLine3></AddrLine3><AddrLine2></AddrLine2><AddrLine1>119 PURCELL AVE</AddrLine1><AddrLineLast>BARDSTOWN KY 40004-1787</AddrLineLast><City>BARDSTOWN</City><State>KY</State><DPDigits>199</DPDigits><CountyNo>179</CountyNo><LOTSeq>0112</LOTSeq><LOTAscend>D</LOTAscend><CongressDist>02</CongressDist><DelSeq></DelSeq><AddrExists>TRUE</AddrExists><AMSDate>20051215</AMSDate><RecType>S</RecType><LACSStatus> </LACSStatus><DPVFootNote></DPVFootNote><PRUrban></PRUrban><CountyName>NELSON</CountyName><RDI>R</RDI><UPSRural>Y</UPSRural><ComputerName>DAZLOADBAL2</ComputerName><TimeStamp>01022006 11:56:22:993</TimeStamp></Response>