AgileFileAttachmentRequestType cannot be resolved to a type

I am trying to create a program in Java to fetch attachments from Agile but I’m encountering the problem “AgileFileAttachmentRequestType cannot be resolved to a type”. I imported AgileAPI.jar and pxapi.jar but they don’t seem to include this. I got this code straight from the website, any help is appreciated. Thanks!


public class FetchFromAgile {




    AgileFileAttachmentRequestType attachments[] = new AgileFileAttachmentRequestType[1];

    attachments[0] = new AgileFileAttachmentRequestType();






No Files Were Attached
jac0518 Agile User Asked on July 27, 2018 in Product Collaboration.
Add Comment
2 Answer(s)


  This is available with the Agile Web services and not part of SDK. So, you won’t find in the jar

  You need to generate the client stubs using the WSDL to get it. Once you do it, you will see it in this package;

rchinnia Agile Professional Answered on October 5, 2018.
Add Comment

sample code to download attachments.. not adding any try.catch block

ITable attachmentTable = (ITable) item.getTable(ItemConstants.TABLE_ATTACHMENTS);
Iterator<?> i = attachmentTable.iterator();
byte[] buffer = new byte[BUFFER_SIZE];
InputStream iStream = null;
FileOutputStream fos = null;    
while( i.hasNext()) {
    IAttachmentRow row = (IAttachmentRow);
    String fileName = row.getCell(ItemConstants.ATT_ATTACHMENTS_FILE_NAME).toString();
    if( shouldDownload(fileName)) {
        String downloadFileName = getAbsLocationToDownload(fileName);
        iStream = row.getFile();
        if( iStream != null) {
            fos = new FileOutputStream(downloadFileName);
            int len =;
            while( len != -1) {
                en =;
            fos = null;
            // have a map to keep track of file name => downloaded location
            iStream = null;

sspak9 Agile Talent Answered on March 27, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.