l-robinson / netusageextension

Automatically exported from code.google.com/p/netusageextension
0 stars 0 forks source link

Dodo ADSL Broken (Easy fix included) #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use netusageitem to check usage on dodo adsl

What is the expected output? What do you see instead?
Expect to see usage in the meter.
Instead receive "A Parsing Error has occurred (S1)"

What version of the product are you using? On what operating system?
version 1.3.324 on windows XP with google chrome v13.0.782.220 m

Please provide any additional information below.
Some changes appear to have been made by dodo to their xml.
I have resolved the issue myself, but thought you may want feedback in order to 
update the extension.

To resolve the issue, the following changes are necessary in isps_au.js (Very 
simple changes)
Find:
        vars: {
            NamespaceResolver: function (prefix) {
                return 'http://secure.dodo.com.au/externalservices';
            }

Replace with:
        vars: {
            NamespaceResolver: function (prefix) {
                return 'http://secure.dodo.com.au/dodo.externalwebservices';
            }

Find:
        process: [
            'POST https://secure.dodo.com.au/externalwebservices/MembersPageUsage.asmx/ProvideUsage un={USERNAME}&pw={PASSWORD}',

Replace With:
        process: [
            'POST https://secure.dodo.com.au/externalwebservices/MembersPageUsage.asmx/ProvideUsage username={USERNAME}&password={PASSWORD}',

Cheers mate,
Vito

Original issue reported on code.google.com by lil.vit...@gmail.com on 8 Sep 2011 at 11:32