Hi All,
I created MockResponse for one of the operation in MockService.
By default, Default value for all elements in MockResponse is "?".
Now I want to insert some value instead of "?" in MockResponse using groovy script...
My MockResponse is looks like below
<soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:getSidInformationResponse xmlns:ns="
http://sidmgmt.com">
<ns:return type="com.SidInfoResp" xmlns:ax28="
http://dto.group.com/xsd" xmlns:ax22="
http://service.bds.com/xsd" xmlns:ax24="
http://dto.sidmgmt.com/xsd" xmlns:ax26="
http://dto.action.com/xsd" xmlns:ax21="
http://sidmgmt.com/xsd">
<ax21:devices type="com.sidmgmt.dto.Device">
<ax24:api>?</ax24:api>
<ax24:language>?</ax24:language>
<ax24:lastUsed>?</ax24:lastUsed>
<!-- 1 or more occurence of licenses element --> <ax24:licenses type="com.sidmgmt.dto.License">
<ax24:itemName>?</ax24:itemName>
<ax24:itemVersion>?</ax24:itemVersion>
<ax24:lastEvent type="com.sidmgmt.dto.Event">
<ax24:customerId>?</ax24:customerId>
<ax24:custType>?</ax24:custType>
<ax24:eventSource xsi:nil=? xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"/>
</ax24:lastEvent>
<ax24:price>?</ax24:price>
<ax24:priceMethod>?</ax24:priceMethod>
<ax24:type xsi:nil=? xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"/>
</ax24:licenses>
</ax21:devices>
<ax21:results type="com.Result">
<ax22:code>?</ax22:code>
<ax22:message>?</ax22:message>
</ax21:results>
<ax21:sid>?</ax21:sid>
</ns:return>
</ns:getSidInformationResponse>
</soapenv:Body>
</soapenv:Envelope>
I will appreciate if any input will be available.
Regards,
Jim