Hello,
I am new to Web services development. I installed Tomcat, AXIS JAX and all other prereqs, and I think my installations were correct.
I am trying my first web service deployment
Here is the sample.
I created a file called Calculator.jws in C:\Tomcat 5.5\webapps\axis
public class Calculator {
public int add(int i1, int i2) {
return i1 + i2;
}
public int subtract(int i1, int i2) {
return i1 - i2;
}
}
When I try to access it using http://localhost:8080/axis/Calculator.jws?method=add
I get the following error
<?xml version="1.0" encoding="UTF-8"
?>
-
<soapenv:Envelope xmlns:soapenv
="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema
" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<faultcode
>soapenv:Server.userException</
faultcode>
<faultstring
>java.io.FileNotFoundException: C:\Tomcat 5.5\webapps\axis\Calculator.jws (Access is denied)
</faultstring>
</detail
>
</soapenv:Fault
>
</soapenv:Body
>
</soapenv:Envelope
>