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

}

 

No Files Were Attached
jac0518 Agile User Asked on July 27, 2018 in Product Collaboration.
Add Comment
1 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;

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

Your Answer

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