7 Replies Latest reply: Jan 30, 2013 8:58 AM by Vivek NameToUpdate RSS

Passing more than one attachment through web service

Vivek NameToUpdate

Hi,

 

We are using OOB web services to create an incident in remedy version 7.6.04.

I am testing it with the help of SOAP UI tool and as per the current field mappings I could only transfer one attachment at a time with an incident.

However our customer wants to attach 3 attachments to a single incident while creating a new incident.

How could I add 2 more attachment fields in the OOB web service for creating an incident.

Also I thought of creating a create operation similar to the existing one in OOB WS for creating incident , if I add 2 more attchmenets fields in the existing attachment field on incident_create form, and I am creating a new create operation , I am getting these new attachments fields but then   I have to delete the OOB create operation provided by WS.Is it the correct approach or please let me know If I could do it in a better way.

 

Thanks in advance!

Vivek

  • 1. Re: Passing more than one attachment through web service
    Tommy Dhondt

    Hi Vivek,

     

    What do you mean with OOB? Are you using Remedy ARS (core system) or a Remedy application on top of that?

     

    Did you try adding two more attachments to the existing attachment pool (with already 1 attachment), and then try to update the existing web service create operation or add a new create operation?

    If yes, what kind of problems/error messages are you seeing?

     

    Best regards,

    Tommy

  • 2. Re: Passing more than one attachment through web service
    Rajani NameToUpdate

    Hi Vivek,

     

     

    OOB Attachement pool contains only 1 Attachment field on HPD:IncidentInterface_Create form. You may add 2 more attachment fields in current attachment pool.And auto map the fields in HPD_IncidentInterface_Create_WS web service.

     

    Regards,

    Rajani

  • 3. Re: Passing more than one attachment through web service
    Vivek NameToUpdate

    Hi Tommy and Rajani,

     

    I am now able to create and send 3 attachments fileds for create web service with the help of steps you mentioned.

    Now I am stuck at doing the same for update web service.When I am running the code from SOAP UI toll for modify operation , I can only see one attachment instead of 3.

     

    With create operation, When I submitted the ticket from SOAP Tool,I cann see 3 atachments in 3 different fields on HPD :Help Desk form in work info fields.

     

    I am assuming that the issue must be with the base form, in create web service the base form HPD:IncidentInterface_Create which is a regular form but for modify web service the base form is HPD:IncidentInterface form which is a join form.

     

    DO I need to do anything extra for this ?

     

    I have performed the following steps:

    1. Added 2 more attachment fields (there were 2 before) on HPD:incidentInterface form.

    2. Mapped 6 fields in out of Box (OOB) web service for update operation in modify. (all fields for 2 attachments fields ie name ,dataand origsize).

    3. Testing it through SOAP Tool.

     

    Result : Only one attachment is going through and not the other ones.

     

    Please reply asap as this is a very critical requirement for us now.

  • 4. Re: Passing more than one attachment through web service
    Jon Chau

    Hi Vivek,

     

    Can you show me how you are creating the attachment with Soap UI?  I'm having trouble trying to do it as I can't get them to attach.

     

    Thanks,

    Jon

  • 5. Re: Passing more than one attachment through web service
    Vivek NameToUpdate

    AddingAttachment.png

    Hi Jon,

     

    With the help of steps in the attached screenshot I was able to send attachments using SOAP UI.

    Just remember that you have specify all 3 values for the attachment field ie attachmentName,AttachmentData and AttachmentOrigSize. Either you can use the option of adding attachments manually or you can convert your attachment data in binay64 and send it through SOAP.

    In the incident it will automatically convert the data and you would be able to view the attachments in the work info summary.

     

    Do let me know if you need more suggestion.

     

    Regards,

    Vivek

  • 6. Re: Passing more than one attachment through web service
    Ashwanth Padmanaban

    you might need to map your additional 2 attachment field in this filter also after creating an overlay for this filter??

     

    HPD:HIJ:ModifyIncident_210_CreateWorklog_attach

     

    just try...

  • 7. Re: Passing more than one attachment through web service
    Vivek NameToUpdate

    Hi Ashwanth,

     

    I am able to send 3 attachments now for both create and update. Yes that was the last step I was supposed to do.

     

    Thanks everyone for your help.

     

    Regards,

    Vivek