opMetaData = epMetaData.getOperations().get(0);
}
else
{
SOAPMessageImpl soapMessage = (SOAPMessageImpl)reqMessage;
opMetaData = soapMessage.getOperationMetaData(epMetaData);
SOAPHeader soapHeader = soapMessage.getSOAPHeader();
// Report a MustUnderstand fault
if (opMetaData == null)
{
String faultString;
SOAPBodyImpl soapBody = (SOAPBodyImpl)soapMessage.getSOAPBody();
SOAPBodyElement soapBodyElement = soapBody.getBodyElement();
if (soapBodyElement != null)
{
Name soapName = soapBodyElement.getElementName();
faultString = "Endpoint " + epMetaData.getPortName() + " does not contain operation meta data for: " + soapName;