AnsweredAssumed Answered

How to create requests in Service Catalog via webservice?

Question asked by Albino on Mar 2, 2018
Latest reply on Jul 10, 2018 by Albino

Hi guys,

I'm trying to develop a integration that create new service requests in Service Catalog from a third party app, using the following methods to perform the needed actions:


addRequestWithForm - to insert the new request
getRequestItems - to recover the subscriptions detail ids for each form attached
saveForm - to fill the form fields.
submitRequest - to submit the request


All offers uses approval process 2 (approval process driven by workflow) , that fire a PAM workflow to validate approval rules after request submission.

When i try to add a request with offer 10243, the method return a error message, but a new request is created and no items are added to it



<soapenv:Envelope xmlns:xsi="" xmlns:xsd="" xmlns:soapenv="" xmlns:ser="">
<ser:addRequestWithForm soapenv:encodingStyle="">
<sessionID xsi:type="xsd:string">6916ce25-fa61-4d5a-953d-1920343b9d72</sessionID>
<requestData xsi:type="xsd:string">name:Nova solicitacao via WS!priority:3!status:100!req_by_user_id:usr_caitsm!req_for_user_id:usr_caitsm</requestData>
<requestValuesData xsi:type="xsd:string"></requestValuesData>
<requestValuesDataType xsi:type="xsd:string"></requestValuesDataType>
<addedOfferings xsi:type="xsd:string"></addedOfferings>
<addedItems xsi:type="xsd:string">offering_id:10243!rate_item_id:10147!item_id:12985</addedItems>
<formValuesData xsi:type="xsd:string">offering_id:10243</formValuesData>



<soapenv:Envelope xmlns:soapenv="" xmlns:xsd="" xmlns:xsi="">
<faultstring>Exception occurred in get Request Approval List.</faultstring>
<ns1:exceptionName xmlns:ns1=""></ns1:exceptionName>
<ns2:hostname xmlns:ns2="">SERVERNAME</ns2:hostname>


The new request seems like this:

This form need to be added (created via WS using another offering_id):