Code generated by wsdl2java doesnot compile
-------------------------------------------

                 Key: AXIS2-2144
                 URL: https://issues.apache.org/jira/browse/AXIS2-2144
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: Tools
    Affects Versions: 1.1.1
         Environment: Windows XP
            Reporter: Kamal Kang
         Attachments: tmf854.zip

The code generated by wsdl2java is giving following compilation errors. Wsdl 
files and XSDs are attached.

compile.src:
    [javac] Compiling 20 source files to D:\mtosi\build\classes
    [javac] D:\mtosi\src\tellabs\mtosi\DiscoveryServiceMessageReceiverInOut.java
:67: cannot find symbol
    [javac] symbol  : method toOM(ws.v1.tmf854.ProcessingFailureExceptionT,boole
an)
    [javac] location: class tellabs.mtosi.DiscoveryServiceMessageReceiverInOut
    [javac]             f.setDetail(toOM(e.getFaultMessage(),false));
    [javac]                         ^
    [javac] D:\mtosi\src\tellabs\mtosi\DiscoveryServiceStub.java:153: cannot fin
d symbol
    [javac] symbol  : method toOM(ws.v1.tmf854.HeaderT,boolean)
    [javac] location: class tellabs.mtosi.DiscoveryServiceStub
    [javac]                                         env.getHeader().addChild(toO
M(param41, optimizeContent(new javax.xml.namespace.QName("", "getAllCapabilities
"))));
    [javac]                                                                  ^
    [javac] D:\mtosi\src\tellabs\mtosi\DiscoveryServiceStub.java:269: cannot fin
d symbol
    [javac] symbol  : method toOM(ws.v1.tmf854.HeaderT,boolean)
    [javac] location: class tellabs.mtosi.DiscoveryServiceStub
    [javac]                                            env.getHeader().addChild(
toOM(param41, optimizeContent(new javax.xml.namespace.QName("", "getAllCapabilit
ies"))));
    [javac]
^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 3 errors

BUILD FAILED
D:\mtosi\build.xml:47: Compile failed; see the compiler error output for details

You can reproduce by generating code for wsdl\services\DiscoveryService.wsdl


-- 
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