Have you deployed the project successfully? Check the GlassFish logs to see if there were any errors during deployment.
Have you changed the project name to something else? If it is not CalculatorWebService, then the URL will also be changed.
If you do not succeed, please supply further details in order for me to be able to find a solution.
Importa stuff i want to point that as per tutorial i have to get sun-web.xml which i don't, I use jboss as application server with eclipse.
I have CalculatorWebService.war deployed
structure is like this
WEB-inf and META-inf top folders
and inside webinf i have
|----com.ivan.Calculator.class(this is inside com.ivan.javax package)
I got that example working in jboss. i mean i can see wsdl but i don't have client yet but i ll try that later. I copied jaxws-rt.2.1.3.jar,stax-ex-1.2.jar,streambuffer-0.8.jar and most importantly hand crafted sun-jaxws.xml.
One more stupid question, when i run build file which has utility of "wsgen". Does it suppose to generate "service and other artifiacts classes? i was able to client using eclipse but still i want to understand that.
The wsgen tool generates, from an annotated endpoint implementation class, artifacts for a web service and client implementation.
Artifacts are, for instance, a WSDL, JAXB bean classes, source and binary code.
Here is my example of Calculator.java on running wsgen i didn't got service class. is that looks fishy though i modified this class a bit but i ll definitly try your example once again. Any help will be appreciate. thank
What you have enclosed IS the endpoint implementation class, which implements the service.
The wsgen tool will not generate a service class, since it already exists.
If you read page 153 in my study notes, you will find a listing of the artifacts that are generated by wsgen:
When running the above Ant script, the following files will be produced:
JAXB bean holding request data.
JAXB bean holding response data.
XML schema defining elements wrapping request and response data in their XML form.
The WSDL document of the Calculator service.
Your endpoint implementation class will, as before, be the class you have written yourself and annotated with @WebService.
Actually, it was I that wrote it, but it is OK if you pretend it was you...
Yes it is your example let me put my question another way. My question about page "161" which says CalculatorService will be automatcially generated which extends service class but i don't have that class?
Note how "Service" is written with a capital S and in italics, this indicates that this is a class name.
The Service class extended is the javax.xml.ws.Service class in the Java API.
In addition, slightly below the text you quoted, there is the following text:
For detailed instructions on how to create a static standalone JAX-WS web service client, from
which the above code fragment was taken, please refer to the section Static Clients below!
You can click the text "Static Client" and you will be taken to the section that describes how to generate static client artifacts, such as the CalculatorService class.