wsdl2java for JAXB binding generates uncompilable code
------------------------------------------------------

                 Key: AXIS2-3362
                 URL: https://issues.apache.org/jira/browse/AXIS2-3362
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: codegen
    Affects Versions: 1.3, nightly
         Environment: JDK5, JAXB-RI 2
            Reporter: Martin Caslavsky
         Attachments: test.wsdl

For method with single primitive parameter (int, long,...) wsdl2java for JAXB 
binding generates uncompilable code in 
*MessageReceiverInOut.invokeBusinessLogic(MessageContext, MessageContext): 
"Cannot cast from Object to int":

                if ("NewOperation".equals(methodName)) {
                    int newOperationResponse1 = 0;
                    int wrappedParam = (int) fromOM(msgContext.getEnvelope()
                                                              .getBody()
                                                              
.getFirstElement(),
                            int.class,
                            getEnvelopeNamespaces(msgContext.getEnvelope()));

(ADB works OK)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to