Exam4Training

A web client submits a request to http://localhost:8081/fliqhts?

Refer to the exhibits.

A web client submits a request to http://localhost:8081/fliqhts?destination=SFO and the Web Service Consumer throws a WSC: BAD_REQUEST error.

What is the next step to fix this error?
A . Set a header In the Consume operation equal to the destination query parameter
B . set a SOAP payload before the Consume operation that contains the destination query parameter
C . set a property m the Consume operation equal to the destination query parameter
D . set a JSON payload before the Consume operation that contains the destination query parameter

Answer: B

Explanation:

As can be seen in error message, SOAP service findFlights expects the SOAP paylaod. This can be set using transform message processor which forms SOAP payload before the Consume operation that contains the destination query parameter

Exit mobile version