Hi,

I'm trying to generate Java web service proxy client using Apache Axis2 for
Position Opening WSDL provided by HR-XML Consortium. I'm using wsdl2java
command-line tool to generate proxy client.

"wsdl2java -uri
http://ns.hr-xml.org/schemas/org_hr-xml/3_1_1/Services/Web_Services/WSDL/Pos
itionOpening.wsdl -d adb -o hrxml-positionopening"

Finally, I then try to convert the generated classes into JAR by calling
"ant jar.all". Unfortunately, it is failing to compile properly and throwing
some errors. I don't know what the reasons are. There are more than 100
errors, but I have shown below the first 3 errors that appear at the top.

E:\axis2-1.5.4\bin\hrxml-positionopening>ant jar.all
Buildfile: build.xml

init:

pre.compile.test:
     [echo] Stax Availability= true
     [echo] Axis2 Availability= true

compile.src:
    [javac] Compiling 3 source files to
E:\axis2-1.5.4\bin\hrxml-positionopening\build\classes
    [javac]
E:\axis2-1.5.4\bin\hrxml-positionopening\src\org\hr_xml\www\_3\ws\PositionOp
ening_ServiceStub.java:315862: 'else' without 'if'
    [javac]                                         else
    [javac]                                         ^
    [javac]
E:\axis2-1.5.4\bin\hrxml-positionopening\src\org\hr_xml\www\_3\ws\PositionOp
ening_ServiceStub.java:315964: 'else' without 'if'
    [javac]                              } else {
    [javac]                                ^
    [javac]
E:\axis2-1.5.4\bin\hrxml-positionopening\src\org\hr_xml\www\_3\ws\PositionOp
ening_ServiceStub.java:315718: 'try' without 'catch' or 'finally'
    [javac]             try {
    [javac]             ^

My purpose is to convert this Position Opening WSDL into a JAR, so that I
can use/call the functions directly from within my application.

Regards,
Gnanam


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to