http://hostname:8080/CAisd/UploadServlet?AttmntId=" + attmntId + "&Bpsid=" + bopsid + "&retURL=http://hostname/CAisd/pdmweb.exe?SID=" + sid + "+FID=" + new Random().nextInt()
attmntId you can get by using
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
<soapenv:Header/>
<soapenv:Body>
<ser:getLrelLength>
<sid>1306509759</sid>
<contextObject>cr:401304</contextObject>
<lrelName>attachments</lrelName>
</ser:getLrelLength>
</soapenv:Body>
</soapenv:Envelope>
from this call you should get count of the attachments that are attached to particular incident.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
<soapenv:Header/>
<soapenv:Body>
<ser:getLrelValues>
<sid>1306509759</sid>
<contextObject>cr:401304</contextObject>
<lrelName>attachments</lrelName>
<startIndex>0</startIndex>
<endIndex>1</endIndex>
<attributes>
<string>id</string>
<string>status</string>
<string>orig_file_name</string>
<string>file_name</string>
<string>description</string>
<string>attmnt_name</string>
<string>created_dt</string>
<string>created_by.combo_name</string>
</attributes>
</ser:getLrelValues>
</soapenv:Body>
</soapenv:Envelope>
from this call you will get attachment id an other information about attachments