Apn Normalizer

The Apn normalizer binding creates a normalizer to map access point names into defined values for pricing.

POST /objects/Normalizer/Apn shows how to create a new Apn Normalizer.
Table 1. POST /objects/Normalizer/Apn
URL
POST http://localhost:8080/matrixx/data/objects/Normalizer/Apn
Input
 <?xml version="1.0" encoding="UTF-8"?>
<ApnNormalizer name="APN Check">
    <EffectiveDate>2012-10-22T00:00:00</EffectiveDate>
    <ValueList default='1'>
        <value color="#ffff00" description="GPRS" id="0" index="0" name="GPRS"/>
        <value color="#ffff00" description="Blackberry" id="1" index="1" name="Blackberry"/>
        <value color="#ffff00" description="Tom Tom" id="2" index="2" name="Tom Tom"/>
    </ValueList>
    <ResultList>
        <result index="0" value="gprs.telecom.us" exact="true"/>
        <result index="1" value="blackberry.net" exact="true"/>
        <result index="2" value="tomtom.com" exact="true"/>
    </ResultList>
</ApnNormalizer>
Response
<CreateResponse>
    <type>Normalizer</type>
    <DomainId>1</DomainId>
    <Result>0</Result>
    <ResultText>Success</ResultText>
    <ObjectId>1067</ObjectId>
    <Revision>0</Revision>
</CreateResponse> 
GET /objects/Normalizer/Apn/{id} shows how to retrieve an Apn normalizer from the in-memory pricing database.
Table 2. GET /objects/Normalizer/Apn/{id}
URL
GET http://localhost:8080/matrixx/data/objects/Normalizer/Apn/1067
Response
<?xml version="1.0" encoding="UTF-8"?>
<ApnNormalizer name="APN Check">
    <EffectiveDate>2012-10-22T00:00:00</EffectiveDate>
    <ValueList default="0">
        <value color="#ffff00" description="GPRS" id="0" index="0" name="GPRS"/>
        <value color="#ffff00" description="Blackberry" id="1" index="1" name="Blackberry"/>
        <value color="#ffff00" description="Tom Tom" id="2" index="2" name="Tom Tom"/>
    </ValueList>
    <ResultList>
        <result exact="true" index="0" value="gprs.telecom.us"/>
        <result exact="true" index="1" value="blackberry.net"/>
        <result exact="true" index="2" value="tomtom.com"/>
    </ResultList>
</ApnNormalizer> 
PUT /objects/Normalizer/Apn/{id} shows how to update an existing Apn normalizer.
Table 3. PUT /objects/Normalizer/Apn/{id}
URL
PUT http://localhost:8080/matrixx/data/objects/Normalizer/Apn/1067
Input
<?xml version="1.0" encoding="UTF-8"?>
<ApnNormalizer name="APN Check">
    <EffectiveDate>2012-10-22T00:00:00</EffectiveDate>
    <ResultList>
        <result index="0" value="gprs.telecom.us"/>
        <result index="1" value="blackberry.net"/>
        <result index="1" value="playbook.blackberry.net"/>
        <result index="2" value="tomtom.com"/>
    </ResultList>
</ApnNormalizer>
 
Response
<UpdateResponse>
    <type>Normalizer</type>
    <Result>0</Result>
    <ResultText>Success</ResultText>
    <ObjectId>1067</ObjectId>
    <Revision>1</Revision>
</UpdateResponse>