I noticed, in file:
java/sca/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGenerator.java

that we have the following code:

            String action = ((JavaOperation)op).getAction();
            if ((action == null || "".equals(action)) &&
!op.isWrapperStyle() && op.getWrapper() == null) {
                // Bare style
                action = "urn:" + op.getName();
            }

i.e. we calculate a default soapAction for the WSDL we're generating if this
is BARE style.

I think this is useful, in spite of the fact that JSR-181 says that the
default soapAction should be unset.

Just wondering if anyone knew the rationale behind making a special case for
BARE style... then maybe we could discuss
whether it might make sense to do it for WRAPPED as well.

Scott

Reply via email to