I had the old code which I changed to the new one and everything is working on weasis 3.0.4 by launching 127.0.0.1/cgi-bin/newweb/dgate.exe?mode=weasis_starter&accession=1501300780
if level=='accession' then
stq.AccessionNumber = uid
stq.StudyInstanceUID = ''
str = remotequery(source, 'STUDY', stq)
seq.StudyInstanceUID = str.StudyInstanceUID
stq.StudyInstanceUID = str.StudyInstanceUID
stq.AccessionNumber = ''
Thankyou for all your kind support, it is so wonderful to know a developer with such a helpful response and a great product indeed.