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 {

    agileGetFileAttachmentRequest[0].setClassIdentifier(“Part”);

    agileGetFileAttachmentRequest[0].setObjectNumber(partNumber);

    agileGetFileAttachmentRequest[0].setAllFiles(false);

    AgileFileAttachmentRequestType attachments[] = new AgileFileAttachmentRequestType[1];

    attachments[0] = new AgileFileAttachmentRequestType();

    attachments[0].setRowId(rowId);

    agileGetFileAttachmentRequest[0].setAttachments(attachments);

    GetFileAttachmentRequestType.setRequests(agileGetFileAttachmentRequest);

}

 

Add Comment
2 Answer(s)

Hello

  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

com.agile.ws.schema.attachment.v1.jaxws.AgileFileAttachmentRequestType;

Agile Angel Answered on October 5, 2018.
Add Comment
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.