If you have Tcl installed, and a package Tcl Soap too, you can try this at home...
#!/usr/bin/tclsh
package require SOAP
proc Usage {} {
puts "getname Riktnummer Telenummer"
}
if {$argc != 2} {
Usage
exit
}
SOAP::create XMLSearchPhone -uri "urn:SearchSwedishPersonIntf-ISearchSwedishPerson" \
-proxy "http://www.marotz.se/scripts/SearchPerson.exe/soap/ISearchSwedishPerson" \
-params { "area" "string" "number" "string"}
set The_Area [lindex $argv 0]
set The_Number [lindex $argv 1]
puts "Output: [XMLSearchPhone $The_Area $The_Number]"
Cut and paste the above into a text file and name it 'getname.tcl' or download it
here.
Don't forget to make it executable (on Linux that is) chmod +x getname.tcl
It was written and tested on Linux, but since Tcl runs on most platforms, it
should run were Tcl runs.
If you provide the script with a valid Swedish area code, and a valid number, You should get the data from the Swedish telephone catalog served as an xml document. If the number isn't valid it looks like this:
[bnl@della tcl_tk]$ getname.tcl 12 34567 Output:Sökningen misslyckades
The answer states that the search failed (in Swedish), because nobody has the number '12 34567'.
Eventhough it might not show in your browser,
the output is in XML. If you don't see it, try 'view source' in your browser.