Skip to Content
0
Jan 04, 2023 at 02:36 PM

SAP-CC - Adapt WS return message

323 Views

Dear CC experts,

Is there a way to change the return message of a CC standard request? We are using the request rangeTableRangeSetCancelRequest to delete Range Sets from a range table, but the return message has not enough informations to meet the requirement needs.

Currently we are getting the following response on successfull cases:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Header/>
   <soap:Body>
      <ns2:rangeTableRangeSetCancelResponse xmlns:ns2="http://schema.catalog.v3.ws.highdeal.com/" xmlns:ns3="http://schema.catalog.ws.highdeal.com/">
         <status>return</status>
         <id>RANGE_TABLE_ID</id>
         <reference>123456789</reference>
      </ns2:rangeTableRangeSetCancelResponse>
   </soap:Body>
</soap:Envelope>

We would like to have something like this:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Header/>
   <soap:Body>
      <ns2:rangeTableRangeSetCancelResponse xmlns:ns2="http://schema.catalog.v3.ws.highdeal.com/" xmlns:ns3="http://schema.catalog.ws.highdeal.com/">
         <status>return</status>
         <id>RANGE_TABLE_ID</id>
		 <message>The range set key $1 was successfully deleted.</message>
         <reference>123456789</reference>
      </ns2:rangeTableRangeSetCancelResponse>
   </soap:Body>
</soap:Envelope>

Best Regards,

Isaque