AnsweredAssumed Answered

Meta response not returned when unmatched request sent

Question asked by peterchu on Mar 15, 2016
Latest reply on Mar 21, 2016 by peterchu

Hi everyone,

 

I've created an image from request/response pair files as below:

service-req.xml : request to send to the image

service-rsp.xml : successful response to be returned when the request matches the syntax defined in service-req.xml

service-rsp-meta.properties: fail response to be returned when the request matches the syntax defined in service-req.xml, e.g. missing a field.

 

The image was created with the fail response embedded in the meta data field as expected.

 

When I deployed the mar file to a VSE and tested the service in SoapUI with a correct (matched) request, the successful response was returned, as expected. However, when I changed the request by removing a field and sent it, the VSE returned the following message instead of the meta response (fail message) as I expected.

 

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">

   <S:Body>

      <S:Fault xmlns:ns3="http://www.w3.org/2003/05/soap-envelope">

         <faultcode>S:Server</faultcode>

         <faultstring>The LISA VSE service could not match your request to a recorded request. Consider expanding your service image.</faultstring>

         <detail>

            <ns2:exception class="java.lang.Exception" xmlns:ns2="http://jax-ws.dev.java.net/">

               <message>The LISA VSE service could not match your request to a recorded request. Consider expanding your service image.</message>

               <ns2:stackTrace></ns2:stackTrace>

            </ns2:exception>

         </detail>

      </S:Fault>

   </S:Body>

</S:Envelope>

 

Could someone please point out to me how I can get the meta response as expected.

 

Thanks and regards,

Peter

Outcomes