helloooo
versuche gerade, Introducing JAX-WS 2.0 With the Java SE 6 Platform, Part 1 nachzumachen. Geht aber nicht.
So schauts bei mir momentan aus:
Datei C:\xampp\htdocs\java\soap\CircleFunctions.java:
Kompiliert mit: C:\xampp\htdocs\java\soap>javac CircleFunctions.java
Datei C:\xampp\htdocs\java\soap\CircleWebService.java:
Hier bekomme ich beim Kompilieren einen Fehler:
Was mache ich denn falsch? ???:L
versuche gerade, Introducing JAX-WS 2.0 With the Java SE 6 Platform, Part 1 nachzumachen. Geht aber nicht.
So schauts bei mir momentan aus:
Datei C:\xampp\htdocs\java\soap\CircleFunctions.java:
Java:
package soap;
import javax.jws.WebService;
@WebService
public class CircleFunctions
{ public double getArea(double r)
{ return java.lang.Math.PI * (r * r);
}
public double getCircumference(double r)
{ return 2 * java.lang.Math.PI * r;
}
}
Datei C:\xampp\htdocs\java\soap\CircleWebService.java:
Java:
package soap;
import javax.xml.ws.Endpoint;
public class CircleWebService
{ public static void main(String[] args)
{ Endpoint.publish("http://localhost:8080/java/circlefunctions",new CircleFunctions());
}
}
Code:
C:\xampp\htdocs\java\soap>javac CircleWebService.java
CircleWebService.java:5: cannot find symbol
symbol : class CircleFunctions
location: class soap.CircleWebService
{ Endpoint.publish("http://localhost:8080/java/circlefunctions",new CircleFu
nctions());
^
1 error