AnsweredAssumed Answered

Mapping Request Objects to Response

Question asked by Jef on Oct 29, 2015

Is there a way in the VSI to pass an "object" in the request to the response, consider the following examples:

 

Let's say I have the following arguments in the request:

....

<ns:PersonList>

    <ns:Person>

        <ns:Name>John</ns:Name>

        <ns:Age>21</ns:Age>

    </ns:Person>

</ns:PersonList>

....

 

Normally, if you would like to pass the values from the request to the response, you'd do this:

....

<ns:PersonList>

    <ns:Person>

        <ns:Name>{{=request_PersonList_Person_Name;}}</ns:Name>

        <ns:Age>{{=request_PersonList_Person_Age;}}</ns:Age>

    </ns:Person>

    <ns:Person>

        <ns:Name>{{=request_PersonList_Person_Name;}}</ns:Name>

        <ns:Age>{{=request_PersonList_Person_Age;}}</ns:Age>

    </ns:Person>

</ns:PersonList>

.....

 

Is it possible or is there a way to pass the Person argument to the response as such:

 

....

<ns:PersonList>

    <ns:Person>

        {{=request_PersonList_Person;}}

    </ns:Person>

</ns:PersonList>

....

 

or just pass the whole array list like this:

 

 

<ns:PersonList>

        {{=request_PersonList;}}

</ns:PersonList>

....

 

Your response is greatly appreciated.

 

Thanks.

Outcomes