You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Saehoon Cheon <sa...@gmail.com> on 2006/07/21 08:48:35 UTC

WSDL Converting error

I want to test JAVA2WSDL process. But it caused the lots of errors,
but I have no idea why?

Other examples worked successfully in the same environment.

I put the source code and error message. please let me know why.

==================  Source Code ===============================================

public class TaxService
{
    public double calcTaxRate(double subtotal, double total)
    {
        double rate =  (total - subtotal) / subtotal;
        return rate;
    }

    public double calcSubTotal(double total, double taxpercent)
    {
        double subtotal = total / (1 + taxpercent);
        return subtotal;
    }

    public double calcTotal(double subtotal, double taxpercent)
    {
        double total = subtotal * (1 + taxpercent);
        return total;
    }
}

====================   Source Code End
======================================================





===================================== Error message
========================================

Sorry, something seems to have gone wrong... here are the details:

Fault - Error while compiling:  C:\Program Files\Apache Group\Tomcat
4.1\webapps\axis\WEB-INF\jwsClasses\TaxService.java

AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.compileError
 faultSubcode:
 faultString: Error while compiling:  C:\Program Files\Apache
Group\Tomcat 4.1\webapps\axis\WEB-INF\jwsClasses\TaxService.java
 faultActor:
 faultNode:
 faultDetail:
	{}Errors:Error compiling C:\Program Files\Apache Group\Tomcat
4.1\webapps\axis\WEB-INF\jwsClasses\TaxService.java:
Line 1, column 0:  'class' or 'interface' expected
Line 1, column 1:  illegal character: \92
Line 1, column 6:  illegal character: \92
Line 1, column 11:  illegal character: \92
Line 1, column 22:  illegal character: \92
Line 1, column 28:  illegal character: \92
Line 1, column 40:  illegal character: \92
Line 1, column 55:  illegal character: \92
Line 1, column 64:  illegal character: \92
Line 1, column 67:  illegal character: \92
Line 1, column 75:  illegal character: \92
Line 1, column 81:  illegal character: \92
Line 1, column 94:  illegal character: \92
Line 1, column 95:  unclosed character literal
Line 1, column 98:  illegal character: \92
Line 1, column 99:  unclosed character literal
Line 1, column 102:  illegal character: \92
Line 1, column 103:  unclosed character literal
Line 1, column 106:  illegal character: \92
Line 1, column 107:  unclosed character literal
Line 2, column 1:  illegal character: \92
Line 2, column 3:  illegal character: \92
Line 2, column 37:  illegal character: \92
Line 2, column 47:  illegal unicode escape
Line 2, column 51:  illegal character: \92
Line 2, column 56:  illegal character: \92
Line 2, column 65:  illegal character: \92
Line 2, column 68:  illegal character: \92
Line 2, column 97:  illegal character: \92
Line 3, column 0:  illegal character: \92
Line 3, column 2:  illegal character: \92
Line 4, column 60:  illegal character: \92
Line 5, column 4:  illegal character: \92
Line 5, column 6:  illegal character: \92
Line 6, column 53:  illegal character: \92
Line 7, column 20:  illegal character: \92
Line 8, column 4:  illegal character: \92
Line 8, column 6:  illegal character: \92
Line 9, column 4:  illegal character: \92
Line 10, column 63:  illegal character: \92
Line 11, column 4:  illegal character: \92
Line 11, column 6:  illegal character: \92
Line 12, column 51:  illegal character: \92
Line 13, column 24:  illegal character: \92
Line 14, column 4:  illegal character: \92
Line 14, column 6:  illegal character: \92
Line 15, column 4:  illegal character: \92
Line 16, column 63:  illegal character: \92
Line 17, column 4:  illegal character: \92
Line 17, column 6:  illegal character: \92
Line 18, column 51:  illegal character: \92
Line 19, column 21:  illegal character: \92
Line 20, column 4:  illegal character: \92
Line 20, column 6:  illegal character: \92
Line 21, column 0:  illegal character: \92
Line 21, column 2:  illegal character: \92
Line 22, column 0:  illegal character: \92
Line 24, column 0:  illegal character: \0
Line 24, column 1:  'class' or 'interface' expected
Line 0, column 0:
59 errors

============================================================================================