Jump to content

Web Service

- - - - -

  • Please log in to reply
No replies to this topic

#1
Apprentice123

Apprentice123

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 430 posts
I installed the axis1.4 and axis2 in tomcat and created the following java class:

Calculator.jws

public class Calculator {

	public int somar(int numA, int numB)

	{

		return numA + numB;

	}

	public int subtrair(int numA, int numB)

	{

		return numA - numB;

	}

	public int multiplicar(int numA, int numB)

	{

		return numA * numB;

	}

	public int dividir(int numA, int numB)

	{

		if(numB != 0)

			return numA / numB;

		

		return 0;

	}

}


When I go into:
http://localhost:808...ulator.jws?wsdl
the following error appears:
Sorry, something seems to have gone wrong... here are the details:


Fault - ; nested exception is: 

	java.lang.RuntimeException: No compiler found in your classpath!  (you may need to add 'tools.jar')

And in: http://localhost:808.../Calculator.jws
the following error:
This XML file does not appear to have any style information associated with it. The document tree is shown below.

<faultstring>

The service cannot be found for the endpoint reference (EPR) /axis2/Calculator.jws

</faultstring>

Why ?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users