Sample XML document for ProvisioningAgent.provisionFromXmlDocumentAsync()

Below is an example of a provisioning XML document that may be passed to the ProvisioningAgent.provisionFromXmlDocumentAsync method. The following fields need to be customized at the least - Issuer and Subscriber. The value for the Subscriber node must be set to the subscriber ID for a mobile-broadband interface (can be retrieved by running 'netsh mbn show ready interface=*' at a command prompt).

 

 <?xml version="1.0"?>
<CarrierProvisioning xmlns="https://www.microsoft.com/networking/CarrierControl/v1">
    <Issuer>{11111111-1111-1111-1111-111111111111}</Issuer>
    <Subscriber>1234567890</Subscriber>
    <Provisioning>
        <RefreshParameters>
            <DelayInDays>30</DelayInDays>
            <RefreshURL>https://www.contoso.com/provisionme.aspx?subscriber=1234567890</RefreshURL>
            <Username>012345678901234</Username>
            <Password>SomePassword</Password>
        </RefreshParameters>
    </Provisioning> 
    <MBNProfiles>
        <DefaultProfile xmlns="https://www.microsoft.com/networking/CarrierControl/WWAN/v1">
            <Name>Contoso</Name>
            <Description>Contoso</Description>
            <Cost xmlns="https://www.microsoft.com/networking/CarrierControl/DUSM/v1" PlanType="Fixed" OverDataLimit="true" Congested="true">
                <UsageInMegabytes Timestamp="2002-05-30T09:30:10+06:00">25</UsageInMegabytes>
                <DataLimitInMegabytes>10</DataLimitInMegabytes>
                <BillingCycle StartDate="2011-09-30T09:30:10+06:00" Duration="P1Y4M20DT2H34M78S" Resets="false"></BillingCycle>
                <BandwidthInKbps>5</BandwidthInKbps>
                <MaxDownloadFileSizeInMegabytes>25</MaxDownloadFileSizeInMegabytes>
                <CarrierPolicy>
                    <SecurityUpdatesExempt>true</SecurityUpdatesExempt>
                </CarrierPolicy>
            </Cost>
            <HomeProviderName>Contoso</HomeProviderName>
            <AutoConnectOnInternet>true</AutoConnectOnInternet>
            <Context>
                <AccessString>Contoso.Contoso</AccessString>
                <UserLogonCred>
                    <UserName>user</UserName>
                    <Password>password</Password>
                </UserLogonCred>
            </Context>
        </DefaultProfile>
    </MBNProfiles>
    <WLANProfiles>
        <WLANProfile xmlns="https://www.microsoft.com/networking/CarrierControl/WLAN/v1">
            <name>Contoso Wi-Fi</name>
            <SSIDConfig>
                <SSID>
                    <name>contosowifi</name>
                </SSID>
            </SSIDConfig>
            <MSM>
                <security>
                    <authEncryption>
                        <authentication>open</authentication>
                        <encryption>none</encryption>
                        <useOneX>false</useOneX>
                    </authEncryption>
                    <HotspotProfile xmlns="https://www.microsoft.com/networking/WLAN/HotspotProfile/v1">
                        <TrustedDomains>
                            <TrustedDomain>.contoso.net</TrustedDomain>
                        </TrustedDomains>
                        <UserName>user@contoso.net</UserName>
                        <Password>somepassword</Password>
                    </HotspotProfile>
                </security>
            </MSM>
        </WLANProfile>
    </WLANProfiles>
</CarrierProvisioning>

Comments

  • Anonymous
    June 02, 2012
    Cost is not a part of Default Profile, so above xml will not work, do you know how we can use COST element.