swathib

How should I get the response from virtual service if request changes?

Discussion created by swathib on Sep 25, 2018
Latest reply on Sep 27, 2018 by swathib

Hi, This issue i'm facing quite long.

Implemented virtual service using below request.

VSrequest:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns4:process xmlns:ns2="***" xmlns:ns4="***" contentType="application/json" encoding="charset=utf-8">&lt;![CDATA[{"request":{"id":"600570075"}}]]&gt;</ns4:process>
</soap:Body>
</soap:Envelope>

 

But service got updated and added new attributes in the request.

API-VSrequest:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns4:process xmlns:ns2="***" xmlns:ns3="***" xmlns:ns4="***" contentType="application/json" encoding="charset=utf-8">&lt;![CDATA[{"request":{"id":"600570075","hpc":["abc","def","god"],"includeOLAAccountsOnly":false}}]]&gt;</ns4:process>
</soap:Body>
</soap:Envelope>

 

My Virtual service has to provide response based on id attribute only not other. when I consumed my virtual service in my application,  got the request to my virtual service as API-VSrequest. So virtual service is not providing exact response. Usually what i will do if any changes happened in service, i'll reimplement service again. Please suggest me solution for this issue. How should I get the response from virtual service if request changes?

Outcomes