#!/usr/local/bin/perl
use
Net::DSML;
use
Net::DSML::Filter;
use
Net::DSML::Control;
#
# This example does what is known as a dsml ping.
# If there is a DSML server on line you should get a ping batch response.
#
#
# We are going to do a DSML Ping
#
$webdsml
= Net::DSML->new( {
url
=>
$server
} );
"Doing ping request.\n"
;
if
(!(
$webdsml
->Ping()))
{
"Ping request error.\n"
;
$webdsml
->error(),
"\n"
;
exit
;
}
if
(!(
$webdsml
->
send
()))
{
"Ping send error.\n"
;
$webdsml
->error(),
"\n"
;
exit
;
}
# get the return xml content, should be the status of the dsml request.
$postData
=
$webdsml
->content();
$postData
,
"\n"
;
# print the xml data.