I just created JAX-Ws webservice in netbeans/Glassfish. as per the tutorial guidance Iam able to consume from java class, a jsp, and servlet. What I wanted is I need to consume the webservice in my eclipse . both are in the same system. is it possible?
Eclipse and NetBeans are IDEs - they are involved in developing WS, but not in running or consuming WS once they are deployed.
Every major SOAP stack has tools that let you create Java client code from a WSDL (which you can then alter in your favorite IDE to your heart's content); check the documentation of whichever stack you're using how that tool works.