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);
}
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;