IP Mapping Normalizer

The IP mapping normalizer maps IP addresses into MCC codes.

POST /objects/Normalizer/IpMapping shows how to create a new IP mapping normalizer.
Table 1. POST /objects/Normalizer/IpMapping
URL
POST http://localhost:8080/matrixx/data/objects/Normalizer/IpMapping
Input
<?xml version="1.0" encoding="UTF-8"?>
<IpMappingNormalizer name="IP to MCC/MNC">
    <EffectiveDate>2012-10-22T00:00:00</EffectiveDate>
    <ValueList default="5">
        <value color="#ff00ff" description="0" id="0" index="0" name="Not Present"/>
        <value color="#996600" description="10" id="1" index="1" name="MCC 10"/>
        <value color="#99ff00" description="20" id="2" index="2" name="MCC 20"/>
        <value color="#3399ff" description="30" id="3" index="3" name="MCC 30"/>
        <value color="#ff6666" description="40" id="4" index="4" name="MCC 40"/>
        <value color="#ff0000" description="6" id="5" index="5" name="Unknown"/>
    </ValueList>
    </ValueList>
    <ResultList>
        <result index="0" value="0.0.0.0"/>
        <result index="1" value="1.0.0.0/13"/>
        <result index="1" value="1.8.0.0/13"/>
...
...
...
        <result index="1" value="157.40.0.0/13"/>
        <result index="1" value="157.48.0.0/13"/>
        <result index="1" value="157.56.0.0/13"/>
    </ResultList>
</IpMappingNormalizer> 
Response
<CreateResponse>
    <type>Normalizer</type>
    <DomainId>1</DomainId>
    <Result>0</Result>
    <ResultText>Success</ResultText>
    <ObjectId>1089</ObjectId>
    <Revision>0</Revision>
</CreateResponse> 
GET /objects/Normalizer/IpMapping/{id} shows how to retrieve an IpMapping normalizer from the in-memory pricing database.
Table 2. GET /objects/Normalizer/IpMapping/{id}
URL
GET	http://localhost:8080/matrixx/data/objects/Normalizer/IpMapping/1089
Response
<?xml version="1.0" encoding="UTF-8"?>
<IpMappingNormalizer name="IP to MCC/MNC">
    <EffectiveDate>2012-10-22T00:00:00</EffectiveDate>
    <ValueList default="5">
        <value color="#ff00ff" description="0" id="0" index="0" name="Not Present"/>
        <value color="#996600" description="10" id="1" index="1" name="MCC 10"/>
        <value color="#99ff00" description="20" id="2" index="2" name="MCC 20"/>
        <value color="#3399ff" description="30" id="3" index="3" name="MCC 30"/>
        <value color="#ff6666" description="40" id="4" index="4" name="MCC 40"/>
        <value color="#ff0000" description="6" id="5" index="5" name="Unknown"/>
    </ValueList>
    <ResultList>
        <result index="0" value="0.0.0.0"/>
        <result index="1" value="1.0.0.0/13"/>
        <result index="1" value="1.8.0.0/13"/>
...
...
...
        <result index="1" value="157.40.0.0/13"/>
        <result index="1" value="157.48.0.0/13"/>
        <result index="1" value="157.56.0.0/13"/>
    </ResultList>
</IpMappingNormalizer> 
PUT /objects/Normalizer/IpMapping/{id} shows how to update an existing IpMapping normalizer.
Table 3. PUT /objects/Normalizer/IpMapping/{id}
URL
PUT http://localhost:8080/matrixx/data/objects/Normalizer/IpMapping/1089
Input
<?xml version="1.0" encoding="UTF-8"?>
<IpMappingNormalizer name="IP to MCC/MNC">
    <EffectiveDate>2012-10-22T00:00:00</EffectiveDate>
    <ResultList>
        <result index="0" value="0.0.0.0"/>
        <result index="1" value="1.0.0.0/13"/>
        <result index="1" value="1.8.0.0/13"/>
...
...
...
        <result index="3" value="157.40.0.0/13"/>
        <result index="3" value="157.48.0.0/13"/>
        <result index="3" value="157.56.0.0/13"/>
    </ResultList>
</IpMappingNormalizer> 
Response
<UpdateResponse>
    <type>Normalizer</type>
    <Result>0</Result>
    <ResultText>Success</ResultText>
    <ObjectId>1089</ObjectId>
    <Revision>1</Revision>
</UpdateResponse>