After deploying Web services to EAServer you can view the contents.
Viewing deployed Web application
(servlet) Web service
From the Web Management Console, expand the Web Applications folder.
Highlight the Web application you want to view.
Select the web.xml tab. You can
view Web service client <service-ref>
information
that provides the Web service binding references for the Web service.
For example:
<service-ref> <service-ref-name>service/service</service-ref-name> <service-interface>com.sun.ts.tests.webservices.deploy.GenSvc.TestsGenSvc </service-interface> <wsdl-file>META-INF/wsdl/TestsGenSvc.wsdl</wsdl-file> <jaxrpc-mapping-file>TestsGenSvc.xml</jaxrpc-mapping-file> <port-component-ref> <service-endpoint-interface> com.sun.ts.tests.webservices.deploy.GenSvc.Tests </service-endpoint- interface> </port-component-ref> </service-ref>
Some main features of the client reference are:
<service-ref-name>
is
used in a JNDI lookup to retrieve an instance of the <service-interface>.
<jaxrpc-mapping-file>
is
also used during deployment to map namespaces to Java packages.
<service-endpoint-interface>
is
the actual interface you use to call your business methods.
This example illustrates how you can use the myecho object to call methods on the service endpoint interface String rc = myecho.echo(“Hello remote world”);:
EchoService myservice = (EchoService)context.lookup(“java:comp/env/service/EchoService") // This gives the client the service-interface. From which you can look up the service-endpoint-interface as follows: Echo myecho = myservice.getEcho(); or Echo myecho = (Echo)myservice.getPort(Echo.class);
Use the deploy command (EAServer_home/bin/deploy.bat) to deploy a J2EE 1.4 WAR file containing a Web service or Web service client.
From the Web Management Console, expand the EJB Modules folder.
Highlight the EJB you want to view.
Select the ejb-jar.xml tab. View
Web service client <service-ref>
information.
See “Viewing deployed Web application (servlet) Web service” for
an example.
Use the deploy command (EAServer_home/bin/deploy.bat) to deploy the EJB Web service.
Viewing application client Web services
From the Web Management Console, expand the Application Client folder.
Highlight the application client you want to view.
Select the application-client.xml tab.
View Web service client <service-ref>
information.
See “Viewing deployed Web application (servlet) Web service” for
an example.
Use the deploy command (EAServer_home/bin/deploy.bat) to deploy the Web service.