Identify if the response was sent from the live system or virtual service image.

Document ID:  TEC1952067
Last Modified Date:  06/12/2017
{{active ? 'Hide' : 'Show'}} Technical Document Details

Products

  • CA Service Virtualization

Releases

  • CA Service Virtualization:Release:8.1

Components

  • CA ITKO LISA Virtual Services Environment (VSE):ITKOVS
Question:

Is it possible to identify if the response was sent from the live system or virtual service when the execution mode is live invocation?

Environment:
All supported DevTest versions.
Answer:

In the VSI response, Meta Data tab, look for the header 'Server'.

If this header is not set, DevTest will add it to the response during the VSM execution.

When the response is returned from VSI, the header will be: 

Server: DevTest/Virtual-Environment-Server 

When the response comes from the live system, the header will be from the service that sent the response: 

Server: Apache-Coyote/1.1 

This was a test performed against the DemoServer - delivered with DevTest.

If the VSI response have the 'Server' header already set, then the response from the service image will contain what is available in the VSI.

It is also possible to modify the response body in the service image and add something that identifies the response being returned is from the VSI.

Please help us improve!

Will this information enable you to resolve your issue?

Please tell us what we can do better.

{{feedbackText.length ? feedbackText.length : '0'}}/255

{{status}}

Not what you were looking for?

Search Again >

Product Information

Support by Product >

Communities

Join a Community >

Chat with CA

Just give us some brief information and we'll connect you to the right CA ExpertCA sales representative.

Our hours of availability are 8AM - 5PM CST.

All Fields Required

connecting

We're matching your request.

Unfortunately, we can't connect you to an agent. If you are not automatically redirected please click here.

  • {{message.agentProfile.name}} will be helping you today.

    View Profile


  • Transfered to {{message.agentProfile.name}}

    {{message.agentProfile.name}} joined the conversation

    {{message.agentProfile.name}} left the conversation

  • Your chat with {{$storage.chatSession.messages[$index - 1].agentProfile.name}} has ended.
    Thank you for your interest in CA.


    Rate Your Chat Experience.

    {{chat.statusMsg}}

agent is typing