Hi,
sorry for my late answer, but is was busy.
here is an example (maybe an ugly one) as a bash script, which I Use to make Infolog entries via xmlrpc:
Jürgen
#============ Logon, Session holen =======================
XMLREQUEST="<?xml version=\"1.0\"?>
system.login
domain
$DOMAIN
username
$USERNAME
password
$PASSWORD
"
echo “request LogOn: $XMLREQUEST”
CONTENTLENGTH=echo $XMLREQUEST | wc -c
CONTENTLENGTH=expr $CONTENTLENGTH - 1
CONTENTLENGTH=echo $CONTENTLENGTH | sed "s/ //g"
CURLREQUEST=$(curl -v --user $HT_USER:$HT_PASSWORD -b “$COOKIE_NAME” -k -d “$XMLREQUEST” -H ‘Content-Type: text/xml’ -H “Content-length: $CONTENTLENGTH” -H ‘User-Agent: egw xmlrpc’ $EGW_SERVER$EGW_URI)
echo “response Anmeldung: $CURLREQUEST”
SESSIONID="$(echo $CURLREQUEST | cut -f11 -d’ ’ | cut -f3 -d’>’ | cut -f1 -d’<’ )“
KP3=”$(echo $CURLREQUEST | cut -f14 -d’ ’ | cut -f3 -d’>’ | cut -f1 -d’<’ )"
echo " session -> $SESSIONID \n"
echo " KP3 -> $KP3 \n"
echo " -> $CURLREQUEST"
#============= make InfoLog Entry ==========================
XMLREQUEST="<?xml version=\"1.0\"?>
infolog.boinfolog.write
id
0
cat
$CAT_NAME
$CAT_STRING
info_subject
$INFO_SUBJECT
info_des
$TEXT
info_link_id
$INFO_LINK_ID
info_type
phone
info_status
not-started
info_startdate
$INFO_STARTDATE
"
echo "will do InfologWrite "
echo “$XMLREQUEST”
CONTENTLENGTH=echo $XMLREQUEST | wc -c
CONTENTLENGTH=expr $CONTENTLENGTH - 1
CONTENTLENGTH=echo $CONTENTLENGTH | sed "s/ //g"
CURLREQUEST=$(curl -v --user $HT_USER:$HT_PASSWORD -c $COOKIE_NAME -k -d “$XMLREQUEST” -H ‘Content-Type: text/xml’ -H “Content-length: $CONTENTLENGTH” -H ‘User-Agent: BashLauncher 0.1’ $EGW_SERVER$EGW_URI)
echo " CurlRequest Eintrag: $CURLREQUEST"
gets the info_id back of the new entry for further use in the script
INFO_ID="$(echo $CURLREQUEST | cut -f6 -d’ ’ | cut -f3 -d’>’ | cut -f1 -d’<’ )"
#echo “info ID $INFO_ID”
#==================== session LogOff ========================
XMLREQUEST="<?xml version=\"1.0\"?>
system.logout
sessionid
$SESSIONID
kp3
$KP3
"
CONTENTLENGTH=echo $XMLREQUEST | wc -c
CONTENTLENGTH=expr $CONTENTLENGTH - 1
CONTENTLENGTH=echo $CONTENTLENGTH | sed "s/ //g"
CURLREQUEST=$(curl -v --user $HT_USER:$HT_PASSWORD -c $COOKIE_NAME -k -d “$XMLREQUEST” -H ‘Content-Type: text/xml’ -H “Content-length: $CONTENTLENGTH” -H ‘User-Agent: BashLauncher 0.1’ $EGW_SERVER$EGW_URI)
echo " logoff:"
echo “$CURLREQUEST”
rm $COOKIE_NAME