@Giridharan JagadeesanHi Giri,
I tried with the below steps, but still not working for me. Could you please check and let me if i'm missing anything.
1. Created a virtual service using RR1 with below config.
{"dataProtocol":{"forRequest":true,"typeId":"RESTDPH"},"virtualService":{"name":"test_VPE_23","description":"Invoke API V2","thinkScale":"100","version":"2","status":"","capacity":"10"},"transportProtocol":{"basePath":"\/","useGateway":true,"hostHeaderPassThrough":false,
"overwriteTxns":true,"typeId":"HTTP"}}
2. Updated the same virtual service using RR2 with updated response. I tried to attach the same config json with update api as well, but still not working.
Could you please check the below issue as well. Both might be interrelated.
https://community.broadcom.com/enterprisesoftware/communities/community-home/digestviewer/viewthread?GroupId=1843&MessageKey=ced2731b-6937-4c53-b2af-43d4694f3fcd&CommunityKey=94bda077-625b-4914-8ac3-c88a06c2cc23&tab=digestviewer&ReturnUrl=%2fenterprisesoftware%2fcommunities%2fcommunity-home%2fdigestviewer%3fCommunityKey%3d94bda077-625b-4914-8ac3-c88a06c2cc23
Original Message:
Sent: 02-26-2020 02:22 AM
From: Giridharan Jagadeesan
Subject: Service Virtualization v3 API issue
Hi Parthiban,
Thanks for the files. I see you have added 'phone number' in the updated response file. In this case, you need to set overwrite flag to 'true' in the config field before executing the Update api {"transportProtocol":{"overwriteTxns":true}}. Then if you replay the virtual service, you will get the desired response with phone number. Pls try and let me know.
Cheers,
Giri
Original Message:
Sent: 02-25-2020 11:26 PM
From: Parthiban V
Subject: Service Virtualization v3 API issue
Hi Giri,
I have attached both RR pairs. RR1 is used to create a virtual service and then RR2 is used to update the same virtual service. Update api call is successful, but still we are getting the RR1 response instead of the updated response from RR2. Please let me know if you need more details.
Create api - /vses/{vseName}/services
Update api - /vses/{vseName}/services/{virtualServiceName}
Original Message:
Sent: 02-25-2020 07:45 AM
From: Giridharan Jagadeesan
Subject: Service Virtualization v3 API issue
Hi Parthiban,
Pls provide more information to understand your scenario better.
What is the RR pair you used to create VS?
What is the RR pair you used to update the VS (with updated response)?
Can you send me your RRpair files?
Cheers,
Giri
Original Message:
Sent: 02-24-2020 05:03 AM
From: Parthiban V
Subject: Service Virtualization v3 API issue
Hi,
I have created a endpoint using Create virtual service v3 api with RR pair and it is successfully deployed in vse server. Now i added a new attribute in my response object (ex. "country":"US"), and deployed it. But i'm not getting the updated response for my endpoints, still getting the old response without country attribute.
We are using v3 apis to create and update endpoints. Any pointers to any of the older v2 or v1 apis which can update my response.
Could anyone help on this.