I had a look at your testcase. Assuming your incoming SOAP request reads similar to
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="..."> <soapenv:Body> <typ:GetStaffInfo> ... </typ:GetStaffInfo> </soapenv:Body>
You can then use an XPath expression "//GetStaffInfo" in your CBR. I don't think the currently used expression "//operationName='GetStaffInfo'" will work.
I tried the same you asked. It returned error "Content is not allowed in prolog."
Do you have any idea why?
May be we are trying which is not possible.
Is their any other way to set the bean method to the correct web service method?
The approach taken is correct. I dont think you should worry about
"content is not allowed in prolog" message.
Can you verify the functionality of the route in spite of the error message?