CA Service Management

 View Only
  • 1.  Downloading attachment using CA Upload servlet using following link

    Posted Nov 27, 2014 12:29 PM


    As there is no feasibilty to download an attachment using CA web service, trying to download the same using CA Upload Servlet as per suggestions provided in the community.

    http://HostName:8080/CAisd/UploadServlet?AttmntId=attchId&Bpsid=' + getNewBopsidValue() + '&retURL=http://HostName/CAisd/pdmweb.exe?SID=' + cfgSID + '+FID=' + fid_generator() + '+OP=DISPLAY_FORM+HTMPL=attmnt_download_done.htmpl&ServerName=HostName&encrtd=1'

     

    I have below queries to full fill all the parameters.

     

    - To get BopsID using getBopsid() web service call, do we need to pass an userid and it should have any specific permissions ?

    - How to get pass FID value using fid_generator()? I am unable to get the web service method fid_generator().

    - How to get attchId details?

     

    Kindly provide your inputs on above mentioned queries.



  • 2.  Re: Downloading attachment using CA Upload servlet using following link

    Posted Nov 27, 2014 02:20 PM

    Hello g.anitha.g

     

    Please log a support issue with CA and request the tesfix to allow you download attachments via the RESTful webservice.

    The testfix was T52Y306 for CA SDM 12.7




  • 3.  Re: Downloading attachment using CA Upload servlet using following link

    Posted Nov 27, 2014 02:28 PM

      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

     

     



  • 4.  RE: Re: Downloading attachment using CA Upload servlet using following link

    Posted Jun 02, 2020 11:37 AM
    Thanks Giedrius
    But I have a error using getLrelLength method to get the attachment ID
    Anyone knows why?

    here is the error
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <soapenv:Fault>
    <faultcode>soapenv:Client</faultcode>
    <faultstring>Internal err with api::get_named_list: NOT FOUND</faultstring>
    <faultactor/>
    <detail>
    <ErrorMessage>Internal err with api::get_named_list: NOT FOUND</ErrorMessage>
    <ErrorCode>102</ErrorCode>
    </detail>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>



    Thanks