Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

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

Ajay SharmaNov 27 2012 — edited Nov 29 2012
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 27 2012
Added on Nov 27 2012
1 comment
1,291 views