Amila, wsaw:Action is of type anyURI. So I think there is a bug here- the string "SubmitOrder" should get resolved as a URI relative to the baseURI of the document.

If we fix that then these won't match and the right thing will happen.

Sanjiva.

Amila Suriarachchi wrote:

hi all,

Have a look at the code in the AxisService getOperation method. (AxisService.java 1613)

if (axisOperation == null) {
            axisOperation = (AxisOperation) operationsAliasesMap
                    .get(operationName.getLocalPart());

            if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled())
log.debug("Operations aliases map: " + operationsAliasesMap);
        }

Here it tries to get the operation assuming operation name local part is equals to the action.
Although this is a common practise it is not a spec requirement.

As a result of this code it fails codegen for wsdls like this.

<wsdl:portType name="OrderProcessorService">
        <wsdl:operation name="SubmitOrderTransactedQueue">
            <wsdl:input wsaw:Action="SubmitOrder"
message="tns:OrderProcessorService_SubmitOrderTransactedQueue_InputMessage"/>
        </wsdl:operation>
        <wsdl:operation name="SubmitOrder">
<wsdl:input wsaw:Action="SubmitOrderOnePhase" message="tns:OrderProcessorService_SubmitOrder_InputMessage"/>
        </wsdl:operation>
        <wsdl:operation name="isOnline">
<wsdl:input wsaw:Action="isOnline" message="tns:OrderProcessorService_isOnline_InputMessage"/>
        </wsdl:operation>
    </wsdl:portType>

since the Action SubmitOrder is defined in first operation it returns a wrong action when checking
for second operation. It should return null.

Shall we remove this part?

thanks,
Amila.

--
Amila Suriarachchi,
WSO2 Inc.

--
Sanjiva Weerawarana, Ph.D.
Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
Member; Apache Software Foundation; http://www.apache.org/
Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to