This discussion is archived
1 Reply Latest reply: Nov 29, 2012 12:57 AM by Kayaman RSS

Getting error While testing Web Service deployed Glassfish using Net beans.

Ajay Sharma Newbie
Currently Being Moderated
Hi,

I created a web service in netbeans. I deployed it on glassfish server too.

My web service contains one method which return type is Document. Here is my web service class code.
@WebService(serviceName = "DocumentTest")
@Stateless()
public class DocumentTest {

    /**
     * This is a sample web service operation
     */
    @WebMethod(operationName = "hello")
    public String hello(@WebParam(name = "name") String txt) {
        return "Hello " + txt + " !";
    }
    @WebMethod
    public Document getDocument(){
    
        Document doc = null;
        return doc;
    }
}
After Deployment when I m testing the web service I am getting follwoing error on Browser
Error generating artifacts for the following WSDL http://localhost:8093/DocumentTest/DocumentTest?WSDL

Possible causes can be invoking https when the application is not configured for security
I am just testing whether I can send Document object or not.

Regards,
Ajay Sharma

Edited by: Ajay Sharma on Nov 27, 2012 12:37 PM

Edited by: Ajay Sharma on Nov 29, 2012 2:16 PM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points