AnsweredAssumed Answered

VSE: Attachment Details are not captured in response

Question asked by yadmu02 Employee on May 13, 2015

We are trying to virtualize a service desk during integration work with our product (NIM). We make SOAP calls to the Service Desk to create/update/add attachment-comment/Get Incident...etc.

We have used Recording option to virtualize these calls.

During recording when we noticed that for 'getting attachment details' call 'Response' captures attachment info properly (On 'View Transaction' window opened for the particular transaction from 'Virtual Service Image Recorder' window)

Note: Please note that we are making 2 calls to the service desk to get the response.

But after recording is done when we open the particular web service call (from VSI) we are not seeing attachments info. Only 'attachments' tag is seen in the response. But the details of attachment like name, size..etc attributes are missing.

 

Web Service SOAP Call:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><ns2:RetrieveIncident xmlns:ns2="http://schemas.hp.com/SM/7" attachmentData="true" attachmentInfo="true"><ns2:model><keys><ns2:IncidentID>IM10527</ns2:IncidentID></keys><ns2:instance><ns2:IncidentID>IM10527</ns2:IncidentID></ns2:instance></ns2:model></ns2:RetrieveIncident></SOAP-ENV:Body></SOAP-ENV:Envelope>

 

Response content from body:

------=_Part_450_23747305.1431516266739

Content-Type: text/xml; charset=utf-8

 

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><RetrieveIncidentResponse message="Success" returnCode="0" schemaRevisionDate="2014-10-21" schemaRevisionLevel="8" status="SUCCESS" xmlns="http://schemas.hp.com/SM/7" xmlns:cmn="http://schemas.hp.com/SM/7/Common" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.hp.com/SM/7 http://yadmu02-test02-hpsm:13080/SM/7/Incident.xsd"><model><keys><IncidentID type="String">IM10527</IncidentID></keys><instance recordid="IM10527 - somelabel" uniquequery="number=&quot;IM10527&quot;"><IncidentID type="String">IM10527</IncidentID><Category type="String">incident</Category><OpenTime type="DateTime">2015-05-13T11:23:58+00:00</OpenTime><OpenedBy type="String">falcon</OpenedBy><Urgency type="String">2</Urgency><UpdatedTime type="DateTime">2015-05-13T11:24:18+00:00</UpdatedTime><AssignmentGroup type="String">Application</AssignmentGroup><ClosureCode type="String">Solved by User Instruction</ClosureCode><Description type="Array"><Description type="String">desc-incident</Description></Description><Solution type="Array"><Solution type="String">Unknown Error</Solution></Solution><JournalUpdates type="Array"><JournalUpdates type="String">13/05/2015 11:24:17 GMT (falcon):</JournalUpdates><JournalUpdates type="String">Incident Updated From NIM</JournalUpdates><JournalUpdates type="String">13/05/2015 11:24:09 GMT (falcon):</JournalUpdates><JournalUpdates type="String">Attachment is Created with Name : textxml.xml</JournalUpdates></JournalUpdates><Title type="String">somelabel</Title><TicketOwner type="String">falcon</TicketOwner><UpdatedBy type="String">falcon</UpdatedBy><Status type="String">Open</Status><Area type="String">failure</Area><Subarea type="String">job failed</Subarea><ProblemType type="String">incident</ProblemType><UserPriority type="String">High</UserPriority><Location type="String">a7Yf000000001BjEAI</Location><Impact type="String">1</Impact><Service type="String">MyDevices</Service><attachments><cmn:attachment href="cid:55533459002a53512089db50" len="2788" name="textxml.xml" type="text/xml" xmime:contentType="text/xml"/></attachments></instance></model></RetrieveIncidentResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

------=_Part_450_23747305.1431516266739

Content-Type: text/xml

Content-Location: textxml.xml

Content-ID: cid:55533459002a53512089db50

 

<?xml version="1.0" encoding="UTF-8"?>

<comments>

  <comment>

    <commentId>19711dcfd8570544e253ef2ec3bb9732</commentId>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T11:46:21+05:30</creationTimeStamp>

  </comment>

  <comment>

    <commentId>42815503d8970544e253ef2ec3bb977a</commentId>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T11:46:40+05:30</creationTimeStamp>

  </comment>

  <comment>

    <commentId>46f7d587d81b0544e253ef2ec3bb97df</commentId>

    <commentText>test1 comment</commentText>

    <commentType>comments</commentType>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T00:14:48+05:30</creationTimeStamp>

  </comment>

  <comment>

    <commentId>c348990bd81b0544e253ef2ec3bb977b</commentId>

    <commentText>adding notes</commentText>

    <commentType>work_notes</commentType>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T00:16:14+05:30</creationTimeStamp>

  </comment>

  <comment>

    <commentId>d5d0510fd8570544e253ef2ec3bb978e</commentId>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T11:43:38+05:30</creationTimeStamp>

  </comment>

  <comment>

    <commentId>f6b815cbd81b0544e253ef2ec3bb975b</commentId>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T00:18:08+05:30</creationTimeStamp>

  </comment>

</comments>

 

 

<?xml version="1.0" encoding="UTF-8"?>

<comments>

  <comment>

    <commentId>19711dcfd8570544e253ef2ec3bb9732</commentId>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T11:46:21+05:30</creationTimeStamp>

  </comment>

  <comment>

    <commentId>42815503d8970544e253ef2ec3bb977a</commentId>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T11:46:40+05:30</creationTimeStamp>

  </comment>

  <comment>

    <commentId>46f7d587d81b0544e253ef2ec3bb97df</commentId>

    <commentText>test1 comment</commentText>

    <commentType>comments</commentType>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T00:14:48+05:30</creationTimeStamp>

  </comment>

  <comment>

    <commentId>c348990bd81b0544e253ef2ec3bb977b</commentId>

    <commentText>adding notes</commentText>

    <commentType>work_notes</commentType>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T00:16:14+05:30</creationTimeStamp>

  </comment>

  <comment>

    <commentId>d5d0510fd8570544e253ef2ec3bb978e</commentId>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T11:43:38+05:30</creationTimeStamp>

  </comment>

  <comment>

    <commentId>f6b815cbd81b0544e253ef2ec3bb975b</commentId>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T00:18:08+05:30</creationTimeStamp>

  </comment>

</comments>

 

------=_Part_450_23747305.1431516266739--


2nd Web Service Call:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><ns2:RetrieveIncident xmlns:ns2="http://schemas.hp.com/SM/7" attachmentData="true" attachmentInfo="true"><ns2:model><keys><ns2:IncidentID>IM10527</ns2:IncidentID></keys><ns2:instance><ns2:IncidentID>IM10527</ns2:IncidentID></ns2:instance></ns2:model></ns2:RetrieveIncident></SOAP-ENV:Body></SOAP-ENV:Envelope>


Response content from body:

------=_Part_451_24544789.1431516267286

Content-Type: text/xml; charset=utf-8

 

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><RetrieveIncidentResponse message="Success" returnCode="0" schemaRevisionDate="2014-10-21" schemaRevisionLevel="8" status="SUCCESS" xmlns="http://schemas.hp.com/SM/7" xmlns:cmn="http://schemas.hp.com/SM/7/Common" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.hp.com/SM/7 http://yadmu02-test02-hpsm:13080/SM/7/Incident.xsd"><model><keys><IncidentID type="String">IM10527</IncidentID></keys><instance recordid="IM10527 - somelabel" uniquequery="number=&quot;IM10527&quot;"><IncidentID type="String">IM10527</IncidentID><Category type="String">incident</Category><OpenTime type="DateTime">2015-05-13T11:23:58+00:00</OpenTime><OpenedBy type="String">falcon</OpenedBy><Urgency type="String">2</Urgency><UpdatedTime type="DateTime">2015-05-13T11:24:18+00:00</UpdatedTime><AssignmentGroup type="String">Application</AssignmentGroup><ClosureCode type="String">Solved by User Instruction</ClosureCode><Description type="Array"><Description type="String">desc-incident</Description></Description><Solution type="Array"><Solution type="String">Unknown Error</Solution></Solution><JournalUpdates type="Array"><JournalUpdates type="String">13/05/2015 11:24:17 GMT (falcon):</JournalUpdates><JournalUpdates type="String">Incident Updated From NIM</JournalUpdates><JournalUpdates type="String">13/05/2015 11:24:09 GMT (falcon):</JournalUpdates><JournalUpdates type="String">Attachment is Created with Name : textxml.xml</JournalUpdates></JournalUpdates><Title type="String">somelabel</Title><TicketOwner type="String">falcon</TicketOwner><UpdatedBy type="String">falcon</UpdatedBy><Status type="String">Open</Status><Area type="String">failure</Area><Subarea type="String">job failed</Subarea><ProblemType type="String">incident</ProblemType><UserPriority type="String">High</UserPriority><Location type="String">a7Yf000000001BjEAI</Location><Impact type="String">1</Impact><Service type="String">MyDevices</Service><attachments><cmn:attachment href="cid:55533459002a53512089db50" len="2788" name="textxml.xml" type="text/xml" xmime:contentType="text/xml"/></attachments></instance></model></RetrieveIncidentResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

------=_Part_451_24544789.1431516267286

Content-Type: text/xml

Content-Location: textxml.xml

Content-ID: cid:55533459002a53512089db50

 

<?xml version="1.0" encoding="UTF-8"?>

<comments>

  <comment>

    <commentId>19711dcfd8570544e253ef2ec3bb9732</commentId>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T11:46:21+05:30</creationTimeStamp>

  </comment>

  <comment>

    <commentId>42815503d8970544e253ef2ec3bb977a</commentId>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T11:46:40+05:30</creationTimeStamp>

  </comment>

  <comment>

    <commentId>46f7d587d81b0544e253ef2ec3bb97df</commentId>

    <commentText>test1 comment</commentText>

    <commentType>comments</commentType>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T00:14:48+05:30</creationTimeStamp>

  </comment>

  <comment>

    <commentId>c348990bd81b0544e253ef2ec3bb977b</commentId>

    <commentText>adding notes</commentText>

    <commentType>work_notes</commentType>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T00:16:14+05:30</creationTimeStamp>

  </comment>

  <comment>

    <commentId>d5d0510fd8570544e253ef2ec3bb978e</commentId>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T11:43:38+05:30</creationTimeStamp>

  </comment>

  <comment>

    <commentId>f6b815cbd81b0544e253ef2ec3bb975b</commentId>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T00:18:08+05:30</creationTimeStamp>

  </comment>

</comments>

 

 

<?xml version="1.0" encoding="UTF-8"?>

<comments>

  <comment>

    <commentId>19711dcfd8570544e253ef2ec3bb9732</commentId>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T11:46:21+05:30</creationTimeStamp>

  </comment>

  <comment>

    <commentId>42815503d8970544e253ef2ec3bb977a</commentId>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T11:46:40+05:30</creationTimeStamp>

  </comment>

  <comment>

    <commentId>46f7d587d81b0544e253ef2ec3bb97df</commentId>

    <commentText>test1 comment</commentText>

    <commentType>comments</commentType>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T00:14:48+05:30</creationTimeStamp>

  </comment>

  <comment>

    <commentId>c348990bd81b0544e253ef2ec3bb977b</commentId>

    <commentText>adding notes</commentText>

    <commentType>work_notes</commentType>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T00:16:14+05:30</creationTimeStamp>

  </comment>

  <comment>

    <commentId>d5d0510fd8570544e253ef2ec3bb978e</commentId>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T11:43:38+05:30</creationTimeStamp>

  </comment>

  <comment>

    <commentId>f6b815cbd81b0544e253ef2ec3bb975b</commentId>

    <createdBy>admin</createdBy>

    <creationTimeStamp>2013-08-24T00:18:08+05:30</creationTimeStamp>

  </comment>

</comments>

 

------=_Part_451_24544789.1431516267286--

 

Response Content of the Web Service call (for the same web service call) from the VSI after recording is done :

 

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><RetrieveIncidentResponse message="Success" returnCode="0" schemaRevisionDate="{{=doDateDeltaFromCurrent(&quot;yyyy-MM-dd&quot;,&quot;-204D&quot;);/*2014-10-21*/}}" schemaRevisionLevel="8" status="SUCCESS" xmlns="http://schemas.hp.com/SM/7" xmlns:cmn="http://schemas.hp.com/SM/7/Common" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.hp.com/SM/7 http://yadmu02-test02-hpsm:13080/SM/7/Incident.xsd"><model><keys><IncidentID type="String">{{=request_model_keys_IncidentID;/*IM10526*/}}</IncidentID></keys><instance recordid="IM10526 - somelabel" uniquequery="number=&quot;IM10526&quot;"><IncidentID type="String">{{=request_model_keys_IncidentID;/*IM10526*/}}</IncidentID><Category type="String">incident</Category><OpenTime type="DateTime">2015-05-13T09:43:57+00:00</OpenTime><OpenedBy type="String">falcon</OpenedBy><Urgency type="String">2</Urgency><UpdatedTime type="DateTime">2015-05-13T09:43:57+00:00</UpdatedTime><AssignmentGroup type="String">Application</AssignmentGroup><Description type="Array"><Description type="String">desc-incident</Description></Description><Title type="String">somelabel</Title><TicketOwner type="String">falcon</TicketOwner><UpdatedBy type="String">falcon</UpdatedBy><Status type="String">Open</Status><Area type="String">failure</Area><Subarea type="String">job failed</Subarea><ProblemType type="String">incident</ProblemType><Location type="String">a7Yf000000001BjEAI</Location><Impact type="String">1</Impact><Service type="String">MyDevices</Service><attachments/></instance></model></RetrieveIncidentResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

 

From the response we can see that 'attachments' details is missing from the recoded response.

 

Attaching files and screenshots.

Any thoughts on this? TIA


Attachments

Outcomes