Highlighted
Teos_Verdi Absent Member.
Absent Member.
803 views

Help with SOAP API

Hi.

 

I'm retrieving interaction keys list via SOAP API using template request code, generated by SOAP UI and i don't understand how to sort the results in descending order. I've already tried changing ns:keys query and adding sort namespace, but no luck.

 

Request code:

Spoiler
<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:RetrieveInteractionKeysListRequest attachmentInfo="" attachmentData="" ignoreEmptyElements="true" updatecounter="" handle="" count="" start="">
         <ns:model query="">
            <ns:keys query="" updatecounter="">
               <!--Optional:-->
               <ns:Status type="String" mandatory="" readonly="">В работе</ns:Status>
            </ns:keys>
            <ns:instance query="" uniquequery="" recordid="" updatecounter="">
               <!--Optional:-->
               <ns:CallID type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:ServiceRecipient type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:Urgency type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:OpenTime type="DateTime" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:UpdateTime type="DateTime" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:OpenedBy type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:Description type="Array">
                  <!--Zero or more repetitions:-->
                  <ns:Description type="String" mandatory="" readonly=""/>
               </ns:Description>
               <!--Optional:-->
               <ns:AffectedService type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:CallOwner type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:Status type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:NotifyBy type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:Solution type="Array">
                  <!--Zero or more repetitions:-->
                  <ns:Solution type="String" mandatory="" readonly=""/>
               </ns:Solution>
               <!--Optional:-->
               <ns:Category type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:CallerDepartment type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:CallerLocation type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:CloseTime type="DateTime" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:ClosedBy type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:KnowledgeCandidate type="Boolean" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:SLAAgreementID type="Int" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:Priority type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:ServiceContract type="Int" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:SiteCategory type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:TotalLossOfService type="Boolean" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:Area type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:Subarea type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:ProblemType type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:FailedEntitlement type="Boolean" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:Location type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:CauseCode type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:ClosureCode type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:Company type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:ReportedByContact type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:ReportedByDifferentContact type="Boolean" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:ReportedByPhone type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:ReportedByExtension type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:ReportedByFax type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:ContactEmail type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:LocationFullName type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:ContactFirstName type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:ContactLastName type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:ContactTimeZone type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:EnteredByESS type="Boolean" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:SLABreached type="Boolean" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:NextSLABreach type="DateTime" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:Contact type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:Update type="Array">
                  <!--Zero or more repetitions:-->
                  <ns:Update type="String" mandatory="" readonly=""/>
               </ns:Update>
               <!--Optional:-->
               <ns:Impact type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:needed.by.time type="DateTime" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:approval.status type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:folder type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:subscriptionItem type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:AffectedCI type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:Title type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:CpxPriority type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:SuspendTime type="DateTime" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:CpxAssigneeName type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:CpxAssigneeGroupName type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:CpxInteractionMethod type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:CpxAffectedItem type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:CpxState type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:CpxComputerName type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:CpxComment type="String" mandatory="" readonly=""/>
               <!--Optional:-->
               <ns:CpxCi type="Array">
                  <!--Zero or more repetitions:-->
                  <ns:CpxCi type="String" mandatory="" readonly=""/>
               </ns:CpxCi>
               <!--Optional:-->
               <ns:CpxOldLocation type="Array">
                  <!--Zero or more repetitions:-->
                  <ns:CpxOldLocation type="String" mandatory="" readonly=""/>
               </ns:CpxOldLocation>
               <!--Optional:-->
               <ns:CpxNewLocation type="Array">
                  <!--Zero or more repetitions:-->
                  <ns:CpxNewLocation type="String" mandatory="" readonly=""/>
               </ns:CpxNewLocation>
               <!--Optional:-->
               <ns:attachments>
                  <!--Zero or more repetitions:-->
                  <com:attachment xm:contentType="application/?" href="" contentId="" action="" name="" type="" len="" charset="" attachmentType="">cid:185490576669</com:attachment>
               </ns:attachments>
            </ns:instance>
            <!--Optional:-->
            <ns:messages>
               <!--Zero or more repetitions:-->
               <com:message type="String" mandatory="" readonly="" severity="" module=""/>
            </ns:messages>
         </ns:model>
      </ns:RetrieveInteractionKeysListRequest>
   </soapenv:Body>
</soapenv:Envelope>

 

 

Response:

 

 

Spoiler
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Body>
      <RetrieveInteractionKeysListResponse message="Успешно" query="" returnCode="0" schemaRevisionDate="2014-07-21" schemaRevisionLevel="5" status="SUCCESS" xsi:schemaLocation="http://schemas.hp.com/SM/7 http://S-HPSM-TEST-003.rttv.ru:13085/SM/7/Interaction.xsd" 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">
         <keys>
            <CallID type="String">SD24392</CallID>
         </keys>
         <keys>
            <CallID type="String">SD25441</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26019</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26070</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26263</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26346</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26394</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26400</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26445</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26470</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26482</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26499</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26524</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26527</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26541</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26545</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26553</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26586</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26587</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26595</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26596</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26597</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26599</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26600</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26608</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26612</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26616</CallID>
         </keys>
         <keys>
            <CallID type="String">SD26621</CallID>
         </keys>
      </RetrieveInteractionKeysListResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

 

 

 

 

 Help me please. 😧 Thx in advance.

Tags (4)
0 Likes
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.