I have created a small WebService using Eclipse 3.4 and Glassfish v3 prelude.
After deploying the WebService I am unable to see the wsdl through Web Browser.I am not getting the reason for it.
Is it the problem with Glassfish or I have missed out something.I have included the code below:
Using wsgen tool i have created 'MyHelloService_schema1.xsd' and 'MyHelloService.wsdl' and placed it inside 'WEB-INF' folder.
I was trying to access wsdl through this URL: http://localhost:8080/HelloWebService/MyHelloService?wsdl which gave me 404 error.
Please help me out in this.
public class Hello
public String getHello(String name)
System.out.println("The name is :"+name);
return "Hello " + name + "!";
Try putting the WSDL file and the XML schema file in a directory named "wsdl" (without quotes) in the WEB-INF directory.
By the way, GlassFish v3 final is available, in case you want to try that instead of the prelude version.
posted 10 years ago
Thanks for your reply.
I tried it by creating a directory named wsdl inside WEB-INF and redeployed the application ,but still it gives me the same error.
Is it possible that there is some problem with the server.
If I remember correctly, you do not have to add "WEB-INF/wsdl/" to the wsdlLocation attribute of the @WebService annotation.
I could be wrong, but if you still have problems, you may want to examine this option.