Highlighted
Trusted Contributor.
Trusted Contributor.
552 views

limit soap return results

Jump to solution

Hi Guys,

I’m using soap ui to retrieve incidents(priority=1).

When using the restful api, I’m able to get a list of incidents depending on my parameters however when calling the soap wsdl my request times out.

Is there a way of limiting the data that gets returned? So I want only the incident numbers to be returned on my results.

 

Method: RetrieveIncidentList

Soap: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pws="http://servicecenter.peregrine.com/PWS">

   <soapenv:Header/>

   <soapenv:Body>

      <pws:RetrieveIncidentListRequest attachmentInfo="" attachmentData="" ignoreEmptyElements="true" updatecounter="" handle="" count="" start="" attachmentType="">

         <!--1 or more repetitions:-->

         <pws:keys query="" updatecounter="">

            <!--Optional:-->

            <pws:priority.code>1</pws:priority.code>

            <pws:severity>3</pws:severity>           

         </pws:keys>

      </pws:RetrieveIncidentListRequest>

   </soapenv:Body>

</soapenv:Envelope>

 

Thanks in advance guys.

 

Sivu

0 Likes
1 Solution

Accepted Solutions
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Re: limit soap return results

Jump to solution

Hi,

you have to use the "RetrieveIncidentKeysListRequest" action 😉

The result is something like this:

<keys>
	<IncidentID type="String">IM10001</IncidentID>
</keys>
<keys>
	<IncidentID type="String">IM10002</IncidentID>
</keys>
<keys>
	<IncidentID type="String">IM10003</IncidentID>
</keys>

 

View solution in original post

3 Replies
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Re: limit soap return results

Jump to solution

Hi,

you have to use the "RetrieveIncidentKeysListRequest" action 😉

The result is something like this:

<keys>
	<IncidentID type="String">IM10001</IncidentID>
</keys>
<keys>
	<IncidentID type="String">IM10002</IncidentID>
</keys>
<keys>
	<IncidentID type="String">IM10003</IncidentID>
</keys>

 

View solution in original post

Highlighted
Valued Contributor.
Valued Contributor.

Re: limit soap return results

Jump to solution

Thanks, tried your advice and it worked, it would be nice to have control of what gets returned eg: return incident number and category or priority is what I'm trying to achieve here and not return everything but what I choose to return is it possible?

 

Thanks

Sivu

0 Likes
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Re: limit soap return results

Jump to solution

Hi,

i think the easiest way is to create your own extaccess definition.
There you can define the available fields in the SOAP Response.

With your own extaccess definition you can use then "Retrieve<extaccess_servicename>ListRequest" (as in your own example).

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.