Attachment and Webservice

by Community Manager on ‎02-16-2012 08:13 AM



Working on SM7.02.


How could I get back information about attachment with the "RetrieveIncident" webservice ? (trying with SoapUI or with my website). I do not know JS.... :-(


Is it possible to get the attachment back using webservice out of SM7 ?



Solution in SoapUI for creating :


<soapenv:Envelope xmlns:soapenv="" xmlns:pws="" xmlns:com="">
      <pws:CreateIncidentRequest attachmentInfo="true" attachmentData="true" ignoreEmptyElements="true">
               <pws:Category>International Applications</pws:Category>
                  <pws:IncidentDescription>Test </pws:IncidentDescription>
               <pws:BriefDescription>Test Création</pws:BriefDescription>
               <pws:Subcategory>Service Manager</pws:Subcategory>
               <pws:ProductType>User Administration</pws:ProductType>
                  <com:attachment href="&lt;UserData.txt>" contentId="" action="add" name="UserData.txt" type="" len="" charset="" attachmentType=""/>


As you can see, careful to the attribut "com:attachment" : 

The href should start with &lt; because it the non coded html tag (Ex : href="&lt;UserData.txt>") and finish by the usual tag ">"

Showing results for 
Search instead for 
Do you mean 
HP Blog

IT Service Management Blog


Follow Us
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.