Book Image

ADempiere 3.6 Cookbook

Book Image

ADempiere 3.6 Cookbook

Overview of this book

Table of Contents (16 chapters)
ADempiere 3.6 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Equifax address matching service


Address matching is a very important aspect in finding the right individual for whom the credit report needs to be fetched. Equifax provides the current as well as previous addresses of the individual. This can be used to take decisions in the business logic code. This recipe describes the code required to integrate this service.

How to do it...

  1. 1. Create an XML for the address matching service.

    String xml = "<?xml version=\"1.0\" standalone=\"yes\"?>"
    + "<request>"
    + "<request_header session_token=\"e47acafa-cef8-11df-a869-0a884fe6aa77-73\" interface_version_no= \"1.0\" dtd_version_no=\"1.0\">"
    + "<client_reference>XXXX</client_reference>"
    + "</request_header>"
    + "<service_request id=\"1\">"
    + "<address_matching_service>"
    + "<address_match_request>"
    + "<input_address max_matches=\"3\" forename=\"\" middlename=\"\" surname=\"\">"
    + "<fixed_format_address house_name=\"\" house_number=\"00077\" street_1...