Highlighted
Absent Member.
Absent Member.
1551 views

How to get a sample HPSM SOAP MESSAGE??

 
0 Likes
4 Replies
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: How to get a sample HPSM SOAP MESSAGE??

http://<servicemanagerserverhostname:portnumber>/SM/7/ConfigurationManagement.wsdl ??

Is this what you are looking for ?

I am Listening..
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: How to get a sample HPSM SOAP MESSAGE??

No. Actually i was Looking for sample SOAP requests which will be provided by HPSM to ServiceNow for incident creation and Attachment creation in ServiceNow. How to generate that sample Soap Message for incident. Can you pls help me out??

0 Likes
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: How to get a sample HPSM SOAP MESSAGE??

First - let's be clear on what you're asking.  You're not asking for help with HPSM.  You're asking for help with Service Now.

So you've got two systems - HPSM and SNow - and you want to get them to talk to each other.  You want to take the data that is in a ticket in HPSM and send that data via SOAP to SNow.  Service Now doesn't care what the data looks like in HPSM, just like HPSM doesn't care what the data looks like in SNow.  Your request from HPSM has to be sent in the way that ServiceNow expects incoming data to look, and when they send data back to you, they need to send it in the way that HPSM expects it to look.

So you' don't really need a sample of HPSM's SOAP request; you need an example of the expected ServiceNow SOAP Request, and that might be different depending on the specific instance of SNow you're communicating with.  So I'd start by asking the team that supports that SNow for a sample SOAP request

Additionally, if you're unfamiliar with SOAP, I'd recommend getting a third-party tool like SOAP-UI (a free SOAP/REST/Testing software).  In SOAP UI, select File -> New SOAP Project and enter the URL of the Service Now endpoint where you'll be sending your data.  The system will use that endpoint to generate an XML document that should give some idea of what it will look like.  

Additionally, sometimes it's easier to start with data you already understand.  So, in SOAP UI, create a new SOAP project and point it at your Service Manager instance (like http://<your server name>:13080/SM/7/IncidentManagement.wsdl)  SOAP UI will then load sample requests that look similar to what you're used to filling out in an HPSM Incident ticket.

0 Likes
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: How to get a sample HPSM SOAP MESSAGE??

This SOAP sample is not from an Out of Box system, so it won't be exactly what you need, but a SOAP request to create a ticket in HPSM will look something like this

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://schemas.hp.com/SM/7" xmlns:com="http://schemas.hp.com/SM/7/Common" xmlns:xm="http://www.w3.org/2005/05/xmlmime">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:CreateIncidentRequest attachmentInfo="?" attachmentData="?" ignoreEmptyElements="true" updateconstraint="-1">
         <ns:model>
            <ns:keys>
               <ns:IncidentID></ns:IncidentID>
            </ns:keys>
            <ns:instance>
               <ns:IncidentID type="String" mandatory="?" readonly="?"></ns:IncidentID>
               <ns:Category type="String" mandatory="?" readonly="?">Incident</ns:Category>
               <ns:Urgency type="String" mandatory="?" readonly="?">4</ns:Urgency>
               <ns:PrimaryAssignmentGroup type="String" mandatory="?" readonly="?">SM Development and Support</ns:PrimaryAssignmentGroup>
               <ns:ConfigurationItem type="String" mandatory="?" readonly="?">Unknown Device</ns:ConfigurationItem>
               <ns:Description type="Array">
                     <ns:Description type="String" mandatory="?" readonly="?">this is a test line of description</ns:Description>
               </ns:Description>
               <ns:AssigneeName type="String" mandatory="?" readonly="?"></ns:AssigneeName>
               <ns:JournalUpdates type="Array">
                     <ns:JournalUpdates type="String" mandatory="?" readonly="?"></ns:JournalUpdates>
               </ns:JournalUpdates>
               <ns:Symptom type="String" mandatory="?" readonly="?">This is the brief description</ns:Symptom>
               <ns:Status type="String" mandatory="?" readonly="?"></ns:Status>
               <ns:Area type="String" mandatory="?" readonly="?">Failure</ns:Area>
               <ns:Subarea type="String" mandatory="?" readonly="?">Function or feature not working</ns:Subarea>
               <ns:Impact type="String" mandatory="?" readonly="?">4</ns:Impact>
               <ns:ContactName type="String" mandatory="?" readonly="?">Jennifer.Falcon</ns:ContactName>
               <ns:Location type="String" mandatory="?" readonly="?"></ns:Location>
               <ns:attachments>
                     <com:attachment xm:contentType="application/?" href="?" contentId="?" action="?" name="?" type="?" len="?" charset="?" upload.by="?" upload.date="?" attachmentType="?">cid:186512305782</com:attachment>
               </ns:attachments>
            </ns:instance>
            <ns:messages>
               <com:message type="String" mandatory="?" readonly="?" severity="?" module="?"></com:message>
            </ns:messages>
         </ns:model>
      </ns:CreateIncidentRequest>
   </soapenv:Body>
</soapenv:Envelope>

 

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.