Hi All;

Following code in the VFSTrasnportListener try to find the operation
from the services.xml, and use a default value when it is not found.
However, if the service do not have a operation whose name matches the
default value, a operation will not be set, and consequently, the
processing will fail at the post dispatch verifications. I guess one
can work around by adding a parameter called "Operation" in to the
services.xml, but IMO this is a bug.

Thanks
Srinath

AxisService service = entry.getService();
            if (service != null) {
                msgContext.setAxisService(service);

                // find the operation for the message, or default to one
                Parameter operationParam =
service.getParameter(BaseConstants.OPERATION_PARAM);
                QName operationQName = (
                    operationParam != null ?

BaseUtils.getQNameFromString(operationParam.getValue()) :
                        BaseConstants.DEFAULT_OPERATION);

                AxisOperation operation = service.getOperation(operationQName);
                if (operation != null) {
                    msgContext.setAxisOperation(operation);
                }
            }

-- 
============================
Srinath Perera:
   Indiana University, Bloomington
   http://www.cs.indiana.edu/~hperera/
   http://srinathsview.blogspot.com/

_______________________________________________
Esb-java-user mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user

Reply via email to